Untitled-1.js 1.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405
  1. // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  2. // See https://js.arcgis.com/4.24/esri/copyright.txt for details.
  3. if ("undefined" != typeof window && "undefined" != typeof navigator && window.document && (window.dojoConfig || (window.dojoConfig = {}), !window.dojoConfig.hasOwnProperty("baseUrl"))) { const o = window.document.currentScript.src; let d; d = o.endsWith("/init.js") ? o.slice(0, o.lastIndexOf("/")) + "/dojo" : o.endsWith("/dojo/dojo.js") ? o.slice(0, o.lastIndexOf("/")) : o + (o.endsWith("/") ? "dojo" : "/dojo"), window.dojoConfig.baseUrl = d }
  4. //>>built
  5. (function (a, b) {
  6. var c, e, d, l = function () { return "undefined" !== typeof y && "function" !== typeof y ? y : "undefined" !== typeof window ? window : "undefined" !== typeof self ? self : this }(), r = function () { }, q = function (aa) { for (var U in aa) return 0; return 1 }, k = {}.toString, m = function (aa) { return "[object Function]" == k.call(aa) }, g = function (aa) { return "[object String]" == k.call(aa) }, p = function (aa) { return "[object Array]" == k.call(aa) }, t = function (aa, U) { if (aa) for (var Y = 0; Y < aa.length;)U(aa[Y++]) }, n = function (aa, U) {
  7. for (var Y in U) aa[Y] = U[Y];
  8. return aa
  9. }, u = function (aa, U) { return n(Error(aa), { src: "dojoLoader", info: U }) }, f = 1, h = function () { return "_" + f++ }, v = function (aa, U, Y) { return oa(aa, U, Y, 0, v) }, y = l, B = y.document, w = B && B.createElement("DiV"), x = v.has = function (aa) { return m(z[aa]) ? z[aa] = z[aa](y, B, w) : z[aa] }, z = x.cache = b.hasCache; m(a) && (a = a(l)); x.add = function (aa, U, Y, ua) { (void 0 === z[aa] || ua) && (z[aa] = U); return Y && x(aa) }; x.add("host-webworker", "undefined" !== typeof WorkerGlobalScope && self instanceof WorkerGlobalScope); x("host-webworker") && (n(b.hasCache,
  10. { "host-browser": 0, dom: 0, "dojo-dom-ready-api": 0, "dojo-sniff": 0, "dojo-inject-api": 1, "host-webworker": 1, "dojo-guarantee-console": 0 }), b.loaderPatch = { injectUrl: function (aa, U) { try { importScripts(aa), U() } catch (Y) { console.info("failed to load resource (" + aa + ")"), console.error(Y) } } }); for (var C in a.has) x.add(C, a.has[C], 0, 1); v.async = 1; v.eval = function (aa, U) { }; var A = {}, D = v.signal = function (aa, U) { aa = A[aa]; t(aa && aa.slice(0), function (Y) { Y.apply(null, p(U) ? U : [U]) }) }; C = v.on = function (aa, U) {
  11. var Y = A[aa] || (A[aa] = []); Y.push(U);
  12. return { remove: function () { for (var ua = 0; ua < Y.length; ua++)if (Y[ua] === U) { Y.splice(ua, 1); break } } }
  13. }; var F = [], J = {}, M = [], N = {}, E = v.map = {}, G = [], H = {}, K = "", S = {}, fa = {}; l = {}; var ha = 0; if (!x("foreign-loader")) var ba = function (aa, U) { U = !1 !== U; var Y, ua; for (Y in fa) { var Ja = fa[Y]; if (ua = Y.match(/^url:(.+)/)) S["url:" + Ra(ua[1], aa)] = Ja; else if ("*now" == Y) var La = Ja; else "*noref" != Y && (ua = R(Y, aa, !0), S[ua.mid] = S["url:" + ua.url] = Ja) } La && La(ya(aa)); U && (fa = {}) }; var O = function (aa) {
  14. return aa.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, function (U) {
  15. return "\\" +
  16. U
  17. })
  18. }, na = function (aa, U) { U.splice(0, U.length); for (var Y in aa) U.push([Y, aa[Y], new RegExp("^" + O(Y) + "(/|$)"), Y.length]); U.sort(function (ua, Ja) { return Ja[3] - ua[3] }); return U }, ra = function (aa, U) { t(aa, function (Y) { U.push([g(Y[0]) ? new RegExp("^" + O(Y[0]) + "$") : Y[0], Y[1]]) }) }, Da = function (aa) { var U = aa.name; U || (U = aa, aa = { name: U }); aa = n({ main: "main" }, aa); aa.location = aa.location ? aa.location : U; aa.packageMap && (E[U] = aa.packageMap); aa.main.indexOf("./") || (aa.main = aa.main.substring(2)); N[U] = aa }, Ka = [], sa = function (aa, U, Y) {
  19. for (var ua in aa) {
  20. "waitSeconds" ==
  21. ua && (v.waitms = 1E3 * (aa[ua] || 0)); "cacheBust" == ua && (K = aa[ua] ? g(aa[ua]) ? aa[ua] : (new Date).getTime() + "" : ""); if ("baseUrl" == ua || "combo" == ua) v[ua] = aa[ua]; aa[ua] !== z && (v.rawConfig[ua] = aa[ua], "has" != ua && x.add("config-" + ua, aa[ua], 0, U))
  22. } v.baseUrl || (v.baseUrl = "./"); /\/$/.test(v.baseUrl) || (v.baseUrl += "/"); for (ua in aa.has) x.add(ua, aa.has[ua], 0, U); t(aa.packages, Da); for (var Ja in aa.packagePaths) t(aa.packagePaths[Ja], function (La) { var Wa = Ja + "/" + La; g(La) && (La = { name: La }); La.location = Wa; Da(La) }); na(n(E, aa.map), G); t(G,
  23. function (La) { La[1] = na(La[1], []); "*" == La[0] && (G.star = La) }); na(n(J, aa.paths), M); ra(aa.aliases, F); if (!x("foreign-loader")) { if (U) Ka.push({ config: aa.config }); else for (ua in aa.config) U = Ca(ua, Y), U.config = n(U.config || {}, aa.config[ua]); aa.cache && (ba(), fa = aa.cache, ba(0, !!aa.cache["*noref"])) } D("config", [aa, v.rawConfig])
  24. }; v.rawConfig = {}; sa(b, 1); sa(a, 1); sa(l, 1); if (!x("foreign-loader")) var W = function (aa) { Ia(function () { t(aa.deps, qa) }) }, oa = function (aa, U, Y, ua, Ja) {
  25. var La; if (g(aa)) {
  26. if ((La = Ca(aa, ua, !0)) && La.executed) return La.result;
  27. throw u("undefinedModule", aa);
  28. } p(aa) || (sa(aa, 0, ua), aa = U, U = Y); if (p(aa)) if (aa.length) { Y = "require*" + h(); for (var Wa, eb = [], T = 0; T < aa.length;)Wa = aa[T++], eb.push(Ca(Wa, ua)); La = n(la("", Y, 0, ""), { injected: 2, deps: eb, def: U || r, require: ua ? ua.require : v, gc: 1 }); H[La.mid] = La; W(La); var ka = Oa && !0; Ia(function () { Ea(La, ka) }); La.executed || I.push(La); Ta() } else U && U(); return Ja
  29. }, ya = function (aa) {
  30. if (!aa) return v; var U = aa.require; U || (U = function (Y, ua, Ja) { return oa(Y, ua, Ja, aa, U) }, aa.require = n(U, v), U.module = aa, U.toUrl = function (Y) {
  31. return Ra(Y,
  32. aa)
  33. }, U.toAbsMid = function (Y) { return Ha(Y, aa) }); return U
  34. }, I = [], P = [], Z = {}, Q = function (aa) { aa.injected = 1; Z[aa.mid] = 1; aa.url && (Z[aa.url] = aa.pack || 1); jb() }, V = function (aa) { aa.injected = 2; delete Z[aa.mid]; aa.url && delete Z[aa.url]; q(Z) && gb() }, da = v.idle = function () { return !P.length && q(Z) && !I.length && !Oa }; var ea = function (aa, U) { if (U) for (var Y = 0; Y < U.length; Y++)if (U[Y][2].test(aa)) return U[Y]; return 0 }, pa = function (aa) {
  35. var U = []; for (aa = aa.replace(/\\/g, "/").split("/"); aa.length;) {
  36. var Y = aa.shift(); if (".." == Y && U.length &&
  37. ".." != ua) { U.pop(); var ua = U[U.length - 1] } else "." != Y && U.push(ua = Y)
  38. } return U.join("/")
  39. }, la = function (aa, U, Y, ua) { return { pid: aa, mid: U, pack: Y, url: ua, executed: 0, def: 0 } }, L = function (aa, U, Y, ua, Ja, La, Wa, eb, T, ka) {
  40. var ia, Aa, Sa; var Fa = /^\./.test(aa); if (/(^\/)|(:)|(\.js$)/.test(aa) || Fa && !U) return la(0, aa, 0, aa); aa = pa(Fa ? U.mid + "/../" + aa : aa); if (/^\./.test(aa)) throw u("irrationalPath", aa); ka || Fa || !La.star || (Sa = ea(aa, La.star[1])); !Sa && U && (Sa = (Sa = ea(U.mid, La)) && ea(aa, Sa[1])); Sa && (aa = Sa[1] + aa.substring(Sa[3])); U = (c = aa.match(/^([^\/]+)(\/(.+))?$/)) ?
  41. c[1] : ""; (ia = Y[U]) ? aa = U + "/" + (Aa = c[3] || ia.main) : U = ""; var Pa = 0; t(eb, function (va) { var Ma = aa.match(va[0]); Ma && 0 < Ma.length && (Pa = m(va[1]) ? aa.replace(va[0], va[1]) : va[1]) }); if (Pa) return L(Pa, 0, Y, ua, Ja, La, Wa, eb, T); if (Y = ua[aa]) return T ? la(Y.pid, Y.mid, Y.pack, Y.url) : ua[aa]; ua = (Sa = ea(aa, Wa)) ? Sa[1] + aa.substring(Sa[3]) : U ? ("/" === ia.location.slice(-1) ? ia.location.slice(0, -1) : ia.location) + "/" + Aa : aa; /(^\/)|(:)/.test(ua) || (ua = Ja + ua); return la(U, aa, ia, pa(ua + ".js"))
  42. }, R = function (aa, U, Y) {
  43. return L(aa, U, N, H, v.baseUrl, G, M, F,
  44. void 0, Y)
  45. }; if (!x("foreign-loader")) var X = function (aa, U, Y) { return aa.normalize ? aa.normalize(U, function (ua) { return Ha(ua, Y) }) : Ha(U, Y) }, ta = 0, Ca = function (aa, U, Y) { var ua; if (ua = aa.match(/^(.+?)!(.*)$/)) { var Ja = Ca(ua[1], U, Y); 5 !== Ja.executed || Ja.load || ca(Ja); Ja.load ? (ua = X(Ja, ua[2], U), aa = Ja.mid + "!" + (Ja.dynamic ? ++ta + "!" : "") + ua) : (ua = ua[2], aa = Ja.mid + "!" + ++ta + "!waitingForPlugin"); aa = { plugin: Ja, mid: aa, req: ya(U), prid: ua } } else aa = R(aa, U); return H[aa.mid] || !Y && (H[aa.mid] = aa) }; var Ha = v.toAbsMid = function (aa, U) {
  46. return R(aa,
  47. U).mid
  48. }, Ra = v.toUrl = function (aa, U) { U = R(aa + "/x", U); var Y = U.url; return Qa(0 === U.pid ? aa : Y.substring(0, Y.length - 5)) }; if (!x("foreign-loader")) {
  49. var Ua = { injected: 2, executed: 5, def: 3, result: 3 }; var Xa = function (aa) { return H[aa] = n({ mid: aa }, Ua) }; var ja = Xa("require"), wa = Xa("exports"), za = Xa("module"), Ga = {}, Na = 0, ca = function (aa) { var U = aa.result; aa.dynamic = U.dynamic; aa.normalize = U.normalize; aa.load = U.load; return aa }, ma = function (aa) {
  50. var U = {}; t(aa.loadQ, function (Ja) {
  51. var La = X(aa, Ja.prid, Ja.req.module), Wa = aa.dynamic ? Ja.mid.replace(/waitingForPlugin$/,
  52. La) : aa.mid + "!" + La; La = n(n({}, Ja), { mid: Wa, prid: La, injected: 0 }); H[Wa] && H[Wa].injected || Za(H[Wa] = La); U[Ja.mid] = H[Wa]; V(Ja); delete H[Ja.mid]
  53. }); aa.loadQ = 0; var Y = function (Ja) { for (var La = Ja.deps || [], Wa = 0; Wa < La.length; Wa++)(Ja = U[La[Wa].mid]) && (La[Wa] = Ja) }, ua; for (ua in H) Y(H[ua]); t(I, Y)
  54. }, Ba = function (aa) { v.trace("loader-finish-exec", [aa.mid]); aa.executed = 5; aa.defOrder = Na++; aa.loadQ && (ca(aa), ma(aa)); for (d = 0; d < I.length;)I[d] === aa ? I.splice(d, 1) : d++; /^require\*/.test(aa.mid) && delete H[aa.mid] }, xa = [], Ea = function (aa,
  55. U) {
  56. if (4 === aa.executed) return v.trace("loader-circular-dependency", [xa.concat(aa.mid).join("-\x3e")]), !aa.def || U ? Ga : aa.cjs && aa.cjs.exports; if (!aa.executed) {
  57. if (!aa.def) return Ga; var Y = aa.mid, ua = aa.deps || [], Ja, La = [], Wa = 0; for (aa.executed = 4; Ja = ua[Wa++];) { Ja = Ja === ja ? ya(aa) : Ja === wa ? aa.cjs.exports : Ja === za ? aa.cjs : Ea(Ja, U); if (Ja === Ga) return aa.executed = 0, v.trace("loader-exec-module", ["abort", Y]), Ga; La.push(Ja) } v.trace("loader-run-factory", [aa.mid]); U = aa.def; La = m(U) ? U.apply(null, La) : U; aa.result = void 0 === La &&
  58. aa.cjs ? aa.cjs.exports : La; Ba(aa)
  59. } return aa.result
  60. }, Oa = 0, Ia = function (aa) { try { Oa++, aa() } catch (U) { throw U; } finally { Oa-- } da() && D("idle", []) }, Ta = function () { Oa || Ia(function () { for (var aa, U, Y = 0; Y < I.length;)aa = Na, U = I[Y], Ea(U), aa != Na ? Y = 0 : Y++ }) }
  61. } var Qa = "function" == typeof a.fixupUrl ? a.fixupUrl : function (aa) { aa += ""; return aa + (K ? (/\?/.test(aa) ? "\x26" : "?") + K : "") }; void 0 === x("dojo-loader-eval-hint-url") && x.add("dojo-loader-eval-hint-url", 1); var Za = function (aa) {
  62. var U = aa.plugin; 5 !== U.executed || U.load || ca(U); var Y = function (ua) {
  63. aa.result =
  64. ua; V(aa); Ba(aa); Ta()
  65. }; U.load ? U.load(aa.prid, aa.req, Y) : U.loadQ ? U.loadQ.push(aa) : (U.loadQ = [aa], I.unshift(U), qa(U))
  66. }, $a = 0, cb = function (aa, U) { x("config-stripStrict") && (aa = aa.replace(/(["'])use strict\1/g, "")); aa === $a ? $a.call(null) : v.eval(aa, x("dojo-loader-eval-hint-url") ? U.url : U.mid) }, qa = function (aa) {
  67. var U = aa.mid, Y = aa.url; if (!(aa.executed || aa.injected || Z[U] || aa.url && (aa.pack && Z[aa.url] === aa.pack || 1 == Z[aa.url]))) if (Q(aa), aa.plugin) Za(aa); else {
  68. var ua = function () {
  69. hb(aa); if (2 !== aa.injected) {
  70. if (x("dojo-enforceDefine")) {
  71. D("error",
  72. u("noDefine", aa)); return
  73. } V(aa); n(aa, Ua); v.trace("loader-define-nonmodule", [aa.url])
  74. } Ta()
  75. }; ($a = S[U] || S["url:" + aa.url]) ? (v.trace("loader-inject", ["cache", aa.mid, Y]), cb($a, aa), ua()) : (v.trace("loader-inject", ["script", aa.mid, Y]), v.injectUrl(Qa(Y), ua, aa))
  76. }
  77. }, fb = function (aa, U, Y) {
  78. v.trace("loader-define-module", [aa.mid, U]); if (2 === aa.injected) return D("error", u("multipleDefine", aa)), aa; n(aa, { deps: U, def: Y, cjs: { id: aa.mid, uri: aa.url, exports: aa.result = {}, setExports: function (Ja) { aa.cjs.exports = Ja }, config: function () { return aa.config } } });
  79. for (var ua = 0; U[ua]; ua++)U[ua] = Ca(U[ua], aa); V(aa); m(Y) || U.length || (aa.result = Y, Ba(aa)); return aa
  80. }, hb = function (aa, U) { for (var Y = [], ua, Ja; P.length;)Ja = P.shift(), U && (Ja[0] = U.shift()), ua = Ja[0] && Ca(Ja[0]) || aa, Y.push([ua, Ja[1], Ja[2]]); ba(aa); t(Y, function (La) { W(fb.apply(null, La)) }) }, gb = r, jb = r; x("dom"); if (x("dom")) {
  81. var Ya = function (aa, U, Y, ua) { aa.addEventListener(U, ua, !1); return function () { aa.removeEventListener(U, ua, !1) } }, db = Ya(window, "load", "onload", function () {
  82. v.pageLoaded = 1; try {
  83. "complete" != B.readyState && (B.readyState =
  84. "complete")
  85. } catch (aa) { } db()
  86. }); Xa = B.getElementsByTagName("script"); for (d = 0; !ha;)/^dojo/.test((e = Xa[d++]) && e.type) || (ha = e); v.injectUrl = function (aa, U, Y) {
  87. Y = Y.node = B.createElement("script"); var ua = Ya(Y, "load", "onreadystatechange", function (La) { La = La || window.event; var Wa = La.target || La.srcElement; if ("load" === La.type || /complete|loaded/.test(Wa.readyState)) ua(), Ja(), U && U() }), Ja = Ya(Y, "error", "onerror", function (La) { ua(); Ja(); D("error", u("scriptError: " + aa, [aa, La])) }); Y.type = "text/javascript"; Y.charset = "utf-8";
  88. Y.src = aa; ha.parentNode.insertBefore(Y, ha); return Y
  89. }
  90. } v.log = r; v.trace = r; x("foreign-loader") ? e = r : (e = function (aa, U, Y) { var ua = arguments.length, Ja = ["require", "exports", "module"], La = [0, aa, U]; 1 == ua ? La = [0, m(aa) ? Ja : [], aa] : 2 == ua && g(aa) ? La = [aa, m(U) ? Ja : [], U] : 3 == ua && (La = [aa, U, Y]); v.trace("loader-define", La.slice(0, 2)); (ua = La[0] && Ca(La[0])) && !Z[ua.mid] ? W(fb(ua, La[1], La[2])) : P.push(La) }, e.amd = { vendor: "dojotoolkit.org" }); n(n(v, b.loaderPatch), a.loaderPatch); C("error", function (aa) {
  91. try {
  92. if (console.error(aa), aa instanceof
  93. Error) { for (var U in aa) console.log(U + ":", aa[U]); console.log(".") }
  94. } catch (Y) { }
  95. }); n(v, { uid: h, cache: S, packs: N }); y.define || (y.define = e, y.require = v, x("foreign-loader") || (t(Ka, function (aa) { sa(aa) }), e = l.deps || a.deps || b.deps, a = l.callback || a.callback || b.callback, v.boot = e || a ? [e || [], a] : 0))
  96. })(function (a) { return a.dojoConfig || a.djConfig || a.require || {} }, {
  97. async: 1, hasCache: { "config-selectorEngine": "lite", "config-tlmSiblingOfDojo": 1, "dojo-built": 1, "dojo-loader": 1, dom: 1, "host-browser": 1 }, packages: [{ location: ".", name: "dojo" },
  98. { location: "../dijit", name: "dijit" }, { location: "../dojox", name: "dojox" }, { location: "../dgrid", main: "OnDemandGrid", name: "dgrid" }, { location: "../dstore", main: "Store", name: "dstore" }, { location: "../esri", name: "esri" }, { location: "../tslib", main: "tslib", name: "tslib" }]
  99. });
  100. require({
  101. cache: {
  102. "esri/Map": function () {
  103. define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Basemap ./Ground ./core/Accessor ./core/CollectionFlattener ./core/Evented ./core/maybe ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/has ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/subclass ./layers/support/editableLayers ./support/basemapUtils ./support/collectionUtils ./support/groundUtils ./support/LayersMixin ./support/TablesMixin".split(" "), function (a,
  104. b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y) {
  105. d = function (B) {
  106. function w(z) {
  107. var C = B.call(this, z) || this; C.allLayers = new l({ getCollections: () => { var A, D, F; return [null == (A = C.basemap) ? void 0 : A.baseLayers, null == (D = C.ground) ? void 0 : D.layers, C.layers, null == (F = C.basemap) ? void 0 : F.referenceLayers] }, getChildrenFunction: A => "layers" in A ? A.layers : null }); C.allTables = f.createFlattenedTablesCollection(a._assertThisInitialized(C)); C.basemap = null; C.editableLayers = new l({ getCollections: () => [C.allLayers], itemFilterFunction: n.isEditableLayer });
  108. C.ground = new e; C._basemapCache = u.createCache(); return C
  109. } a._inheritsLoose(w, B); var x = w.prototype; x.destroy = function () { var z, C; this.allLayers.destroy(); this.allTables.destroy(); this.editableLayers.destroy(); null == (z = this.ground) ? void 0 : z.destroy(); null == (C = this.basemap) ? void 0 : C.destroy(); u.destroyCache(this._basemapCache); this._basemapCache = null }; x.castBasemap = function (z) { return u.ensureType(z, this._basemapCache) }; x.castGround = function (z) { z = h.ensureType(z); return q.isNone(z) ? this._get("ground") : z };
  110. x.findLayerById = function (z) { return this.allLayers.find(C => C.id === z) }; x.findTableById = function (z) { return this.allTables.find(C => C.id === z) }; return w
  111. }(y.TablesMixin(v.LayersMixin(r.EventedMixin(d)))); b.__decorate([k.property({ readOnly: !0, dependsOn: [] })], d.prototype, "allLayers", void 0); b.__decorate([k.property({ readOnly: !0 })], d.prototype, "allTables", void 0); b.__decorate([k.property({ type: c })], d.prototype, "basemap", void 0); b.__decorate([p.cast("basemap")], d.prototype, "castBasemap", null); b.__decorate([k.property({ readOnly: !0 })],
  112. d.prototype, "editableLayers", void 0); b.__decorate([k.property({ type: e, nonNullable: !0 })], d.prototype, "ground", void 0); b.__decorate([p.cast("ground")], d.prototype, "castGround", null); return d = b.__decorate([t.subclass("esri.Map")], d)
  113. })
  114. }, "esri/chunks/_rollupPluginBabelHelpers": function () {
  115. define(["exports"], function (a) {
  116. function b(p) {
  117. function t(n) { if (Object(n) !== n) return Promise.reject(new TypeError(n + " is not an object.")); var u = n.done; return Promise.resolve(n.value).then(function (f) { return { value: f, done: u } }) }
  118. return b = function (n) { this.s = n; this.n = n.next }, b.prototype = { s: null, n: null, next: function () { return t(this.n.apply(this.s, arguments)) }, return: function (n) { var u = this.s.return; return void 0 === u ? Promise.resolve({ value: n, done: !0 }) : t(u.apply(this.s, arguments)) }, throw: function (n) { var u = this.s.return; return void 0 === u ? Promise.reject(n) : t(u.apply(this.s, arguments)) } }, new b(p)
  119. } function c(p) { this.wrapped = p } function e(p) {
  120. function t(h, v) {
  121. try {
  122. var y = p[h](v), B = y.value, w = B instanceof c; Promise.resolve(w ? B.wrapped : B).then(function (x) {
  123. w ?
  124. t("return" === h ? "return" : "next", x) : n(y.done ? "return" : "normal", x)
  125. }, function (x) { t("throw", x) })
  126. } catch (x) { n("throw", x) }
  127. } function n(h, v) { switch (h) { case "return": u.resolve({ value: v, done: !0 }); break; case "throw": u.reject(v); break; default: u.resolve({ value: v, done: !1 }) }(u = u.next) ? t(u.key, u.arg) : f = null } var u, f; this._invoke = function (h, v) { return new Promise(function (y, B) { y = { key: h, arg: v, resolve: y, reject: B, next: null }; f ? f = f.next = y : (u = f = y, t(h, v)) }) }; "function" !== typeof p.return && (this.return = void 0)
  128. } function d(p, t,
  129. n, u, f, h, v) { try { var y = p[h](v), B = y.value } catch (w) { n(w); return } y.done ? t(B) : Promise.resolve(B).then(u, f) } function l(p, t) { for (var n = 0; n < t.length; n++) { var u = t[n]; u.enumerable = u.enumerable || !1; u.configurable = !0; "value" in u && (u.writable = !0); Object.defineProperty(p, u.key, u) } } function r(p) { r = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t) }; return r(p) } function q(p, t) {
  130. q = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (n, u) {
  131. n.__proto__ = u;
  132. return n
  133. }; return q(p, t)
  134. } function k() { if ("undefined" === typeof Reflect || !Reflect.construct || Reflect.construct.sham) return !1; if ("function" === typeof Proxy) return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { })), !0 } catch (p) { return !1 } } function m(p, t, n) { m = k() ? Reflect.construct.bind() : function (u, f, h) { var v = [null]; v.push.apply(v, f); u = new (Function.bind.apply(u, v)); h && q(u, h.prototype); return u }; return m.apply(null, arguments) } function g(p) {
  135. var t = "function" === typeof Map ?
  136. new Map : void 0; g = function (n) { function u() { return m(n, arguments, r(this).constructor) } if (null === n || -1 === Function.toString.call(n).indexOf("[native code]")) return n; if ("function" !== typeof n) throw new TypeError("Super expression must either be null or a function"); if ("undefined" !== typeof t) { if (t.has(n)) return t.get(n); t.set(n, u) } u.prototype = Object.create(n.prototype, { constructor: { value: u, enumerable: !1, writable: !0, configurable: !0 } }); return q(u, n) }; return g(p)
  137. } e.prototype["function" === typeof Symbol && Symbol.asyncIterator ||
  138. "@@asyncIterator"] = function () { return this }; e.prototype.next = function (p) { return this._invoke("next", p) }; e.prototype.throw = function (p) { return this._invoke("throw", p) }; e.prototype.return = function (p) { return this._invoke("return", p) }; a._assertThisInitialized = function (p) { if (void 0 === p) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return p }; a._asyncIterator = function (p) {
  139. var t, n, u, f = 2; for ("undefined" != typeof Symbol && (n = Symbol.asyncIterator, u = Symbol.iterator); f--;) {
  140. if (n &&
  141. null != (t = p[n])) return t.call(p); if (u && null != (t = p[u])) return new b(t.call(p)); n = "@@asyncIterator"; u = "@@iterator"
  142. } throw new TypeError("Object is not async iterable");
  143. }; a._asyncToGenerator = function (p) { return function () { var t = this, n = arguments; return new Promise(function (u, f) { function h(B) { d(y, u, f, h, v, "next", B) } function v(B) { d(y, u, f, h, v, "throw", B) } var y = p.apply(t, n); h(void 0) }) } }; a._awaitAsyncGenerator = function (p) { return new c(p) }; a._createClass = function (p, t, n) {
  144. t && l(p.prototype, t); n && l(p, n); Object.defineProperty(p,
  145. "prototype", { writable: !1 }); return p
  146. }; a._inheritsLoose = function (p, t) { p.prototype = Object.create(t.prototype); p.prototype.constructor = p; q(p, t) }; a._wrapAsyncGenerator = function (p) { return function () { return new e(p.apply(this, arguments)) } }; a._wrapNativeSuper = g
  147. })
  148. }, "esri/chunks/tslib.es6": function () {
  149. define(["exports"], function (a) {
  150. a.__decorate = function (b, c, e, d) {
  151. var l = arguments.length, r = 3 > l ? c : null === d ? d = Object.getOwnPropertyDescriptor(c, e) : d, q; if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r =
  152. Reflect.decorate(b, c, e, d); else for (var k = b.length - 1; 0 <= k; k--)if (q = b[k]) r = (3 > l ? q(r) : 3 < l ? q(c, e, r) : q(c, e)) || r; return 3 < l && r && Object.defineProperty(c, e, r), r
  153. }
  154. })
  155. }, "esri/Basemap": function () {
  156. define("require ./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Collection ./core/collectionUtils ./core/deprecate ./core/JSONSupport ./core/lang ./core/Loadable ./core/loadAll ./core/Logger ./core/maybe ./core/promiseUtils ./core/urlUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./geometry/SpatialReference ./portal/Portal ./portal/PortalItem ./support/basemapDefinitions ./webdoc/support/writeUtils".split(" "),
  157. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z) {
  158. var C; let A = 0; const D = g.getLogger("esri.Basemap"); r = C = function (F) {
  159. function J(N) {
  160. var E = F.call(this, N) || this; E.id = null; E.portalItem = null; E.spatialReference = null; E.thumbnailUrl = null; E.title = "Basemap"; E.id = Date.now().toString(16) + "-basemap-" + A++; E.baseLayers = new e; E.referenceLayers = new e; const G = H => {
  161. H.parent && H.parent !== b._assertThisInitialized(E) && "remove" in H.parent && H.parent.remove(H); H.parent = b._assertThisInitialized(E); "elevation" === H.type &&
  162. D.error(`Layer '${H.title}, id:${H.id}' of type '${H.type}' is not supported as a basemap layer and will therefore be ignored.`)
  163. }; E.baseLayers.on("after-add", H => G(H.item)); E.referenceLayers.on("after-add", H => G(H.item)); E.baseLayers.on("after-remove", H => { H.item.parent = null }); E.referenceLayers.on("after-remove", H => { H.item.parent = null }); return E
  164. } b._inheritsLoose(J, F); var M = J.prototype; M.initialize = function () {
  165. this.when().catch(N => {
  166. D.error("#load()", `Failed to load basemap (title: '${this.title}', id: '${this.id}')`,
  167. N)
  168. }); this.resourceInfo && this.read(this.resourceInfo.data, this.resourceInfo.context)
  169. }; M.destroy = function () { var N, E = this.baseLayers.removeAll(); for (const G of E) G.destroy(); E = this.referenceLayers.removeAll(); for (const G of E) G.destroy(); this.baseLayers.destroy(); this.referenceLayers.destroy(); null == (N = this.portalItem) ? void 0 : N.destroy(); this.portalItem = null }; M.normalizeCtorArgs = function (N) { N && "resourceInfo" in N && (this._set("resourceInfo", N.resourceInfo), N = { ...N }, delete N.resourceInfo); return N }; M._writeBaseLayers =
  170. function (N, E, G) { const H = []; N && (G = { ...G, layerContainerType: "basemap" }, this.baseLayers.forEach(K => { K = z.getLayerJSON(K, G.webmap ? G.webmap.getLayerJSONFromResourceInfo(K) : null, G); p.isSome(K) && H.push(K) }), this.referenceLayers.forEach(K => { K = z.getLayerJSON(K, G.webmap ? G.webmap.getLayerJSONFromResourceInfo(K) : null, G); p.isSome(K) && (K.isReference = !0, H.push(K)) })); E.baseMapLayers = H }; M.writeTitle = function (N, E) { E.title = N || "Basemap" }; M.load = function (N) { this.addResolvingPromise(this._loadFromSource(N)); return Promise.resolve(this) };
  171. M.loadAll = function () { return m.loadAll(this, N => { N(this.baseLayers, this.referenceLayers) }) }; M.clone = function () { const N = { id: this.id, title: this.title, portalItem: this.portalItem, baseLayers: this.baseLayers.slice(), referenceLayers: this.referenceLayers.slice() }; this.loaded && (N.loadStatus = "loaded"); return (new C({ resourceInfo: this.resourceInfo })).set(N) }; M.read = function (N, E) { this.resourceInfo || this._set("resourceInfo", { data: N, context: E }); F.prototype.read.call(this, N, E) }; M.write = function (N, E) {
  172. N = N || {}; E && E.origin ||
  173. (E = { origin: "web-map", ...E }); F.prototype.write.call(this, N, E); !this.loaded && this.resourceInfo && this.resourceInfo.data.baseMapLayers && (N.baseMapLayers = this.resourceInfo.data.baseMapLayers.map(G => { G = q.clone(G); G.url && n.isProtocolRelative(G.url) && (G.url = `https:${G.url}`); G.templateUrl && n.isProtocolRelative(G.templateUrl) && (G.templateUrl = `https:${G.templateUrl}`); return G })); return N
  174. }; M._loadFromSource = function () {
  175. var N = b._asyncToGenerator(function* (E) {
  176. const { resourceInfo: G, portalItem: H } = this; t.throwIfAborted(E);
  177. const K = []; G ? (K.push(this._loadLayersFromJSON(G.data, G.context ? G.context.url : null, E)), G.data.id && !G.data.title && K.push(x.getBasemapTitle(G.data.id).then(S => { S && this.read({ title: S }, G.context) }))) : H && K.push(this._loadFromItem(H, E)); yield Promise.all(K)
  178. }); return function (E) { return N.apply(this, arguments) }
  179. }(); M._loadLayersFromJSON = function () {
  180. var N = b._asyncToGenerator(function* (E, G, H) {
  181. var K = this.resourceInfo && this.resourceInfo.context; const S = this.portalItem && this.portalItem.portal || K && K.portal || null,
  182. fa = K && "web-scene" === K.origin ? "web-scene" : "web-map", { populateOperationalLayers: ha } = yield new Promise((ba, O) => a(["./layers/support/layersCreator"], ba, O)); K = []; t.throwIfAborted(H); E.baseMapLayers && Array.isArray(E.baseMapLayers) && (G = { context: { origin: fa, url: G, portal: S, layerContainerType: "basemap" }, defaultLayerType: "DefaultTileLayer" }, H = ha(this.baseLayers, E.baseMapLayers.filter(ba => !ba.isReference), G), K.push(H), E = ha(this.referenceLayers, E.baseMapLayers.filter(ba => ba.isReference), G), K.push(E)); yield t.eachAlways(K)
  183. });
  184. return function (E, G, H) { return N.apply(this, arguments) }
  185. }(); M._loadFromItem = function () {
  186. var N = b._asyncToGenerator(function* (E, G) {
  187. const H = yield (yield E.load(G)).fetchData("json", G), K = n.urlToObject(E.itemUrl); this._set("resourceInfo", { data: H.baseMap, context: { origin: "web-map", portal: E.portal || B.getDefault(), url: K } }); this.read(this.resourceInfo.data, this.resourceInfo.context); this.read({ spatialReference: H.spatialReference }, this.resourceInfo.context); this.read({ title: E.title, thumbnailUrl: E.thumbnailUrl },
  188. { origin: "portal-item", portal: E.portal || B.getDefault(), url: K }); return this._loadLayersFromJSON(this.resourceInfo.data, K, G)
  189. }); return function (E, G) { return N.apply(this, arguments) }
  190. }(); J.fromId = function (N) {
  191. const E = x.esriBasemapDefinitions[N]; if (E) {
  192. if (E.deprecated) {
  193. let G = null; "dark-gray" === N ? G = "dark-gray-vector" : "gray" === N ? G = "gray-vector" : "streets" === N ? G = "streets-vector" : "topo" === N && (G = "topo-vector"); l.deprecated(D, `The ${N} basemap has entered mature support and is no longer being updated.`, {
  194. replacement: G,
  195. see: "https://arcg.is/1iq8aD", warnOnce: !0
  196. })
  197. } return C.fromJSON(E)
  198. } return null
  199. }; b._createClass(J, [{ key: "baseLayers", set: function (N) { this._set("baseLayers", d.referenceSetter(N, this._get("baseLayers"))) } }, { key: "referenceLayers", set: function (N) { this._set("referenceLayers", d.referenceSetter(N, this._get("referenceLayers"))) } }]); return J
  200. }(r.JSONSupportMixin(k)); c.__decorate([u.property({
  201. json: {
  202. write: { ignoreOrigin: !0, target: "baseMapLayers", writer(F, J, M, N) { this._writeBaseLayers(F, J, N) } }, origins: {
  203. "web-scene": {
  204. write: {
  205. ignoreOrigin: !0,
  206. target: { baseMapLayers: { type: e } }, writer(F, J, M, N) { this._writeBaseLayers(F, J, N) }
  207. }
  208. }
  209. }
  210. }
  211. })], r.prototype, "baseLayers", null); c.__decorate([u.property({ type: String, json: { origins: { "web-scene": { write: !0 } } } })], r.prototype, "id", void 0); c.__decorate([u.property({ type: w })], r.prototype, "portalItem", void 0); c.__decorate([u.property()], r.prototype, "referenceLayers", null); c.__decorate([u.property({ readOnly: !0 })], r.prototype, "resourceInfo", void 0); c.__decorate([u.property({ type: y })], r.prototype, "spatialReference", void 0);
  212. c.__decorate([u.property()], r.prototype, "thumbnailUrl", void 0); c.__decorate([u.property({ type: String, json: { origins: { "web-scene": { write: { isRequired: !0 } } } } })], r.prototype, "title", void 0); c.__decorate([v.writer("title")], r.prototype, "writeTitle", null); return r = C = c.__decorate([h.subclass("esri.Basemap")], r)
  213. })
  214. }, "esri/core/Collection": function () {
  215. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./ArrayPool ./Evented ./lang ./maybe ./ObjectPool ./ObservableChangesType ./scheduling ./accessorSupport/decorators/property ./accessorSupport/ensureType ./accessorSupport/decorators/shared ./accessorSupport/decorators/subclass ./accessorSupport/tracking ./accessorSupport/tracking/SimpleObservable".split(" "),
  216. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  217. function f(M) { return M ? M instanceof J ? M.toArray() : M.length ? Array.prototype.slice.apply(M) : [] : [] } function h(M) { if (M && M.length) return M[0] } function v(M, N, E, G) { N && N.forEach((H, K, S) => { M.push(H); v(M, E.call(G, H, K, S), E, G) }) } var y; let B = function () {
  218. function M() { this.target = null; this.defaultPrevented = this.cancellable = !1; this.type = this.item = void 0 } var N = M.prototype; N.preventDefault = function () { this.cancellable && (this.defaultPrevented = !0) }; N.reset = function (E) {
  219. this.defaultPrevented =
  220. !1; this.item = E
  221. }; return M
  222. }(); const w = new r(B, void 0, M => { M.item = null; M.target = null; M.defaultPrevented = !1; M.cancellable = !1 }), x = () => { }, z = new Set, C = new Set, A = new Set, D = new Map; let F = 0, J = y = function (M, N) {
  223. function E(H) { H = M.call(this, H) || this; H._chgListeners = []; H._notifications = null; H._timer = null; H._observable = new u.SimpleObservable; H.length = 0; H._items = []; Object.defineProperty(a._assertThisInitialized(H), "uid", { value: F++ }); return H } a._inheritsLoose(E, M); E.isCollection = function (H) {
  224. return null != H && H instanceof
  225. y
  226. }; var G = E.prototype; G.normalizeCtorArgs = function (H) { return H ? Array.isArray(H) || H instanceof y ? { items: H } : H : {} }; G.destroy = function () { this.removeAll() }; G[N] = function* () { yield* this.items }; G.hasEventListener = function (H) { return "change" === H ? 0 < this._chgListeners.length : this._emitter.hasEventListener(H) }; G.on = function (H, K) {
  227. if ("change" === H) {
  228. const S = this._chgListeners, fa = { removed: !1, callback: K }; S.push(fa); this._notifications && this._notifications.push({ listeners: S.slice(), items: this._items.slice(), changes: [] });
  229. return { remove() { this.remove = x; fa.removed = !0; S.splice(S.indexOf(fa), 1) } }
  230. } return this._emitter.on(H, K)
  231. }; G.once = function (H, K) { const S = this.on(H, K); return { remove() { S.remove() } } }; G.add = function (H, K) { n.trackAccess(this._observable); if (this._emitBeforeChanges(q.ObservableChangesType.ADD)) return this; K = this.getNextIndex(null != K ? K : null); this._splice(K, 0, [H]); this._emitAfterChanges(q.ObservableChangesType.ADD); return this }; G.addMany = function (H, K = this._items.length) {
  232. n.trackAccess(this._observable); if (!H || !H.length ||
  233. this._emitBeforeChanges(q.ObservableChangesType.ADD)) return this; K = this.getNextIndex(K); this._splice(K, 0, f(H)); this._emitAfterChanges(q.ObservableChangesType.ADD); return this
  234. }; G.at = function (H) { n.trackAccess(this._observable); H = Math.trunc(H) || 0; 0 > H && (H += this.length); if (!(0 > H || H >= this.length)) return this._items[H] }; G.removeAll = function () {
  235. n.trackAccess(this._observable); if (!this.length || this._emitBeforeChanges(q.ObservableChangesType.REMOVE)) return []; const H = this._splice(0, this.length) || []; this._emitAfterChanges(q.ObservableChangesType.REMOVE);
  236. return H
  237. }; G.clone = function () { n.trackAccess(this._observable); return this._createNewInstance({ items: this._items.map(d.clone) }) }; G.concat = function (...H) { n.trackAccess(this._observable); H = H.map(f); return this._createNewInstance({ items: this._items.concat(...H) }) }; G.drain = function (H, K) { n.trackAccess(this._observable); if (this.length && !this._emitBeforeChanges(q.ObservableChangesType.REMOVE)) { var S = l.assumeNonNull(this._splice(0, this.length)), fa = S.length; for (let ha = 0; ha < fa; ha++)H.call(K, S[ha], ha, S); this._emitAfterChanges(q.ObservableChangesType.REMOVE) } };
  238. G.every = function (H, K) { n.trackAccess(this._observable); return this._items.every(H, K) }; G.filter = function (H, K) { n.trackAccess(this._observable); let S; S = 2 === arguments.length ? this._items.filter(H, K) : this._items.filter(H); return this._createNewInstance({ items: S }) }; G.find = function (H, K) { n.trackAccess(this._observable); return this._items.find(H, K) }; G.findIndex = function (H, K) { n.trackAccess(this._observable); return this._items.findIndex(H, K) }; G.flatten = function (H, K) {
  239. n.trackAccess(this._observable); const S = [];
  240. v(S, this, H, K); return new y(S)
  241. }; G.forEach = function (H, K) { n.trackAccess(this._observable); return this._items.forEach(H, K) }; G.getItemAt = function (H) { n.trackAccess(this._observable); return this._items[H] }; G.getNextIndex = function (H) { n.trackAccess(this._observable); const K = this.length; H = null == H ? K : H; 0 > H ? H = 0 : H > K && (H = K); return H }; G.includes = function (H, K = 0) { n.trackAccess(this._observable); return this._items.includes(H, K) }; G.indexOf = function (H, K = 0) {
  242. n.trackAccess(this._observable); return this._items.indexOf(H,
  243. K)
  244. }; G.join = function (H = ",") { n.trackAccess(this._observable); return this._items.join(H) }; G.lastIndexOf = function (H, K = this.length - 1) { n.trackAccess(this._observable); return this._items.lastIndexOf(H, K) }; G.map = function (H, K) { n.trackAccess(this._observable); H = this._items.map(H, K); return new y({ items: H }) }; G.reorder = function (H, K = this.length - 1) {
  245. n.trackAccess(this._observable); const S = this.indexOf(H); if (-1 !== S) {
  246. 0 > K ? K = 0 : K >= this.length && (K = this.length - 1); if (S !== K) {
  247. if (this._emitBeforeChanges(q.ObservableChangesType.MOVE)) return H;
  248. this._splice(S, 1); this._splice(K, 0, [H]); this._emitAfterChanges(q.ObservableChangesType.MOVE)
  249. } return H
  250. }
  251. }; G.pop = function () { n.trackAccess(this._observable); if (this.length && !this._emitBeforeChanges(q.ObservableChangesType.REMOVE)) { var H = h(this._splice(this.length - 1, 1)); this._emitAfterChanges(q.ObservableChangesType.REMOVE); return H } }; G.push = function (...H) {
  252. n.trackAccess(this._observable); if (this._emitBeforeChanges(q.ObservableChangesType.ADD)) return this.length; this._splice(this.length, 0, H); this._emitAfterChanges(q.ObservableChangesType.ADD);
  253. return this.length
  254. }; G.reduce = function (H, K) { n.trackAccess(this._observable); const S = this._items; return 2 === arguments.length ? S.reduce(H, K) : S.reduce(H) }; G.reduceRight = function (H, K) { n.trackAccess(this._observable); const S = this._items; return 2 === arguments.length ? S.reduceRight(H, K) : S.reduceRight(H) }; G.remove = function (H) { n.trackAccess(this._observable); return this.removeAt(this.indexOf(H)) }; G.removeAt = function (H) {
  255. n.trackAccess(this._observable); if (!(0 > H || H >= this.length || this._emitBeforeChanges(q.ObservableChangesType.REMOVE))) return H =
  256. h(this._splice(H, 1)), this._emitAfterChanges(q.ObservableChangesType.REMOVE), H
  257. }; G.removeMany = function (H) {
  258. n.trackAccess(this._observable); if (!H || !H.length || this._emitBeforeChanges(q.ObservableChangesType.REMOVE)) return []; H = H instanceof y ? H.toArray() : H; const K = this._items, S = [], fa = H.length; for (let na = 0; na < fa; na++) {
  259. var ha = K.indexOf(H[na]); if (-1 < ha) {
  260. { var ba = na + 1; var O = ha + 1; const ra = Math.min(H.length - ba, K.length - O); let Da = 0; for (; Da < ra && H[ba + Da] === K[O + Da];)Da++; ba = Da } ba = 1 + ba; (ha = this._splice(ha, ba)) && 0 < ha.length &&
  261. S.push.apply(S, ha); na += ba - 1
  262. }
  263. } this._emitAfterChanges(q.ObservableChangesType.REMOVE); return S
  264. }; G.reverse = function () { n.trackAccess(this._observable); if (this._emitBeforeChanges(q.ObservableChangesType.MOVE)) return this; const H = this._splice(0, this.length); H && (H.reverse(), this._splice(0, 0, H)); this._emitAfterChanges(q.ObservableChangesType.MOVE); return this }; G.shift = function () {
  265. n.trackAccess(this._observable); if (this.length && !this._emitBeforeChanges(q.ObservableChangesType.REMOVE)) {
  266. var H = h(this._splice(0,
  267. 1)); this._emitAfterChanges(q.ObservableChangesType.REMOVE); return H
  268. }
  269. }; G.slice = function (H = 0, K = this.length) { n.trackAccess(this._observable); return this._createNewInstance({ items: this._items.slice(H, K) }) }; G.some = function (H, K) { n.trackAccess(this._observable); return this._items.some(H, K) }; G.sort = function (H) {
  270. n.trackAccess(this._observable); if (!this.length || this._emitBeforeChanges(q.ObservableChangesType.MOVE)) return this; const K = l.assumeNonNull(this._splice(0, this.length)); arguments.length ? K.sort(H) : K.sort();
  271. this._splice(0, 0, K); this._emitAfterChanges(q.ObservableChangesType.MOVE); return this
  272. }; G.splice = function (H, K, ...S) { n.trackAccess(this._observable); const fa = (K ? q.ObservableChangesType.REMOVE : 0) | (S.length ? q.ObservableChangesType.ADD : 0); if (this._emitBeforeChanges(fa)) return []; H = this._splice(H, K, S) || []; this._emitAfterChanges(fa); return H }; G.toArray = function () { n.trackAccess(this._observable); return this._items.slice() }; G.toJSON = function () { n.trackAccess(this._observable); return this.toArray() }; G.toLocaleString =
  273. function () { n.trackAccess(this._observable); return this._items.toLocaleString() }; G.toString = function () { n.trackAccess(this._observable); return this._items.toString() }; G.unshift = function (...H) { n.trackAccess(this._observable); if (!H.length || this._emitBeforeChanges(q.ObservableChangesType.ADD)) return this.length; this._splice(0, 0, H); this._emitAfterChanges(q.ObservableChangesType.ADD); return this.length }; G._createNewInstance = function (H) { return new this.constructor(H) }; G._splice = function (H, K, S) {
  274. const fa = this._items;
  275. var ha = this.itemType; let ba = void 0; !this._notifications && this.hasEventListener("change") && (this._notifications = [{ listeners: this._chgListeners.slice(), items: this._items.slice(), changes: [] }], this._timer && this._timer.remove(), this._timer = k.schedule(() => this._dispatchChange())); if (K) {
  276. ba = fa.splice(H, K); if (this.hasEventListener("before-remove")) {
  277. var O = w.acquire(); O.target = this; O.cancellable = !0; for (let Da = 0, Ka = ba.length; Da < Ka; Da++)K = ba[Da], O.reset(K), this.emit("before-remove", O), O.defaultPrevented && (ba.splice(Da,
  278. 1), fa.splice(H, 0, K), H += 1, --Da, --Ka); w.release(O)
  279. } this.length = this._items.length; if (this.hasEventListener("after-remove")) { K = w.acquire(); K.target = this; K.cancellable = !1; O = ba.length; for (let Da = 0; Da < O; Da++)K.reset(ba[Da]), this.emit("after-remove", K); w.release(K) }
  280. } if (S && S.length) {
  281. if (ha) { K = []; for (var na of S) S = ha.ensureType(na), null == S && null != na || K.push(S); S = K } ha = this.hasEventListener("before-add"); na = this.hasEventListener("after-add"); K = H === this.length; if (ha || na) {
  282. var ra = w.acquire(); ra.target = this; ra.cancellable =
  283. !0; O = w.acquire(); O.target = this; O.cancellable = !1; for (const Da of S) ha ? (ra.reset(Da), this.emit("before-add", ra), ra.defaultPrevented || (K ? fa.push(Da) : fa.splice(H++, 0, Da), this._set("length", fa.length), na && (O.reset(Da), this.emit("after-add", O)))) : (K ? fa.push(Da) : fa.splice(H++, 0, Da), this._set("length", fa.length), O.reset(Da), this.emit("after-add", O)); w.release(O); w.release(ra)
  284. } else { if (K) for (ra of S) fa.push(ra); else fa.splice(H, 0, ...S); this._set("length", fa.length) }
  285. } (S && S.length || ba && ba.length) && this._notifyChangeEvent(S,
  286. ba); return ba
  287. }; G._emitBeforeChanges = function (H) { let K = !1; if (this.hasEventListener("before-changes")) { const S = w.acquire(); S.target = this; S.cancellable = !0; S.type = H; this.emit("before-changes", S); K = S.defaultPrevented; w.release(S) } return K }; G._emitAfterChanges = function (H) { if (this.hasEventListener("after-changes")) { const K = w.acquire(); K.target = this; K.cancellable = !1; K.type = H; this.emit("after-changes", K); w.release(K) } this._observable.notify() }; G._notifyChangeEvent = function (H, K) {
  288. this.hasEventListener("change") &&
  289. this._notifications && this._notifications[this._notifications.length - 1].changes.push({ added: H, removed: K })
  290. }; G._dispatchChange = function () {
  291. this._timer && (this._timer.remove(), this._timer = null); if (this._notifications) {
  292. var H = this._notifications; this._notifications = null; for (const K of H) {
  293. H = K.changes; z.clear(); C.clear(); A.clear(); for (const { added: na, removed: ra } of H) {
  294. if (na) if (0 === A.size && 0 === C.size) for (const Da of na) z.add(Da); else for (const Da of na) C.has(Da) ? (A.add(Da), C.delete(Da)) : A.has(Da) || z.add(Da);
  295. if (ra) if (0 === A.size && 0 === z.size) for (const Da of ra) C.add(Da); else for (const Da of ra) z.has(Da) ? z.delete(Da) : (A.delete(Da), C.add(Da))
  296. } const S = c.acquire(); z.forEach(na => { S.push(na) }); const fa = c.acquire(); C.forEach(na => { fa.push(na) }); const ha = this._items, ba = K.items, O = c.acquire(); A.forEach(na => { ba.indexOf(na) !== ha.indexOf(na) && O.push(na) }); if (K.listeners && (S.length || fa.length || O.length)) {
  297. H = { target: this, added: S, removed: fa, moved: O }; const na = K.listeners.length; for (let ra = 0; ra < na; ra++) {
  298. const Da = K.listeners[ra];
  299. Da.removed || Da.callback.call(this, H)
  300. }
  301. } c.release(S); c.release(fa); c.release(O)
  302. } z.clear(); C.clear(); A.clear()
  303. }
  304. }; a._createClass(E, [{ key: "items", get: function () { n.trackAccess(this._observable); return this._items }, set: function (H) { this._emitBeforeChanges(q.ObservableChangesType.ADD) || (this._splice(0, this.length, f(H)), this._emitAfterChanges(q.ObservableChangesType.ADD)) } }]); return E
  305. }(e.EventedAccessor, Symbol.iterator); J.ofType = M => {
  306. if (!M) return y; if (D.has(M)) return D.get(M); let N = null; if ("function" === typeof M) N =
  307. M.prototype.declaredClass; else if (M.base) N = M.base.prototype.declaredClass; else for (var E in M.typeMap) { const G = M.typeMap[E].prototype.declaredClass; N = N ? N + ` | ${G}` : G } E = function (G) { function H() { return G.apply(this, arguments) || this } a._inheritsLoose(H, G); return H }(y); b.__decorate([p.shared({ Type: M, ensureType: "function" === typeof M ? g.ensureType(M) : g.ensureOneOfType(M) })], E.prototype, "itemType", void 0); E = b.__decorate([t.subclass(`esri.core.Collection<${N}>`)], E); D.set(M, E); return E
  308. }; b.__decorate([m.property()],
  309. J.prototype, "length", void 0); b.__decorate([m.property()], J.prototype, "items", null); return J = y = b.__decorate([t.subclass("esri.core.Collection")], J)
  310. })
  311. }, "esri/core/ArrayPool": function () {
  312. define(["./ObjectPool"], function (a) {
  313. function b(d) { d.length = 0 } let c = function () {
  314. function d(r = 50, q = 50) { this._pool = new a(Array, void 0, b, q, r) } var l = d.prototype; l.acquire = function () { return this._pool.acquire() }; l.release = function (r) { this._pool.release(r) }; l.prune = function () { this._pool.prune(0) }; d.acquire = function () { return e.acquire() };
  315. d.release = function (r) { return e.release(r) }; d.prune = function () { e.prune() }; return d
  316. }(); const e = new c(100); return c
  317. })
  318. }, "esri/core/ObjectPool": function () {
  319. define(function () {
  320. let a = function () {
  321. function b(e, d, l, r = 1, q = 0) { this.ctor = e; this.acquireFunction = d; this.releaseFunction = l; this.allocationSize = r; this._pool = Array(q); this._initialSize = q; if (this.ctor) for (e = 0; e < q; e++)this._pool[e] = new this.ctor; this.allocationSize = Math.max(r, 1) } var c = b.prototype; c.destroy = function () { this.prune(0) }; c.acquire = function (...e) {
  322. if (b.test.disabled) var d =
  323. new this.ctor; else { if (0 === this._pool.length) { d = this.allocationSize; for (let l = 0; l < d; l++)this._pool[l] = new this.ctor } d = this._pool.pop() } this.acquireFunction ? this.acquireFunction(d, ...e) : d && d.acquire && "function" === typeof d.acquire && d.acquire(...e); return d
  324. }; c.release = function (e) { e && !b.test.disabled && (this.releaseFunction ? this.releaseFunction(e) : e && e.release && "function" === typeof e.release && e.release(), this._pool.push(e)) }; c.prune = function (e = this._initialSize) {
  325. if (!(e >= this._pool.length)) {
  326. for (let d = e; d <
  327. this._pool.length; ++d)this._dispose(this._pool[d]); this._pool.length = e
  328. }
  329. }; c._dispose = function (e) { e.dispose && "function" === typeof e.dispose && e.dispose() }; return b
  330. }(); a.test = { disabled: !1 }; return a
  331. })
  332. }, "esri/core/Evented": function () {
  333. define(["../chunks/_rollupPluginBabelHelpers", "../chunks/tslib.es6", "./Accessor", "./handleUtils", "./accessorSupport/decorators/subclass"], function (a, b, c, e, d) {
  334. let l = function () {
  335. function r() { this._emitter = new r.EventEmitter(this) } var q = r.prototype; q.emit = function (k, m) {
  336. return this._emitter.emit(k,
  337. m)
  338. }; q.on = function (k, m) { return this._emitter.on(k, m) }; q.once = function (k, m) { return this._emitter.once(k, m) }; q.hasEventListener = function (k) { return this._emitter.hasEventListener(k) }; return r
  339. }(); (function (r) {
  340. let q = function () {
  341. function m(p = null) { this.target = p; this._listenersMap = null } var g = m.prototype; g.clear = function () { this._listenersMap && this._listenersMap.clear(); this._listenersMap = null }; g.emit = function (p, t) {
  342. p = this._listenersMap && this._listenersMap.get(p); if (!p) return !1; const n = this.target || this;[...p].forEach(u => { u.call(n, t) }); return 0 < p.length
  343. }; g.on = function (p, t) { if (Array.isArray(p)) { var n = p.map(u => this.on(u, t)); return e.handlesGroup(n) } if (p.includes(",")) throw new TypeError("Evented.on() with a comma delimited string of event types is not supported"); this._listenersMap || (this._listenersMap = new Map); n = this._listenersMap.get(p) || []; n.push(t); this._listenersMap.set(p, n); return { remove: () => { const u = this._listenersMap && this._listenersMap.get(p) || [], f = u.indexOf(t); 0 <= f && u.splice(f, 1) } } }; g.once = function (p, t) {
  344. const n =
  345. this.on(p, u => { n.remove(); t.call(null, u) }); return n
  346. }; g.hasEventListener = function (p) { p = this._listenersMap && this._listenersMap.get(p); return null != p && 0 < p.length }; return m
  347. }(); r.EventEmitter = q; r.EventedMixin = m => {
  348. m = function (g) {
  349. function p() { var n = g.apply(this, arguments) || this; n._emitter = new q; return n } a._inheritsLoose(p, g); var t = p.prototype; t.destroy = function () { this._emitter.clear() }; t.emit = function (n, u) { return this._emitter.emit(n, u) }; t.on = function (n, u) { return this._emitter.on(n, u) }; t.once = function (n, u) {
  350. return this._emitter.once(n,
  351. u)
  352. }; t.hasEventListener = function (n) { return this._emitter.hasEventListener(n) }; return p
  353. }(m); return m = b.__decorate([d.subclass("esri.core.Evented")], m)
  354. }; let k = function (m) {
  355. function g() { var t = m.apply(this, arguments) || this; t._emitter = new l.EventEmitter(a._assertThisInitialized(t)); return t } a._inheritsLoose(g, m); var p = g.prototype; p.destroy = function () { this._emitter.clear() }; p.emit = function (t, n) { return this._emitter.emit(t, n) }; p.on = function (t, n) { return this._emitter.on(t, n) }; p.once = function (t, n) {
  356. return this._emitter.once(t,
  357. n)
  358. }; p.hasEventListener = function (t) { return this._emitter.hasEventListener(t) }; return g
  359. }(c); k = b.__decorate([d.subclass("esri.core.Evented")], k); r.EventedAccessor = k
  360. })(l || (l = {})); return l
  361. })
  362. }, "esri/core/Accessor": function () {
  363. define("../chunks/_rollupPluginBabelHelpers ./iteratorUtils ./maybe ./accessorSupport/get ./accessorSupport/interfaces ./accessorSupport/metadata ./accessorSupport/Properties ./accessorSupport/set ./accessorSupport/watch ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),
  364. function (a, b, c, e, d, l, r, q, k, m, g) {
  365. function p(f) { var h; if (null == f) return { value: f }; if (Array.isArray(f)) return { type: [f[0]], value: null }; switch (typeof f) { case "object": return null != (h = f.constructor) && h.__accessorMetadata__ || f instanceof Date ? { type: f.constructor, value: f } : f; case "boolean": return { type: Boolean, value: f }; case "string": return { type: String, value: f }; case "number": return { type: Number, value: f }; case "function": return { type: f, value: null } } } const t = Symbol("Accessor-Handles"); let n = function () {
  366. function f(...v) {
  367. this[u] =
  368. null; if (this.constructor === f) throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor"); Object.defineProperty(this, "__accessor__", { enumerable: !1, value: new r(this) }); 0 < v.length && this.normalizeCtorArgs && (this.__accessor__.ctorArgs = this.normalizeCtorArgs.apply(this, v))
  369. } f.createSubclass = function (v = {}) {
  370. if (Array.isArray(v)) throw Error("Multi-inheritance unsupported since 4.16"); const { properties: y, declaredClass: B, constructor: w } = v; delete v.declaredClass; delete v.properties;
  371. delete v.constructor; const x = this; let z = function (C) { function A(...D) { var F = C.call(this, ...D) || this; F.inherited = null; w && w.apply(a._assertThisInitialized(F), D); return F } a._inheritsLoose(A, C); return A }(x); l.getOwnClassMetadata(z.prototype); for (const C in v) {
  372. const A = v[C]; z.prototype[C] = "function" === typeof A ? function (...D) {
  373. const F = this.inherited; this.inherited = function (...M) { if (x.prototype[C]) return x.prototype[C].apply(this, M) }; let J = void 0; try { J = A.apply(this, D) } catch (M) { throw this.inherited = F, M; } this.inherited =
  374. F; return J
  375. } : v[C]
  376. } for (const C in y) v = p(y[C]), m.property(v)(z.prototype, C); return g.subclass(B)(z)
  377. }; var h = f.prototype; h.postscript = function (v) { const y = this.__accessor__; v = y.ctorArgs || v; y.initialize(); v && (this.set(v), y.ctorArgs = null); y.constructed(); this.initialize() }; h.initialize = function () { }; h.destroy = function () { this.destroyed || (c.applySome(this[t], v => { v.forEach(y => y.remove()) }), this[t] = null, k.removeTarget(this), this.__accessor__.destroy()) }; h.commitProperty = function (v) { this.get(v) }; h.get = function (v) {
  378. return e.get(this,
  379. v)
  380. }; h.hasOwnProperty = function (v) { return this.__accessor__ ? this.__accessor__.has(v) : Object.prototype.hasOwnProperty.call(this, v) }; h.keys = function () { return this.__accessor__ ? this.__accessor__.keys() : [] }; h.set = function (v, y) { q.set(this, v, y); return this }; h.watch = function (v, y, B) { return k.watch(this, v, y, B) }; h.own = function (v) { let y = this[t]; c.isNone(y) && (y = this[t] = new Set); if (b.isIterable(v)) for (const B of v) y.add(B); else y.add(v) }; h._clearOverride = function (v) { return this.__accessor__.clearOverride(v) }; h._override =
  381. function (v, y) { return this.__accessor__.override(v, y) }; h._isOverridden = function (v) { return this.__accessor__.isOverridden(v) }; h.notifyChange = function (v) { this.__accessor__.notifyChange(v) }; h._get = function (v) { return this.__accessor__.internalGet(v) }; h._set = function (v, y) { this.__accessor__.internalSet(v, y); return this }; a._createClass(f, [{ key: "initialized", get: function () { return this.__accessor__ && this.__accessor__.initialized || !1 } }, {
  382. key: "constructed", get: function () {
  383. return this.__accessor__ && this.__accessor__.lifecycle ===
  384. d.Lifecycle.CONSTRUCTED || !1
  385. }
  386. }, { key: "destroyed", get: function () { return this.__accessor__ && this.__accessor__.destroyed || !1 } }]); return f
  387. }(); var u = t; return n
  388. })
  389. }, "esri/core/iteratorUtils": function () {
  390. define(["exports"], function (a) {
  391. a.cache = function (b) { const c = []; return function* () { yield* c; for (const e of b) c.push(e), yield e } }; a.find = function (b, c) { for (const e of b) if (null != e && c(e)) return e }; a.isIterable = function (b) { return null != b && "function" === typeof b[Symbol.iterator] }; Object.defineProperties(a, {
  392. __esModule: { value: !0 },
  393. [Symbol.toStringTag]: { value: "Module" }
  394. })
  395. })
  396. }, "esri/core/maybe": function () {
  397. define(["exports"], function (a) {
  398. function b(e, d) { return null != e ? d(e) : null } function c(e, d, l) { return null != e ? l(e) : d } a.abortMaybe = function (e) { null != e && e.abort(); return null }; a.applySome = b; a.assumeNonNull = function (e) { return e }; a.destroyMaybe = function (e) { null != e && e.destroy(); return null }; a.disposeMaybe = function (e) { null != e && e.dispose(); return null }; a.equalsMaybe = function (e, d, l) { return null != e && null != d ? null != l ? l(e, d) : e.equals(d) : e === d };
  399. a.filterNones = function (e) { return e.filter(d => null != d) }; a.forEachSome = function (e, d) { for (const l of e) b(l, d) }; a.get = function (e, ...d) { for (let l = 0; l < d.length && e; ++l)e = e[d[l]]; return e }; a.isNone = function (e) { return null == e }; a.isSome = function (e) { return null != e }; a.isUndefined = function (e) { return void 0 === e }; a.mapMany = function (e, d) { const l = []; for (const r of e) l.push(c(r, null, d)); return l }; a.mapOr = c; a.mapSome = function (e, d) { const l = []; e.forEach(r => { r = d(r); null != r && l.push(r) }); return l }; a.mapSomeFirst = function (e,
  400. d) { for (const l of e) if (e = d(l), null != e) return e; return null }; a.none = null; a.nullifyNonnullableForDispose = function (e) { return null }; a.releaseMaybe = function (e) { null != e && e.release(); return null }; a.removeMaybe = function (e) { null != e && e.remove(); return null }; a.unwrap = function (e) { return e }; a.unwrapOr = function (e, d) { return null != e ? e : "function" === typeof d ? d() : d }; a.unwrapOrThrow = function (e, d) { if (null == e) throw Error(d); return e }; a.unwrapOrValue = function (e, d) { return null != e ? e : d }; Object.defineProperties(a, {
  401. __esModule: { value: !0 },
  402. [Symbol.toStringTag]: { value: "Module" }
  403. })
  404. })
  405. }, "esri/core/accessorSupport/get": function () {
  406. define(["exports", "./utils"], function (a, b) {
  407. function c(l, r) { l = "?" === l[l.length - 1] ? l.slice(0, -1) : l; if (null != r.getItemAt || Array.isArray(r)) { var q = parseInt(l, 10); if (!isNaN(q)) return Array.isArray(r) ? r[q] : r.getItemAt(q) } q = b.getProperties(r); return b.isPropertyDeclared(q, l) ? q.get(l) : r[l] } function e(l, r, q) { if (null == l) return l; if ((l = c(r[q], l)) || !(q < r.length - 1)) return q === r.length - 1 ? l : e(l, r, q + 1) } function d(l, r, q = 0) {
  408. return "string" !==
  409. typeof r || r.includes(".") ? e(l, b.pathToArray(r), q) : c(r, l)
  410. } a.exists = function (l, r) { return void 0 !== d(r, l) }; a.get = function (l, r) { return d(l, r) }; a.valueOf = d; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  411. })
  412. }, "esri/core/accessorSupport/utils": function () {
  413. define(["exports", "../handleUtils", "../lang", "../maybe"], function (a, b, c, e) {
  414. function d(m) { return m ? m.__accessor__ ? m.__accessor__ : m.propertyInvalidated ? m : null : null } function l(m, g, p) {
  415. return g ? Object.keys(g).reduce((t,
  416. n) => {
  417. let u = null; var f = "merge"; p && (u = p.path ? `${p.path}.${n}` : n, f = p.policy(u)); if ("replace" === f) return t[n] = g[n], t; if (void 0 === t[n]) return t[n] = c.clone(g[n]), t; let h = t[n]; f = g[n]; if (h === f) return t; if (Array.isArray(f) || Array.isArray(t)) h = h ? Array.isArray(h) ? t[n] = h.concat() : t[n] = [h] : t[n] = [], f && (Array.isArray(f) || (f = [f]), f.forEach(v => { h.includes(v) || h.push(v) })); else if (f && "object" === typeof f) if (p) { const v = p.path; p.path = e.assumeNonNull(u); t[n] = l(h, f, p); p.path = v } else t[n] = l(h, f, null); else if (!t.hasOwnProperty(n) ||
  418. g.hasOwnProperty(n)) t[n] = f; return t
  419. }, m || {}) : m
  420. } function r(m) { return Array.isArray(m) ? m : m.split(".") } function q(m) { return m.includes(",") ? m.split(",").map(g => g.trim()) : [m.trim()] } function k(m) { if (Array.isArray(m)) { const g = []; for (const p of m) g.push(...q(p)); return g } return q(m) } a.getDependsInfo = function (m, g) { const p = d(m); return p ? p.getDependsInfo(m, g, "") : "" }; a.getProperties = d; a.isPropertyDeclared = function (m, g) { return null != m && m.metadatas && null != m.metadatas[g] }; a.merge = function (m, g, p) {
  421. return p ? l(m, g,
  422. { policy: p, path: "" }) : l(m, g, null)
  423. }; a.once = function (m) { let g = !1; return () => { g || (g = !0, m()) } }; a.parse = function (m, g, p, t) { g = k(g); return 1 !== g.length ? (g = g.map(n => t(m, n, p)), b.handlesGroup(g)) : t(m, g[0], p) }; a.parseConditionalPath = function (m) { if (!m.includes("?")) return null; m = r(m); const g = Array(m.length); for (let p = 0; p < m.length; p++) { const t = m[p]; g[p] = "?" === t[t.length - 1]; g[p] && (m[p] = t.slice(0, -1)) } return { fullPath: m.join("."), conditional: g } }; a.pathToArray = r; a.pathToStringOrArray = function (m) {
  424. return !m || "string" ===
  425. typeof m && !m.includes(".") ? m : r(m)
  426. }; a.splitPath = k; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  427. })
  428. }, "esri/core/handleUtils": function () {
  429. define(["exports", "./maybe"], function (a, b) {
  430. function c(e) { return { remove: () => { e && (e(), e = void 0) } } } a.asyncHandle = function (e, d) { let l = !1, r = null; e.then(q => { l ? q.remove() : r = q }); return c(() => { l = !0; b.isSome(r) ? r.remove() : b.isSome(d) && (d.abort(), d = null) }) }; a.destroyHandle = function (e) { return c(b.isSome(e) ? () => e.destroy() : void 0) }; a.handlesGroup =
  431. function (e) { return c(() => e.forEach(d => b.isSome(d) && d.remove())) }; a.makeHandle = c; a.refHandle = function (e) { return c(() => { const d = e(); b.isSome(d) && d.remove() }) }; a.timeoutHandle = function (e, d) { const l = setTimeout(e, d); return c(() => clearTimeout(l)) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  432. })
  433. }, "esri/core/lang": function () {
  434. define(["exports", "./arrayUtils", "./has", "./maybe", "./typedArrayUtil"], function (a, b, c, e, d) {
  435. function l(n, u) {
  436. let f; if (u) for (f in n) n.hasOwnProperty(f) &&
  437. (void 0 === n[f] ? delete n[f] : n[f] instanceof Object && l(n[f], !0)); else for (f in n) n.hasOwnProperty(f) && void 0 === n[f] && delete n[f]; return n
  438. } function r(n) { if (!n || "object" !== typeof n || "function" === typeof n) return n; var u = p(n); if (e.isSome(u)) return u; if ("function" === typeof n.clone) return n.clone(); if (k(n)) return n.map(r); if (m(n)) return n.clone(); u = {}; for (const f of Object.getOwnPropertyNames(n)) u[f] = r(n[f]); return u } function q(n) {
  439. if (!n || "object" !== typeof n || "function" === typeof n) return n; var u = p(n); if (e.isSome(u)) return u;
  440. if (k(n)) { let f = !0; n = n.map(h => { const v = q(h); null != h && null == v && (f = !1); return v }); return f ? n : null } if ("function" === typeof n.clone) return n.clone(); if (!m(n)) { u = new (Object.getPrototypeOf(n).constructor); for (const f of Object.getOwnPropertyNames(n)) { const h = n[f], v = q(h); if (null != h && null == v) return null; u[f] = v } return u } return null
  441. } function k(n) { return "function" === typeof n.map && "function" === typeof n.forEach } function m(n) { return "function" === typeof n.notifyChange && "function" === typeof n.watch } function g(n) {
  442. if ("[object Object]" !==
  443. Object.prototype.toString.call(n)) return !1; n = Object.getPrototypeOf(n); return null === n || n === Object.prototype
  444. } function p(n) {
  445. if (d.isInt8Array(n) || d.isUint8Array(n) || d.isUint8ClampedArray(n) || d.isInt16Array(n) || d.isUint16Array(n) || d.isInt32Array(n) || d.isUint32Array(n) || d.isFloat32Array(n) || d.isFloat64Array(n)) return d.slice(n); if (n instanceof Date) return new Date(n.getTime()); if (n instanceof ArrayBuffer) return n.slice(0, n.byteLength); if (n instanceof Map) {
  446. const u = new Map; n.forEach((f, h) => { u.set(h, r(f)) });
  447. return u
  448. } if (n instanceof Set) { const u = new Set; n.forEach(f => { u.add(r(f)) }); return u } return null
  449. } function t(n, u) { if (null === n || null === u) return !1; const f = Object.keys(n); if (null === u || Object.keys(u).length !== f.length) return !1; for (const h of f) if (n[h] !== u[h] || !Object.prototype.hasOwnProperty.call(u, h)) return !1; return !0 } a.clone = r; a.equals = function (n, u) {
  450. return n === u || "number" === typeof n && isNaN(n) && "number" === typeof u && isNaN(u) || "function" === typeof (n || {}).getTime && "function" === typeof (u || {}).getTime && n.getTime() ===
  451. u.getTime() || !1
  452. }; a.equalsShallow = function (n, u) {
  453. if (n === u) return !0; if (null === n || void 0 === n || "string" === typeof n) return n === u; if ("number" === typeof n) return n === u || "number" === typeof u && isNaN(n) && isNaN(u); if (n instanceof Date) return u instanceof Date && n.getTime() === u.getTime(); if (Array.isArray(n)) return Array.isArray(u) && b.equals(n, u); if (n instanceof Set) { var f; if (f = u instanceof Set) a: if (n.size !== u.size) f = !1; else { for (const h of n) if (!u.has(h)) { f = !1; break a } f = !0 } return f } if (n instanceof Map) {
  454. if (f = u instanceof
  455. Map) a: if (n.size !== u.size) f = !1; else { for (const [h, v] of n) if (n = u.get(h), n !== v || void 0 === n && !u.has(h)) { f = !1; break a } f = !0 } return f
  456. } return g(n) ? g(u) && t(n, u) : !1
  457. }; a.fixJson = l; a.isAccessorLike = m; a.isPlainObject = g; a.mixin = function (n = {}, ...u) { c("esri-deprecation-warnings") && console.warn("[esri.core.lang] \ud83d\uded1 DEPRECATED - Function: mixin()\n\t\ud83d\udee0\ufe0f Replacement: Use Object.assign() directly\n\t\u2699\ufe0f Version: 4.19"); return Object.assign(n, ...u) }; a.tryClone = q; a.tryCloneBuiltInObject =
  458. p; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  459. })
  460. }, "esri/core/arrayUtils": function () {
  461. define(["exports", "./maybe", "./RandomLCG"], function (a, b, c) {
  462. function e(t) { return t } function d(t, n = e) { if (t && 0 !== t.length) { var u = t[0], f = n(u); for (let h = 1; h < t.length; ++h) { const v = t[h], y = Number(n(v)); y > f && (f = y, u = v) } return u } } function l(t, n, u, f) {
  463. f = f || m; var h = Math.max(0, f.last - 10); for (let v = h; v < u; ++v)if (t[v] === n) return f.last = v; u = Math.min(h, u); for (h = 0; h < u; ++h)if (t[h] === n) return f.last =
  464. h; return -1
  465. } function r(t) { return t ? (p.seed = t, () => p.getFloat()) : Math.random } const q = !!Array.prototype.fill; let k = function () { this.last = 0 }; const m = new k, g = new Set, p = new c; a.PositionHint = k; a.binaryFindClosest = function (t, n, u) {
  466. if (t && 0 !== t.length) {
  467. var f = t.length - 1, h = t[0]; if (n <= u(h)) return h; h = t[f]; if (n >= u(h)) return h; var v = 0; h = 0; for (var y = f; v < y;) {
  468. h = v + Math.floor((y - v) / 2); const w = t[h], x = u(w); if (x === n) return w; if (n < x) { if (0 < h) { y = t[h - 1]; var B = u(y); if (n > B) return n - B >= x - n ? w : y } y = h } else {
  469. if (h < f && (v = t[h + 1], B = u(v), n <
  470. B)) return n - x >= B - n ? v : w; v = h + 1
  471. }
  472. } return t[h]
  473. }
  474. }; a.binaryIndexOf = function (t, n, u) { const f = t.length; let h = 0; for (var v = f - 1; h < v;) { const y = h + Math.floor((v - h) / 2); n > t[y] ? h = y + 1 : v = y } v = t[h]; return u ? n >= t[f - 1] ? -1 : v === n ? h : h - 1 : v === n ? h : -1 }; a.constant = function (t, n) { if (q) return Array(t).fill(n); const u = Array(t); for (let f = 0; f < t; f++)u[f] = n; return u }; a.difference = function (t, n, u) {
  475. let f, h; u ? (f = n.filter(v => !t.some(y => u(y, v))), h = t.filter(v => !n.some(y => u(y, v)))) : (f = n.filter(v => !t.includes(v)), h = t.filter(v => !n.includes(v))); return {
  476. added: f,
  477. removed: h
  478. }
  479. }; a.equals = function (t, n, u) { if (b.isNone(t) && b.isNone(n)) return !0; if (b.isNone(t) || b.isNone(n) || t.length !== n.length) return !1; if (u) for (let f = 0; f < t.length; f++) { if (!u(t[f], n[f])) return !1 } else for (u = 0; u < t.length; u++)if (t[u] !== n[u]) return !1; return !0 }; a.first = function (t) { if (t) return 0 < t.length ? t[0] : void 0 }; a.flatten = function (t) { return t.reduce((n, u) => n.concat(u || []), []) }; a.indexOf = l; a.intersect = function (t, n, u) { return t && n ? u ? t.filter(f => -1 < n.findIndex(h => u(f, h))) : t.filter(f => n.includes(f)) : [] }; a.isArrayLike =
  480. function (t) { return t && "number" === typeof t.length }; a.last = function (t) { if (t) { var n = t.length; return 0 < n ? t[n - 1] : void 0 } }; a.max = d; a.min = function (t, n = e) { return d(t, u => -n(u)) }; a.pickRandom = function (t, n, u) { const f = t.length; if (n >= f) return t.slice(0); u = r(u); const h = new Set, v = []; for (; v.length < n;) { const y = Math.floor(u() * f); h.has(y) || (h.add(y), v.push(t[y])) } return v }; a.range = function (t, n) { void 0 === n && (n = t, t = 0); const u = Array(n - t); for (let f = t; f < n; f++)u[f - t] = f; return u }; a.remove = function (t, n) {
  481. const u = t.indexOf(n);
  482. return -1 !== u ? (t.splice(u, 1), n) : null
  483. }; a.removeUnordered = function (t, n, u, f) { const h = null == u ? t.length : u; f = l(t, n, h, f); if (-1 !== f) return t[f] = t[h - 1], null == u && t.pop(), n }; a.removeUnorderedMany = function (t, n, u = t.length, f = n.length, h, v) {
  484. if (0 === f || 0 === u) return u; g.clear(); for (let y = 0; y < f; ++y)g.add(n[y]); h = h || m; n = Math.max(0, h.last - 10); for (f = n; f < u; ++f)if (g.has(t[f]) && (v && v.push(t[f]), g.delete(t[f]), t[f] = t[u - 1], --u, --f, 0 === g.size || 0 === u)) return g.clear(), u; for (f = 0; f < n; ++f)if (g.has(t[f]) && (v && v.push(t[f]), g.delete(t[f]),
  485. t[f] = t[u - 1], --u, --f, 0 === g.size || 0 === u)) return g.clear(), u; g.clear(); return u
  486. }; a.shuffle = function (t, n) { n = r(n); for (let u = t.length - 1; 0 < u; u--) { const f = Math.floor(n() * (u + 1)), h = t[u]; t[u] = t[f]; t[f] = h } return t }; a.splitIntoChunks = function (t, n) { const u = t.length; if (0 === u) return []; const f = []; for (let h = 0; h < u; h += n)f.push(t.slice(h, h + n)); return f }; a.unique = function (t, n) { return n ? t.filter((u, f, h) => h.findIndex(n.bind(null, u)) === f) : t.filter((u, f, h) => h.indexOf(u) === f) }; a.update = function (t, n) {
  487. let u = t.length !== n.length;
  488. t.length = n.length; for (let f = 0; f < n.length; ++f)t[f] !== n[f] && (t[f] = n[f], u = !0); return u
  489. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  490. })
  491. }, "esri/core/RandomLCG": function () {
  492. define(["../chunks/_rollupPluginBabelHelpers"], function (a) {
  493. let b = function () {
  494. function c(d = 1) { this._seed = d } var e = c.prototype; e.getInt = function () { return this._seed = (c._a * this._seed + c._c) % c._m }; e.getFloat = function () { return this.getInt() / (c._m - 1) }; e.getIntRange = function (d, l) {
  495. return Math.round(this.getFloatRange(d,
  496. l))
  497. }; e.getFloatRange = function (d, l) { l -= d; const r = this.getInt() / c._m; return d + r * l }; a._createClass(c, [{ key: "seed", set: function (d) { this._seed = null == d ? Math.random() * c._m : d } }]); return c
  498. }(); b._m = 2147483647; b._a = 48271; b._c = 0; return b
  499. })
  500. }, "esri/core/has": function () {
  501. define(function () {
  502. function a(r) { return "function" === typeof e[r] ? e[r] = e[r](globalThis) : e[r] } var b, c; let e; if (null != (b = globalThis.dojoConfig) && b.has || null != (c = globalThis.esriConfig) && c.has) {
  503. var d, l; e = {
  504. ...null == (d = globalThis.dojoConfig) ? void 0 : d.has,
  505. ...null == (l = globalThis.esriConfig) ? void 0 : l.has
  506. }
  507. } else e = {}; a.add = (r, q, k, m) => { if (m || "undefined" === typeof e[r]) e[r] = q; return k && a(r) }; a.cache = e; a.add("esri-deprecation-warnings", !0); (() => {
  508. a.add("host-webworker", "undefined" !== typeof globalThis.WorkerGlobalScope && self instanceof globalThis.WorkerGlobalScope); var r = "undefined" !== typeof window && "undefined" !== typeof location && "undefined" !== typeof document && window.location === location && window.document === document; a.add("host-browser", r); a.add("dom", r); if (a("host-browser")) {
  509. var q =
  510. navigator; r = q.userAgent; q = q.appVersion; const m = parseFloat(q); a.add("edge", parseFloat(r.split("Edge/")[1]) || void 0); a.add("webkit", !a("edge") && parseFloat(r.split("WebKit/")[1]) || void 0); a.add("chrome", !a("edge") && parseFloat(r.split("Chrome/")[1]) || void 0); a.add("safari", !q.includes("Safari") || a("chrome") || a("edge") ? void 0 : parseFloat(q.split("Version/")[1])); a.add("mac", q.includes("Macintosh")); if (r.match(/(iPhone|iPod|iPad)/)) {
  511. const g = RegExp.$1.replace(/P/, "p"); var k = r.match(/OS ([\d_]+)/) ? RegExp.$1 :
  512. "1"; k = parseFloat(k.replace(/_/, ".").replace(/_/g, "")); a.add(g, k); a.add("ios", k)
  513. } a.add("trident", parseFloat(q.split("Trident/")[1]) || void 0); a("webkit") || (!r.includes("Gecko") || a("trident") || a("edge") || a.add("mozilla", m), a("mozilla") && a.add("ff", parseFloat(r.split("Firefox/")[1] || r.split("Minefield/")[1]) || void 0))
  514. }
  515. })(); (() => {
  516. if (globalThis.navigator) {
  517. var r = navigator.userAgent; const q = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(r); r = /iPhone/i.test(r); q && a.add("esri-mobile",
  518. q); r && a.add("esri-iPhone", r); a.add("esri-geolocation", !!navigator.geolocation)
  519. } a.add("esri-canvas-svg-support", !a("trident")); a.add("esri-wasm", "WebAssembly" in globalThis); a.add("esri-shared-array-buffer", () => { const q = !1 === globalThis.crossOriginIsolated; return "SharedArrayBuffer" in globalThis && !q }); a.add("wasm-simd", () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]))); a.add("esri-atomics", "Atomics" in globalThis); a.add("esri-workers",
  520. "Worker" in globalThis); a.add("web-feat:cache", "caches" in globalThis); a.add("esri-workers-arraybuffer-transfer", !a("safari") || 12 <= Number(a("safari"))); a.add("featurelayer-simplify-thresholds", [.5, .5, .5, .5]); a.add("featurelayer-simplify-payload-size-factors", [1, 1, 4]); a.add("featurelayer-snapshot-enabled", !0); a.add("featurelayer-snapshot-point-min-threshold", 8E4); a.add("featurelayer-snapshot-point-max-threshold", 4E5); a.add("featurelayer-snapshot-point-coverage", .1); a.add("featurelayer-advanced-symbols",
  521. !1); a.add("featurelayer-pbf", !0); a.add("featurelayer-pbf-statistics", !1); a.add("feature-layers-workers", !0); a.add("feature-polyline-generalization-factor", 1); a.add("mapview-transitions-duration", 200); a.add("mapview-srswitch-adjust-rotation-scale-threshold", 24E6); a.add("mapserver-pbf-enabled", !1); a.add("mapimagelayer-popup-identify-max-tolerance", 20); a.add("heatmap-allow-raster-fallback", !0); a.add("heatmap-force-raster", !1); !a("host-webworker") && a("host-browser") && (a.add("esri-csp-restrictions", () => { try { new Function } catch { return !0 } return !1 }), a.add("esri-image-decode", () => { if ("decode" in new Image) { const q = new Image; q.src = 'data:image/svg+xml;charset\x3dUTF-8,\x3csvg version\x3d"1.1" xmlns\x3d"http://www.w3.org/2000/svg"\x3e\x3c/svg\x3e'; q.decode().then(() => { a.add("esri-image-decode", !0, !0, !0) }).catch(() => { a.add("esri-image-decode", !1, !0, !0) }) } else return !1 }), a.add("esri-url-encodes-apostrophe", () => { const q = window.document.createElement("a"); q.href = "?'"; return q.href.includes("?%27") }))
  522. })(); return a
  523. })
  524. },
  525. "esri/core/typedArrayUtil": function () {
  526. define(["exports", "./maybe"], function (a, b) {
  527. a.estimateSize = function (c) { return b.isNone(c) ? 0 : 128 + c.buffer.byteLength + 64 }; a.forEach = function (c, e) { if (c.forEach) c.forEach(e); else for (let d = 0; d < c.length; d++)e(c[d], d, c) }; a.isArrayBuffer = function (c) { return c instanceof ArrayBuffer || c && c.constructor && "ArrayBuffer" === c.constructor.name }; a.isFloat32Array = function (c) { return c instanceof Float32Array || c && c.constructor && "Float32Array" === c.constructor.name }; a.isFloat64Array =
  528. function (c) { return c instanceof Float64Array || c && c.constructor && "Float64Array" === c.constructor.name }; a.isInt16Array = function (c) { return c instanceof Int16Array || c && c.constructor && "Int16Array" === c.constructor.name }; a.isInt32Array = function (c) { return c instanceof Int32Array || c && c.constructor && "Int32Array" === c.constructor.name }; a.isInt8Array = function (c) { return c instanceof Int8Array || c && c.constructor && "Int8Array" === c.constructor.name }; a.isUint16Array = function (c) {
  529. return c instanceof Uint16Array || c && c.constructor &&
  530. "Uint16Array" === c.constructor.name
  531. }; a.isUint32Array = function (c) { return c instanceof Uint32Array || c && c.constructor && "Uint32Array" === c.constructor.name }; a.isUint8Array = function (c) { return c instanceof Uint8Array || c && c.constructor && "Uint8Array" === c.constructor.name }; a.isUint8ClampedArray = function (c) { return c instanceof Uint8ClampedArray || c && c.constructor && "Uint8ClampedArray" === c.constructor.name }; a.slice = function (c, e, d) {
  532. if (c.slice) return c.slice(e, d); void 0 === e ? e = 0 : (0 > e && (e += c.length), e = Math.min(c.length,
  533. Math.max(0, e))); void 0 === d ? d = c.length : (0 > d && (d += c.length), d = Math.min(c.length, Math.max(0, d))); d = Math.max(0, d - e); const l = new c.constructor(d); for (let r = 0; r < d; r++)l[r] = c[e + r]; return l
  534. }; a.toArray = function (c) { const e = Array(c.length); for (let d = 0; d < c.length; d++)e[d] = c[d]; return e }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  535. })
  536. }, "esri/core/accessorSupport/interfaces": function () {
  537. define(["exports"], function (a) {
  538. a.Lifecycle = void 0; var b = a.Lifecycle || (a.Lifecycle = {});
  539. b[b.INITIALIZING = 0] = "INITIALIZING"; b[b.CONSTRUCTING = 1] = "CONSTRUCTING"; b[b.CONSTRUCTED = 2] = "CONSTRUCTED"; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  540. })
  541. }, "esri/core/accessorSupport/metadata": function () {
  542. define(["exports", "../lang", "../maybe", "./utils"], function (a, b, c, e) {
  543. function d(p) {
  544. let t = p.constructor.__accessorMetadata__; var n = Object.prototype.hasOwnProperty.call(p.constructor, "__accessorMetadata__"); if (!t) t = new k({}), Object.defineProperty(p.constructor,
  545. "__accessorMetadata__", { value: t, enumerable: !1, configurable: !0, writable: !0 }); else if (!n) { n = Object.create(t.properties); const u = t.autoDestroy; for (const f in n) n[f] = b.clone(n[f]); t = new k(n); t.autoDestroy = u; Object.defineProperty(p.constructor, "__accessorMetadata__", { value: t, enumerable: !1, configurable: !0, writable: !0 }) } return c.assumeNonNull(p.constructor.__accessorMetadata__)
  546. } function l(p) { return d(p).properties } function r(p) { return m.test(p) ? "replace" : "merge" } function q(p) {
  547. return g.test(p) ? r(p.slice(11)) :
  548. "merge"
  549. } let k = function (p) { this.autoDestroy = !1; this.properties = p }; const m = /^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/, g = /^properties\./; a.ClassMetadata = k; a.getOwnClassMetadata = d; a.getOwnPropertiesMetadata = l; a.getOwnPropertyMetadata = function (p, t) { p = l(p); let n = p[t]; n || (n = p[t] = {}); return n }; a.merge = function (p, t) { return e.merge(p, t, q) }; a.mergeProperty = function (p, t) { return e.merge(p, t, r) }; a.setPropertyMetadata = function (p, t, n) { l(p)[t] = n }; Object.defineProperties(a, {
  550. __esModule: { value: !0 },
  551. [Symbol.toStringTag]: { value: "Module" }
  552. })
  553. })
  554. }, "esri/core/accessorSupport/Properties": function () {
  555. define("../../chunks/_rollupPluginBabelHelpers ../has ../lang ../Logger ../ObjectPool ./interfaces ./Property ./PropertyOrigin ./Store ./tracking ./utils ./tracking/Flags".split(" "), function (a, b, c, e, d, l, r, q, k, m, g, p) {
  556. e.getLogger("esri.core.accessorSupport.Properties"); b = function () {
  557. function n(f) {
  558. this.host = f; this.properties = new Map; this.ctorArgs = null; this.destroyed = !1; this.lifecycle = l.Lifecycle.INITIALIZING;
  559. this.store = new k.Store; this._origin = q.OriginId.USER; f = this.host.constructor.__accessorMetadata__; const h = f.properties; for (const v in h) { const y = new r.Property(this, v, h[v]); this.properties.set(v, y) } this.metadatas = h; this._autoDestroy = f.autoDestroy
  560. } var u = n.prototype; u.initialize = function () { this.lifecycle = l.Lifecycle.CONSTRUCTING }; u.constructed = function () { this.lifecycle = l.Lifecycle.CONSTRUCTED }; u.destroy = function () {
  561. this.destroyed = !0; if (this._autoDestroy) for (const [h, v] of this.properties) {
  562. var f = this.internalGet(h);
  563. f && f && "function" === typeof f.destroy && (f.destroy(), ~v.flags & p.Flags.NonNullable && this._internalSet(v, null)); v.destroy()
  564. } else for ([, f] of this.properties) f.destroy()
  565. }; u.get = function (f) { const h = this.properties.get(f); if (h.metadata.get) return h.getComputed(); m.trackAccess(h); const v = this.store; return v.has(f) ? v.get(f) : h.metadata.value }; u.originOf = function (f) { const h = this.store.originOf(f); return void 0 === h && (f = this.properties.get(f), void 0 !== f && f.flags & p.Flags.HasDefaultValue) ? "defaults" : q.idToName(h) };
  566. u.has = function (f) { return this.properties.has(f) ? this.store.has(f) : !1 }; u.keys = function () { return [...this.properties.keys()] }; u.internalGet = function (f) { const h = this.properties.get(f); if (void 0 !== h) return this.store.has(f) ? this.store.get(f) : h.metadata.value }; u.internalSet = function (f, h) { f = this.properties.get(f); void 0 !== f && this._internalSet(f, h) }; u.getDependsInfo = function (f, h, v) {
  567. const y = this.properties.get(h); if (void 0 === y) return ""; const B = new Set; var w = m.runTracked({
  568. onObservableAccessed: z => B.add(z), onTrackingEnd: () => { }
  569. }, () => { var z; return null == (z = y.metadata.get) ? void 0 : z.call(f) }), x = f.declaredClass.split(".").pop(); h = `${v}${x}.${h}: ${w}\n`; if (0 === B.size) return h; v += " "; for (const z of B) { if (!(z instanceof r.Property)) continue; w = z.properties.host; x = z.propertyName; const C = g.getProperties(w); h = C ? h + C.getDependsInfo(w, x, v) : h + `${v}${x}: undefined\n` } return h
  570. }; u.setAtOrigin = function (f, h, v) { f = this.properties.get(f); if (void 0 !== f) return this._setAtOrigin(f, h, v) }; u.isOverridden = function (f) {
  571. f = this.properties.get(f); return void 0 !==
  572. f && !!(f.flags & p.Flags.Overriden)
  573. }; u.clearOverride = function (f) { f = this.properties.get(f); void 0 !== f && f.flags & p.Flags.Overriden && (f.flags &= ~p.Flags.Overriden, f.notifyChange()) }; u.override = function (f, h) { f = this.properties.get(f); if (!(void 0 === f || null == h && f.flags & p.Flags.NonNullable)) { var v = f.metadata.cast; if (v) { h = this._cast(v, h); const { valid: y, value: B } = h; t.release(h); if (!y) return; h = B } f.flags |= p.Flags.Overriden; this._internalSet(f, h) } }; u.set = function (f, h) {
  574. f = this.properties.get(f); if (!(void 0 === f || null ==
  575. h && f.flags & p.Flags.NonNullable)) { var v = f.metadata.cast; if (v) { h = this._cast(v, h); const { valid: y, value: B } = h; t.release(h); if (!y) return; h = B } (v = f.metadata.set) ? v.call(this.host, h) : this._internalSet(f, h) }
  576. }; u.setDefaultOrigin = function (f) { this._origin = q.nameToId(f) }; u.getDefaultOrigin = function () { return q.idToName(this._origin) }; u.notifyChange = function (f) { f = this.properties.get(f); void 0 !== f && f.notifyChange() }; u.invalidate = function (f) { f = this.properties.get(f); void 0 !== f && f.invalidate() }; u.commit = function (f) {
  577. f =
  578. this.properties.get(f); void 0 !== f && f.commit()
  579. }; u._internalSet = function (f, h) { this._setAtOrigin(f, h, this.lifecycle !== l.Lifecycle.INITIALIZING ? this._origin : q.OriginId.DEFAULTS) }; u._setAtOrigin = function (f, h, v) { const y = this.store, B = f.propertyName; y.has(B, v) && c.equals(h, y.get(B)) && ~f.flags & p.Flags.Overriden && v === y.originOf(B) || (f.invalidate(), y.set(B, h, v), f.commit(), m.initializeDependencyTracking(this.host, f)) }; u._cast = function (f, h) {
  580. const v = t.acquire(); v.valid = !0; v.value = h; f && (v.value = f.call(this.host,
  581. h, v)); return v
  582. }; a._createClass(n, [{ key: "initialized", get: function () { return this.lifecycle !== l.Lifecycle.INITIALIZING } }]); return n
  583. }(); e = function () { function n() { this.value = null; this.valid = !0 } var u = n.prototype; u.acquire = function () { this.valid = !0 }; u.release = function () { this.value = null }; return n }(); const t = new d(e); return b
  584. })
  585. }, "esri/core/Logger": function () {
  586. define(["../chunks/_rollupPluginBabelHelpers", "../config", "./has", "./maybe", "./string"], function (a, b, c, e, d) {
  587. const l = { info: 0, warn: 1, error: 2, none: 3 }; c =
  588. function () {
  589. function r(k) { this.level = null; this._module = ""; this.writer = this._parent = null; this._loggedMessages = { error: new Map, warn: new Map, info: new Map }; null != k.level && (this.level = k.level); null != k.writer && (this.writer = k.writer); this._module = k.module; r._loggers[this.module] = this; k = this.module.lastIndexOf("."); -1 !== k && (this._parent = r.getLogger(this.module.slice(0, k))) } var q = r.prototype; q.error = function (...k) { this._log("error", "always", ...k) }; q.warn = function (...k) { this._log("warn", "always", ...k) }; q.info =
  590. function (...k) { this._log("info", "always", ...k) }; q.errorOnce = function (...k) { this._log("error", "once", ...k) }; q.warnOnce = function (...k) { this._log("warn", "once", ...k) }; q.infoOnce = function (...k) { this._log("info", "once", ...k) }; q.errorOncePerTick = function (...k) { this._log("error", "oncePerTick", ...k) }; q.warnOncePerTick = function (...k) { this._log("warn", "oncePerTick", ...k) }; q.infoOncePerTick = function (...k) { this._log("info", "oncePerTick", ...k) }; r.getLogger = function (k) {
  591. let m = r._loggers[k]; m || (m = new r({ module: k }));
  592. return m
  593. }; q._log = function (k, m, ...g) { if (this._matchLevel(k)) { if ("always" !== m && !r._throttlingDisabled) { const p = this._argsToKey(g), t = this._loggedMessages[k].get(p); if ("once" === m && null != t || "oncePerTick" === m && t && t >= r._tickCounter) return; this._loggedMessages[k].set(p, r._tickCounter); r._scheduleTickCounterIncrement() } for (const p of b.log.interceptors) if (p(k, this.module, ...g)) return; this._inheritedWriter()(k, this.module, ...g) } }; q._parentWithMember = function (k, m) {
  594. let g = this; for (; e.isSome(g);) {
  595. const p = g[k];
  596. if (e.isSome(p)) return p; g = g.parent
  597. } return m
  598. }; q._inheritedWriter = function () { return this._parentWithMember("writer", this._consoleWriter) }; q._consoleWriter = function (k, m, ...g) { console[k](`[${m}]`, ...g) }; q._matchLevel = function (k) { return l[this._parentWithMember("level", b.log.level ? b.log.level : "warn")] <= l[k] }; q._argsToKey = function (...k) { return d.numericHash(JSON.stringify(k, (m, g) => "object" !== typeof g || Array.isArray(g) ? g : "[Object]")) }; r._scheduleTickCounterIncrement = function () {
  599. r._tickCounterScheduled || (r._tickCounterScheduled =
  600. !0, Promise.resolve().then(() => { r._tickCounter++; r._tickCounterScheduled = !1 }))
  601. }; a._createClass(r, [{ key: "module", get: function () { return this._module } }, { key: "parent", get: function () { return this._parent } }, { key: "test", get: function () { const k = this; return { loggedMessages: k._loggedMessages, clearLoggedWarnings() { return k._loggedMessages.warn.clear() } } } }], [{ key: "testSingleton", get: function () { return { resetLoggers(k = {}) { const m = r._loggers; r._loggers = k; return m }, set throttlingDisabled(k) { r._throttlingDisabled = k } } } }]);
  602. return r
  603. }(); c._loggers = {}; c._tickCounter = 0; c._tickCounterScheduled = !1; c._throttlingDisabled = !1; return c
  604. })
  605. }, "esri/config": function () {
  606. define(["module", "./core/has", "./core/object"], function (a, b, c) {
  607. var e; b = {
  608. apiKey: void 0, applicationUrl: null == (e = globalThis.location) ? void 0 : e.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "http://2.20.42.42:26080/arcgis/rest/services/Utilities/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml",
  609. portalUrl: "https://www.arcgis.com", routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: {
  610. crossOriginNoCorsDomains: null, httpsDomains: "arcgis.com arcgisonline.com esrikr.com premiumservices.blackbridge.com esripremium.accuweather.com gbm.digitalglobe.com firstlook.digitalglobe.com msi.digitalglobe.com".split(" "), interceptors: [], maxUrlLength: 2E3, priority: "high", proxyRules: [], proxyUrl: null,
  611. timeout: 6E4, trustedServers: [], useIdentity: !0
  612. }, log: { interceptors: [], level: null }
  613. }; globalThis.esriConfig && (c.deepMerge(b, globalThis.esriConfig, !0), delete b.has); b.assetsPath || (a = (new URL(a.uri, document.baseURI)).href, b.assetsPath = a.slice(0, a.lastIndexOf("esri/"))); b.baseUrl && console.warn("[esri.config]", "baseUrl has been replaced by assetsPath"); Object.defineProperty(b, "baseUrl", { set() { console.warn("[esri.config]", "baseUrl has been replaced by assetsPath") } }); b.request.corsEnabledServers = []; b.request.corsEnabledServers.push =
  614. function () { console.warn("[esri.config]", "request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"); return 0 }; return b
  615. })
  616. }, "esri/core/object": function () {
  617. define(["exports", "./lang"], function (a, b) {
  618. function c(d, l, r) { for (const q of d) { if (null == r) return; if (!(q in r)) if (l) r[q] = {}; else return; r = r[q] } return r } function e(d, l, r) {
  619. return l ? Object.keys(l).reduce((q, k) => {
  620. let m = q[k], g = l[k]; if (m === g) return q; if (void 0 === m) return q[k] = b.clone(g), q; if (Array.isArray(g) ||
  621. Array.isArray(q)) m = m ? Array.isArray(m) ? q[k] = m.concat() : q[k] = [m] : q[k] = [], g && (Array.isArray(g) || (g = [g]), r ? g.forEach(p => { m.includes(p) || m.push(p) }) : q[k] = g.concat()); else if (g && "object" === typeof g) q[k] = e(m, g, r); else if (!q.hasOwnProperty(k) || l.hasOwnProperty(k)) q[k] = g; return q
  622. }, d || {}) : d
  623. } a.deepMerge = function (d, l, r = !1) { return e(d, l, r) }; a.getDeepValue = function (d, l) { if (null != l) return l[d] || c(d.split("."), !1, l) }; a.setDeepValue = function (d, l, r) { const q = d.split("."); d = q.pop(); (r = c(q, !0, r)) && d && (r[d] = l) }; Object.defineProperties(a,
  624. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  625. })
  626. }, "esri/core/string": function () {
  627. define(["exports", "./object"], function (a, b) {
  628. function c(d) { return null == d ? "" : d } const e = /\{([^\}]+)\}/g; a.escapeRegExpString = function (d, l) { return d.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g, r => l && l.includes(r) ? r : `\\${r}`) }; a.numericHash = function (d) { let l = 0; for (let r = 0; r < d.length; r++)l = (l << 5) - l + d.charCodeAt(r), l |= 0; return l }; a.replace = function (d, l) {
  629. return d.replace(e, "object" === typeof l ? (r, q) => c(b.getDeepValue(q,
  630. l)) : (r, q) => c(l(q)))
  631. }; a.stripHTML = function (d) { return (new DOMParser).parseFromString(d || "", "text/html").body.innerText || "" }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  632. })
  633. }, "esri/core/accessorSupport/Property": function () {
  634. define(["exports", "./PropertyOrigin", "./tracking", "./tracking/Flags", "./tracking/ObservationHandle"], function (a, b, c, e, d) {
  635. let l = function () {
  636. function r(k, m, g) {
  637. this.properties = k; this.propertyName = m; this.metadata = g; this._handles = this._accessed =
  638. this._observers = null; this.flags = e.Flags.Dirty | (g.nonNullable ? e.Flags.NonNullable : 0) | (g.hasOwnProperty("value") ? e.Flags.HasDefaultValue : 0) | (void 0 === g.get ? e.Flags.DepTrackingInitialized : 0) | (void 0 === g.dependsOn ? e.Flags.AutoTracked : 0)
  639. } var q = r.prototype; q.destroy = function () { if (this.flags & e.Flags.Dirty && this._observers) { const k = this._observers.slice(); for (const m of k) m.onCommitted() } this._observers = this._accessed = null; this._clearObservationHandles() }; q.getComputed = function () {
  640. c.trackAccess(this); var k =
  641. this.properties.store; const m = this.propertyName; var g = this.flags; const p = k.get(m); if (g & e.Flags.Computing || ~g & e.Flags.Dirty && k.has(m)) return p; this.flags |= e.Flags.Computing; const t = this.properties.host; g & e.Flags.AutoTracked ? g = c.runTracked(this, this.metadata.get, t) : (c.trackExplicitDependencies(t, this), g = this.metadata.get.call(t)); k.set(m, g, b.OriginId.COMPUTED); k = k.get(m); k === p ? this.flags &= ~e.Flags.Dirty : c.runUntracked(this.commit, this); this.flags &= ~e.Flags.Computing; return k
  642. }; q.onObservableAccessed =
  643. function (k) { k !== this && (null === this._accessed && (this._accessed = []), this._accessed.includes(k) || this._accessed.push(k)) }; q.onTrackingEnd = function () { this._clearObservationHandles(); this.flags |= e.Flags.DepTrackingInitialized; const k = this._accessed; if (null !== k) { var m = this._handles; null === m && (m = this._handles = []); for (let g = 0; g < k.length; ++g)m.push(k[g].observe(this)); k.length = 0 } }; q.observe = function (k) {
  644. null === this._observers && (this._observers = []); this._observers.includes(k) || this._observers.push(k); return new d.ObservationHandle(this._observers,
  645. k)
  646. }; q.notifyChange = function () { this.onInvalidated(); this.onCommitted() }; q.invalidate = function () { this.onInvalidated() }; q.onInvalidated = function () { ~this.flags & e.Flags.Overriden && (this.flags |= e.Flags.Dirty); const k = this._observers; if (null !== k) for (let m = 0; m < k.length; ++m)k[m].onInvalidated() }; q.commit = function () { this.flags &= ~e.Flags.Dirty; this.onCommitted() }; q.onCommitted = function () { if (null !== this._observers) { var k = this._observers.slice(); for (let m = 0; m < k.length; ++m)k[m].onCommitted() } }; q._clearObservationHandles =
  647. function () { const k = this._handles; if (null !== k) { for (let m = 0; m < k.length; ++m)k[m].remove(); k.length = 0 } }; return r
  648. }(); a.Property = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  649. })
  650. }, "esri/core/accessorSupport/PropertyOrigin": function () {
  651. define(["exports", "../maybe"], function (a, b) {
  652. function c(d) {
  653. switch (d) {
  654. case "defaults": return a.OriginId.DEFAULTS; case "service": return a.OriginId.SERVICE; case "portal-item": return a.OriginId.PORTAL_ITEM; case "web-scene": return a.OriginId.WEB_SCENE;
  655. case "web-map": return a.OriginId.WEB_MAP; case "user": return a.OriginId.USER
  656. }
  657. } function e(d) { switch (d) { case a.OriginId.DEFAULTS: return "defaults"; case a.OriginId.SERVICE: return "service"; case a.OriginId.PORTAL_ITEM: return "portal-item"; case a.OriginId.WEB_SCENE: return "web-scene"; case a.OriginId.WEB_MAP: return "web-map"; case a.OriginId.USER: return "user" }return b.assumeNonNull(void 0) } a.OriginId = void 0; (function (d) {
  658. d[d.DEFAULTS = 0] = "DEFAULTS"; d[d.COMPUTED = 1] = "COMPUTED"; d[d.SERVICE = 2] = "SERVICE"; d[d.PORTAL_ITEM =
  659. 3] = "PORTAL_ITEM"; d[d.WEB_SCENE = 4] = "WEB_SCENE"; d[d.WEB_MAP = 5] = "WEB_MAP"; d[d.USER = 6] = "USER"
  660. })(a.OriginId || (a.OriginId = {})); a.OriginIdNum = a.OriginId.USER + 1; a.idToName = e; a.idToReadableName = function (d) { return e(d) }; a.idToWritableName = function (d) { return e(d) }; a.nameToId = c; a.readableNameToId = function (d) { return c(d) }; a.writableNameToId = function (d) { return c(d) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  661. })
  662. }, "esri/core/accessorSupport/tracking": function () {
  663. define(["exports",
  664. "../has", "../Logger", "./utils", "./tracking/Flags"], function (a, b, c, e, d) {
  665. function l(y) { if (void 0 !== n) n.onObservableAccessed(y) } function r(y, B, w) { if (f) return q(y, B, w); n = y; t.push(y); y = B.call(w); k(); return y } function q(y, B, w) { const x = f; f = !0; n = y; t.push(y); y = null; try { y = B.call(w) } catch (z) { h && u.error(z) } k(); f = x; return y } function k() { const y = t.pop(); n = 0 < t.length ? t[t.length - 1] : void 0; if (void 0 !== y) y.onTrackingEnd() } function m(y, B) {
  666. if (!(B.flags & d.Flags.DepTrackingInitialized)) {
  667. var w = h; h = !1; B.flags & d.Flags.AutoTracked ?
  668. q(B, B.metadata.get, y) : g(y, B); h = w
  669. }
  670. } function g(y, B) { B.flags & d.Flags.ExplicitlyTracking || (B.flags |= d.Flags.ExplicitlyTracking, q(B, () => { var w = B.metadata.dependsOn || v; for (const x of w) if ("string" !== typeof x || x.includes(".")) { w = e.pathToArray(x); for (let z = 0, C = y; z < w.length && null != C && "object" === typeof C; ++z)C = p(C, w[z], z !== w.length - 1) } else p(y, x, !1) }), B.flags &= ~d.Flags.ExplicitlyTracking) } function p(y, B, w) {
  671. B = "?" === B[B.length - 1] ? B.slice(0, -1) : B; if (null != y.getItemAt || Array.isArray(y)) {
  672. var x = parseInt(B, 10); if (!isNaN(x)) return Array.isArray(y) ?
  673. y[x] : y.getItemAt(x)
  674. } x = e.getProperties(y); if (x = null == x ? void 0 : x.properties.get(B)) l(x), m(y, x); return w ? y[B] : void 0
  675. } let t = [], n = void 0; const u = c.getLogger("esri.core.Accessor"); let f = !1, h = !1; const v = []; a.initializeDependencyTracking = m; a.resetGlobalTarget = function () { t = [] }; a.runTracked = r; a.runTrackedNoThrow = q; a.runUntracked = function (y, B) { return r(void 0, y, B) }; a.trackAccess = l; a.trackExplicitDependencies = g; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  676. })
  677. }, "esri/core/accessorSupport/tracking/Flags": function () {
  678. define(["exports"],
  679. function (a) { a.Flags = void 0; var b = a.Flags || (a.Flags = {}); b[b.Dirty = 1] = "Dirty"; b[b.Overriden = 2] = "Overriden"; b[b.Computing = 4] = "Computing"; b[b.NonNullable = 8] = "NonNullable"; b[b.HasDefaultValue = 16] = "HasDefaultValue"; b[b.DepTrackingInitialized = 32] = "DepTrackingInitialized"; b[b.AutoTracked = 64] = "AutoTracked"; b[b.ExplicitlyTracking = 128] = "ExplicitlyTracking"; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  680. }, "esri/core/accessorSupport/tracking/ObservationHandle": function () {
  681. define(["exports",
  682. "../../arrayUtils"], function (a, b) { let c = function () { function e(d, l) { this._observers = d; this._observer = l } e.prototype.remove = function () { b.remove(this._observers, this._observer) }; return e }(); a.ObservationHandle = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  683. }, "esri/core/accessorSupport/Store": function () {
  684. define(["exports", "../lang", "./PropertyOrigin"], function (a, b, c) {
  685. let e = function () {
  686. function d() { this._values = new Map; this.multipleOriginsSupported = !1 } var l = d.prototype;
  687. l.clone = function (r) { const q = new d; this._values.forEach((k, m) => { r && r.has(m) || q.set(m, b.clone(k)) }); return q }; l.get = function (r) { return this._values.get(r) }; l.originOf = function () { return c.OriginId.USER }; l.keys = function () { return [...this._values.keys()] }; l.set = function (r, q) { this._values.set(r, q) }; l.delete = function (r) { this._values.delete(r) }; l.has = function (r) { return this._values.has(r) }; l.forEach = function (r) { this._values.forEach(r) }; return d
  688. }(); a.Store = e; Object.defineProperties(a, {
  689. __esModule: { value: !0 },
  690. [Symbol.toStringTag]: { value: "Module" }
  691. })
  692. })
  693. }, "esri/core/accessorSupport/set": function () {
  694. define(["exports", "../Error", "../has", "../Logger", "./get"], function (a, b, c, e, d) {
  695. function l(r, q, k) {
  696. if (r && q) if ("object" === typeof q) for (var m of Object.getOwnPropertyNames(q)) l(r, m, q[m]); else if (q.includes(".")) q = q.split("."), m = q.splice(q.length - 1, 1)[0], l(d.get(r, q), m, k); else {
  697. m = r.__accessor__; if (null != m && c("esri-unknown-property-errors") && null == m.metadatas[q]) throw new b("set:unknown-property", "setting unknown property '" +
  698. q + "' on instance of " + m.host.declaredClass); r[q] = k
  699. }
  700. } e.getLogger("esri.core.accessorSupport.set"); a.set = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  701. })
  702. }, "esri/core/Error": function () {
  703. define(["../chunks/_rollupPluginBabelHelpers", "./lang", "./Logger", "./Message"], function (a, b, c, e) {
  704. e = function (d) {
  705. function l(r, q, k) { var m = d.call(this, r, q, k) || this; return a._assertThisInitialized(m) instanceof l ? m : new l(r, q, k) } a._inheritsLoose(l, d); l.prototype.toJSON = function () {
  706. if (null !=
  707. this.details) try { return { name: this.name, message: this.message, details: JSON.parse(JSON.stringify(this.details, (r, q) => { if (q && "object" === typeof q && "function" === typeof q.toJSON) return q; try { return b.clone(q) } catch (k) { return "[object]" } })) } } catch (r) { throw c.getLogger("esri.core.Error").error(r), r; } return { name: this.name, message: this.message, details: this.details }
  708. }; l.fromJSON = function (r) { return new l(r.name, r.message, r.details) }; return l
  709. }(e); e.prototype.type = "error"; return e
  710. })
  711. }, "esri/core/Message": function () {
  712. define(["./object"],
  713. function (a) { function b(c, e) { return c.replace(/\$\{([^\s:\}]*)(?::([^\s:\}]+))?\}/g, (d, l) => { if ("" === l) return "$"; d = a.getDeepValue(l, e); d = null == d ? "" : d; if ("undefined" === typeof d) throw Error(`could not find key "${l}" in template`); return d.toString() }) } return function () { function c(e, d, l) { this.name = e; this.details = l; this.message = void 0; this instanceof c && (this.message = d && b(d, l) || "") } c.prototype.toString = function () { return "[" + this.name + "]: " + this.message }; return c }() })
  714. }, "esri/core/accessorSupport/watch": function () {
  715. define("exports ../ArrayPool ../lang ../ReentrantObjectPool ../scheduling ../SetUtils ../uid ./get ./trackingUtils ./utils".split(" "),
  716. function (a, b, c, e, d, l, r, q, k, m) {
  717. function g(A) { x.delete(A); x.add(A); z || (z = d.schedule(t)) } function p(A) { if (!A.removed) { var D = A.oldValue, F = A.getValue(); A.equals(D, F) || (A.oldValue = F, A.notify(F, D)) } } function t() { let A = 10; for (; z && A--;) { z = null; const D = n(), F = w.acquire(); for (const J of D) { const M = J.uid; p(J); M === J.uid && J.removed && F.push(J) } for (const J of x) J.removed && (F.push(J), x.delete(J)); for (const J of F) B.pool.release(J); w.release(F); w.release(D); C.forEach(J => J()) } } function n() {
  718. const A = w.acquire(); A.length =
  719. x.size; let D = 0; for (const F of x) A[D] = F, ++D; x.clear(); return A
  720. } function u(A, D, F) { let J = m.parse(A, D, F, (M, N, E) => { let G, H, K = k.reactionDeferred(() => q.valueOf(M, N), (S, fa) => { M.__accessor__.destroyed || G && G.uid !== H ? J.remove() : (G || (G = B.acquireUntracked(S, E, fa, M, N), H = G.uid), g(G)) }); return { remove: m.once(() => { K.remove(); G && (G.uid !== H || G.removed || (G.removed = !0, g(G)), G = null); J = K = null }) } }); return J } function f(A, D, F) {
  721. const J = m.parse(A, D, F, (M, N, E) => {
  722. let G = !1; return k.reaction(() => q.valueOf(M, N), (H, K) => {
  723. M.__accessor__.destroyed ?
  724. J.remove() : G || (G = !0, c.equals(K, H) || E.call(M, H, K, N, M), G = !1)
  725. })
  726. }); return J
  727. } function h(A, D, F) { let J, M, N = k.reactionDeferred(A, (E, G) => { J && J.uid !== M ? N.remove() : (J || (J = B.acquireTracked(E, D, G, F), M = J.uid), g(J)) }); return { remove: m.once(() => { N.remove(); J && (J.uid !== M || J.removed || (J.removed = !0, g(J)), J = null); N = null }) } } function v(A, D, F) { let J = !1; return k.reaction(A, (M, N) => { J || (J = !0, F(N, M) || D(M, N), J = !1) }) } var y; (function (A) { A[A.Untracked = 0] = "Untracked"; A[A.Tracked = 1] = "Tracked" })(y || (y = {})); let B = function () {
  728. function A() {
  729. this.uid =
  730. r.generateUID(); this.removed = !1; this.equals = this.path = this.target = this.getValue = this.callback = this.oldValue = this.type = null
  731. } A.acquireUntracked = function (F, J, M, N, E) { return this.pool.acquire(y.Untracked, F, J, M, N, E, c.equals) }; A.acquireTracked = function (F, J, M, N) { return this.pool.acquire(y.Tracked, F, J, M, null, null, N) }; var D = A.prototype; D.notify = function (F, J) { this.type === y.Untracked ? this.callback.call(this.target, F, J, this.path, this.target) : this.callback.call(null, F, J) }; D.acquire = function (F, J, M, N, E, G, H) {
  732. this.uid =
  733. r.generateUID(); this.removed = !1; this.type = F; this.oldValue = J; this.callback = M; this.getValue = N; this.target = E; this.path = G; this.equals = H
  734. }; D.release = function () { this.target = this.path = this.oldValue = this.callback = this.getValue = null; this.uid = r.generateUID(); this.removed = !0 }; return A
  735. }(); B.pool = new e.ReentrantObjectPool(B); const w = new b, x = new Set; let z; const C = new Set; a.afterDispatch = function (A) { C.add(A); return { remove() { C.delete(A) } } }; a.dispatch = t; a.dispatchTarget = function (A) {
  736. const D = Array.from(x); for (let F =
  737. 0; F < D.length; F++) { const J = D[F]; J.target === A && (p(J), x.delete(J)) }
  738. }; a.isValueInUse = function (A) { return l.someSet(x, D => D.oldValue === A) }; a.removeTarget = function (A) { for (const D of x.values()) D.target === A && (D.removed = !0) }; a.watch = function (A, D, F, J = !1) { return !A.__accessor__ || A.__accessor__.destroyed ? { remove() { } } : J ? f(A, D, F) : u(A, D, F) }; a.watchTracked = function (A, D, F = !1, J = c.equalsShallow) { return F ? v(A, D, J) : h(A, D, J) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  739. })
  740. }, "esri/core/ReentrantObjectPool": function () {
  741. define(["exports",
  742. "../chunks/_rollupPluginBabelHelpers", "./maybe", "./ObjectPool"], function (a, b, c, e) {
  743. e = function (d) {
  744. function l() { var q = d.apply(this, arguments) || this; q._set = new Set; return q } b._inheritsLoose(l, d); var r = l.prototype; r.destroy = function () { d.prototype.destroy.call(this); this._set = c.nullifyNonnullableForDispose(this._set) }; r.acquire = function (...q) { q = d.prototype.acquire.call(this, ...q); this._set.delete(q); return q }; r.release = function (q) { q && !this._set.has(q) && (d.prototype.release.call(this, q), this._set.add(q)) };
  745. r._dispose = function (q) { this._set.delete(q); d.prototype._dispose.call(this, q) }; return l
  746. }(e); a.ReentrantObjectPool = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  747. })
  748. }, "esri/core/scheduling": function () {
  749. define("exports ./maybe ./nextTick ./PerformanceSampler ./PooledArray ./promiseUtils ./time".split(" "), function (a, b, c, e, d, l, r) {
  750. function q(F) { F = new n(F); y.push(F); x.willDispatch || (x.willDispatch = !0, c.nextTick(p)); return F } function k(F) {
  751. F = new t(F); B.push(F); null ==
  752. z && (u = performance.now(), z = requestAnimationFrame(m)); return new w(F)
  753. } function m() { const F = performance.now(); z = null; z = 0 < B.length ? requestAnimationFrame(m) : null; x.executeFrameTasks(F) } function g() { B.forAll(F => { F.removed && C.push(F) }); B.removeUnorderedMany(C.data, C.length); C.clear() } function p() { for (; y.length;) { const F = b.assumeNonNull(y.shift()); F.isActive && F.callback() } x.willDispatch = !1 } let t = function (F) { this.phases = F; this.paused = !1; this.ticks = -1; this.removed = !1 }, n = function () {
  754. function F(J) {
  755. this.callback =
  756. J; this.isActive = !0
  757. } F.prototype.remove = function () { this.isActive = !1 }; return F
  758. }(), u = 0, f = 0; const h = { time: r.Milliseconds(0), deltaTime: r.Milliseconds(0), elapsedFrameTime: r.Milliseconds(0), frameDuration: r.Milliseconds(0) }, v = "prepare preRender render postRender update finish".split(" "), y = [], B = new d; let w = function () { function F(M) { this._task = M } var J = F.prototype; J.remove = function () { this._task.removed = !0 }; J.pause = function () { this._task.paused = !0 }; J.resume = function () { this._task.paused = !1 }; return F }(); const x =
  759. {
  760. frameTasks: B, willDispatch: !1, clearFrameTasks: function (F = !1) { B.forAll(J => { J.removed = !0 }); F && g() }, dispatch: p, executeFrameTasks: function (F) {
  761. const J = r.Milliseconds(F - u); u = F; const M = 0 < f ? f : 1E3 / 60, N = Math.max(0, J - M); for (let E = 0; E < v.length; E++) {
  762. const G = performance.now(), H = v[E]; B.forAll(K => {
  763. var S; K.paused || K.removed || (0 === E && K.ticks++, K.phases[H] && (h.time = F, h.deltaTime = 0 === K.ticks ? r.Milliseconds(0) : J, h.elapsedFrameTime = r.Milliseconds(performance.now() - F), h.frameDuration = r.Milliseconds(M - N), null == (S = K.phases[H]) ?
  764. void 0 : S.call(K, h)))
  765. }); A[E].record(performance.now() - G)
  766. } g(); D.record(performance.now() - F)
  767. }
  768. }; let z = null; const C = new d, A = v.map(F => new e(F)), D = new e("total"); a.FrameTaskHandle = w; a.addFrameTask = k; a.debug = x; a.performanceInfo = A; a.performanceTotal = D; a.schedule = q; a.setFrameDuration = function (F) { f = Math.max(0, F) }; a.waitAnimationFrame = function () { const F = l.createResolver(), J = k({ postRender: () => { J.remove(); q(F) } }); return F.promise }; a.waitTicks = function (F = 1, J) {
  769. const M = l.createResolver(), N = () => {
  770. l.isAborted(J) ? M.reject(l.createAbortError()) :
  771. 0 === F ? M() : (--F, c.nextTick(() => N()))
  772. }; N(); return M.promise
  773. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  774. })
  775. }, "esri/core/nextTick": function () { define(["exports"], function (a) { const b = []; a.nextTick = function (c) { b.push(c); 1 === b.length && queueMicrotask(() => { const e = b.slice(); b.length = 0; for (const d of e) d() }) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/core/PerformanceSampler": function () {
  776. define(["../chunks/_rollupPluginBabelHelpers"],
  777. function (a) { return function () { function b(c, e = 29) { this.name = c; this._counter = 0; this._items = Array(e) } b.prototype.record = function (c) { this._items[++this._counter % this._items.length] = c }; a._createClass(b, [{ key: "median", get: function () { return this._items.slice().sort((c, e) => c - e)[Math.floor(this._items.length / 2)] } }, { key: "average", get: function () { return this._items.reduce((c, e) => c + e, 0) / this._items.length } }, { key: "last", get: function () { return this._items[this._counter % this._items.length] } }]); return b }() })
  778. }, "esri/core/PooledArray": function () {
  779. define(["../chunks/_rollupPluginBabelHelpers",
  780. "./arrayUtils", "./HeapSort"], function (a, b, c) {
  781. function e(d) { d.data.length > 1.5 * d.length && (d.data.length = Math.floor(1.1 * d.length)) } return function () {
  782. function d(r) { this.data = []; this._length = 0; this._allocator = void 0; this._deallocator = () => null; this._shrink = () => { }; this._hint = new b.PositionHint; r && (r.initialSize && (this.data = Array(r.initialSize)), r.allocator && (this._allocator = r.allocator), void 0 !== r.deallocator && (this._deallocator = r.deallocator), r.shrink && (this._shrink = () => e(this))) } var l = d.prototype; l.toArray =
  783. function () { return this.data.slice(0, this.length) }; l.filter = function (r) { const q = []; for (let k = 0; k < this._length; k++) { const m = this.data[k]; r(m) && q.push(m) } return q }; l.getItemAt = function (r) { if (!(0 > r || r >= this._length)) return this.data[r] }; l.includes = function (r, q) { r = this.data.indexOf(r, q); return -1 !== r && r < this.length }; l.clear = function () { this.length = 0 }; l.prune = function () { this.clear(); this.data = [] }; l.push = function (r) { this.data[this._length++] = r }; l.pushArray = function (r, q = r.length) {
  784. for (let k = 0; k < q; k++)this.data[this._length++] =
  785. r[k]
  786. }; l.fill = function (r, q) { for (let k = 0; k < q; k++)this.data[this._length++] = r }; l.pushNew = function () { this._allocator && (this.data[this.length] = this._allocator(this.data[this.length])); const r = this.data[this._length]; ++this._length; return r }; l.unshift = function (r) { this.data.unshift(r); this._length++; e(this) }; l.pop = function () { if (0 !== this.length) { var r = this.data[this.length - 1]; --this.length; this._shrink(); return r } }; l.remove = function (r) {
  787. const q = b.indexOf(this.data, r, this.length, this._hint); if (-1 !== q) return this.data.splice(q,
  788. 1), --this.length, r
  789. }; l.removeUnordered = function (r) { r = b.removeUnordered(this.data, r, this.length, this._hint); void 0 !== r && --this.length; this._shrink(); return r }; l.removeUnorderedIndex = function (r) { if (!(r >= this.length || 0 > r)) return this.swapElements(r, this.length - 1), this.pop() }; l.removeUnorderedMany = function (r, q = r.length, k) { this.length = b.removeUnorderedMany(this.data, r, this.length, q, this._hint, k); this._shrink() }; l.front = function () { if (0 !== this.length) return this.data[0] }; l.back = function () {
  790. if (0 !== this.length) return this.data[this.length -
  791. 1]
  792. }; l.swapElements = function (r, q) { r >= this.length || q >= this.length || r === q || ([this.data[r], this.data[q]] = [this.data[q], this.data[r]]) }; l.sort = function (r) { c.sort(this.data, 0, this.length, r) }; l.iterableSort = function (r) { return c.iterableSort(this.data, 0, this.length, r) }; l.some = function (r, q) { for (let k = 0; k < this.length; ++k)if (r.call(q, this.data[k], k, this.data)) return !0; return !1 }; l.filterInPlace = function (r, q) {
  793. let k = 0; for (let m = 0; m < this._length; ++m) {
  794. const g = this.data[m]; r.call(q, g, m, this.data) && (this.data[m] = this.data[k],
  795. this.data[k] = g, k++)
  796. } if (this._deallocator) for (r = k; r < this._length; r++)this.data[r] = this._deallocator(this.data[r]); this._length = k; this._shrink(); return this
  797. }; l.forAll = function (r, q) { const k = this.length, m = this.data; for (let g = 0; g < k; ++g)r.call(q, m[g], g, m) }; l.forEach = function (r, q) { for (let k = 0; k < this.length; ++k)r.call(q, this.data[k], k, this.data) }; l.map = function (r, q) { const k = Array(this.length); for (let m = 0; m < this.length; ++m)k[m] = r.call(q, this.data[m], m, this.data); return k }; l.reduce = function (r, q) {
  798. for (let k =
  799. 0; k < this.length; ++k)q = r(q, this.data[k], k, this.data); return q
  800. }; l.has = function (r) { const q = this.length, k = this.data; for (let m = 0; m < q; ++m)if (k[m] === r) return !0; return !1 }; a._createClass(d, [{
  801. key: "length", get: function () { return this._length }, set: function (r) {
  802. if (r > this._length) if (this._allocator) for (; this._length < r;)this.data[this._length++] = this._allocator(this.data[this._length]); else this._length = r; else {
  803. if (this._deallocator) for (let q = r; q < this._length; ++q)this.data[q] = this._deallocator(this.data[q]); this._length =
  804. r; this._shrink()
  805. }
  806. }
  807. }]); return d
  808. }()
  809. })
  810. }, "esri/core/HeapSort": function () {
  811. define(function () {
  812. var a; (function (b) {
  813. const c = (d, l, r, q) => { let k = l; const m = r >>> 1, g = d[k - 1]; for (; l <= m;) { l = k << 1; l < r && 0 > q(d[l - 1], d[l]) && ++l; const p = d[l - 1]; if (0 >= q(p, g)) break; d[k - 1] = p; k = l } d[k - 1] = g }, e = (d, l) => d < l ? -1 : d > l ? 1 : 0; b.sort = function (d, l, r, q) { void 0 === l && (l = 0); void 0 === r && (r = d.length); void 0 === q && (q = e); for (var k = r >>> 1; k > l; k--)c(d, k, r, q); k = l + 1; for (--r; r > l; r--) { const m = d[l]; d[l] = d[r]; d[r] = m; c(d, k, r, q) } }; b.iterableSort = function* (d, l, r,
  814. q) { void 0 === l && (l = 0); void 0 === r && (r = d.length); void 0 === q && (q = e); for (var k = r >>> 1; k > l; k--)c(d, k, r, q), yield; k = l + 1; for (--r; r > l; r--) { const m = d[l]; d[l] = d[r]; d[r] = m; c(d, k, r, q); yield } }
  815. })(a || (a = {})); return a
  816. })
  817. }, "esri/core/promiseUtils": function () {
  818. define("exports ../chunks/_rollupPluginBabelHelpers ./clock ./deprecate ./Error ./events ./Logger ./maybe".split(" "), function (a, b, c, e, d, l, r, q) {
  819. function k() {
  820. k = b._asyncToGenerator(function* (D, F) {
  821. const J = D.slice(), M = yield Promise.all(D.map((N, E) => F(N, E))); return J.filter((N,
  822. E) => M[E])
  823. }); return k.apply(this, arguments)
  824. } function m(D = "Aborted") { return new d("AbortError", D) } function g(D, F = "Aborted") { if (t(D)) throw m(F); } function p(D) { return q.isSome(D) ? "aborted" in D ? D : D.signal : D } function t(D) { D = p(D); return q.isSome(D) && D.aborted } function n(D, F) { D = p(D); if (!q.isNone(D)) if (D.aborted) F(); else return l.once(D, "abort", () => F()) } function u(D) { return D && "AbortError" === D.name } function f() {
  825. f = b._asyncToGenerator(function* (D) { try { return yield D } catch (F) { if (!u(F)) throw F; } }); return f.apply(this,
  826. arguments)
  827. } function h() { h = b._asyncToGenerator(function* (D, F = r.getLogger("esri")) { try { return yield D } catch (J) { u(J) || F.error(J) } }); return h.apply(this, arguments) } function v() { let D = null; const F = new Promise((J, M) => { D = { promise: void 0, resolve: J, reject: M } }); D.promise = F; return D } function y(D) { return B.apply(this, arguments) } function B() {
  828. B = b._asyncToGenerator(function* (D) {
  829. if (D) {
  830. if ("function" !== typeof D.forEach) { const F = Object.keys(D), J = F.map(E => D[E]), M = yield y(J), N = {}; F.map((E, G) => N[E] = M[G]); return N } return new Promise(F => { const J = []; let M = D.length; 0 === M && F(J); D.forEach(N => { const E = { promise: N || Promise.resolve(N) }; J.push(E); E.promise.then(G => { E.value = G }).catch(G => { E.error = G }).then(() => { --M; 0 === M && F(J) }) }) })
  831. }
  832. }); return B.apply(this, arguments)
  833. } function w() { w = b._asyncToGenerator(function* (D) { return (yield y(D)).filter(F => !!F.value).map(F => F.value) }); return w.apply(this, arguments) } function x(D, F, J) {
  834. const M = new AbortController; n(J, () => M.abort()); return new Promise((N, E) => {
  835. let G = setTimeout(() => { G = 0; N(F) }, D); n(M, () => {
  836. G && (clearTimeout(G),
  837. E(m()))
  838. })
  839. })
  840. } function z(D) { return D && "function" === typeof D.then } function C(D) { return z(D) ? D : Promise.resolve(D) } function A() { A = b._asyncToGenerator(function* (D) { yield Promise.resolve(); g(D) }); return A.apply(this, arguments) } a.after = x; a.always = function (D, F) { return D.then(F, F) }; a.create = function (D) {
  841. e.deprecatedFunction(r.getLogger("esri.core.promiseUtils"), "create", { moduleName: "esri.core.promiseUtils", replacement: "new Promise()", version: "4.24" }); return new Promise((F, J) => {
  842. try { D(F, J) } catch (M) {
  843. Promise.resolve().then(() =>
  844. J(M))
  845. }
  846. })
  847. }; a.createAbortError = m; a.createDeferred = v; a.createResolver = function () { let D, F; const J = new Promise((N, E) => { D = N; F = E }), M = N => { D(N) }; M.resolve = N => D(N); M.reject = N => F(N); M.timeout = (N, E) => c.clock.setTimeout(() => M.reject(E), N); M.promise = J; return M }; a.createTask = function (D, F) {
  848. let J = new AbortController, M; D = D(J.signal); let N = { promise: D, finished: !1, abort: () => { J && (J.abort(), J = null) } }; const E = () => { N && (N.finished = !0, N = null); q.isSome(M) && (M.remove(), M = null); J = null }; D.then(E, E); M = n(F, () => { q.isSome(N) && N.abort() });
  849. return N
  850. }; a.debounce = function (D, F = -1) { let J, M, N, E, G = null; const H = (...K) => { if (J) { M = K; E && E.reject(m()); E = v(); K = q.assumeNonNull(E.promise); if (G) { var S = G; G = null; S.abort() } return K } N = E || v(); E = null; if (0 < F) { const ha = new AbortController, ba = J = C(D(...K, ha.signal)); x(F).then(() => { J === ba && (E ? ha.abort() : G = ha) }) } else J = 1, J = C(D(...K)); K = () => { const ha = M; M = N = J = G = null; null != ha && H(...ha) }; S = J; const fa = N; S.then(K, K); S.then(fa.resolve, fa.reject); return q.assumeNonNull(fa.promise) }; return H }; a.eachAlways = y; a.eachAlwaysValues =
  851. function (D) { return w.apply(this, arguments) }; a.filter = function (D, F) { return k.apply(this, arguments) }; a.ignoreAbortErrors = function (D) { return f.apply(this, arguments) }; a.isAbortError = u; a.isAborted = t; a.isPromiseLike = z; a.logOnError = function (D) { return h.apply(this, arguments) }; a.onAbort = n; a.onAbortOrThrow = function (D, F) { D = p(D); if (!q.isNone(D)) return g(D), l.once(D, "abort", () => F(m())) }; a.throwIfAbortError = function (D) { if (u(D)) throw D; }; a.throwIfAborted = g; a.throwIfNotAbortError = function (D) { if (!u(D)) throw D; }; a.timeout =
  852. function (D, F, J, M) { const N = J && "abort" in J ? J : null; null != M || N || (M = J); let E = setTimeout(() => { E = 0; N && N.abort() }, F); const G = () => M || new d("promiseUtils:timeout", "The wrapped promise did not resolve within " + F + " ms"); return D.then(H => { if (0 === E) throw G(); clearTimeout(E); return H }, H => { clearTimeout(E); throw 0 === E ? G() : H; }) }; a.waitTick = function (D) { return A.apply(this, arguments) }; a.when = C; a.whenOrAbort = function (D, F) {
  853. const J = p(F); return q.isNone(J) ? D : new Promise((M, N) => {
  854. let E = n(F, () => N(m())); const G = () => E = q.removeMaybe(E);
  855. D.then(G, G); D.then(M, N)
  856. })
  857. }; a.whenOrTimeout = function (D, F, J) { return Promise.race([D, x(F).then(() => { throw new d("timeout", `Did not resolve within ${F} milliseconds (${null != J ? J : "timeout"})`); })]) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  858. })
  859. }, "esri/core/clock": function () {
  860. define(["exports"], function (a) {
  861. function b(e) { return { setTimeout: (d, l) => { const r = e.setTimeout(d, l); return { remove: () => e.clearTimeout(r) } } } } const c = b(globalThis); a.clock = c; a.wrap = b; Object.defineProperties(a,
  862. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  863. })
  864. }, "esri/core/deprecate": function () {
  865. define(["exports", "./has"], function (a, b) {
  866. function c(l, r, q = !1) { q && d.has(r) || (q && d.add(r), l.warn(`\ud83d\uded1 DEPRECATED - ${r}`)) } function e(l, r, q = {}) { if (b("esri-deprecation-warnings")) { const { replacement: k, version: m, see: g, warnOnce: p } = q; k && (r += `\n\t\ud83d\udee0\ufe0f Replacement: ${k}`); m && (r += `\n\t\u2699\ufe0f Version: ${m}`); g && (r += `\n\t\ud83d\udd17 See ${g} for more details.`); c(l, r, p) } } const d = new Set;
  867. a.deprecated = e; a.deprecatedFunction = function (l, r, q = {}) { if (b("esri-deprecation-warnings")) { const { moduleName: k } = q; e(l, `Function: ${(k ? k + "::" : "") + r + "()"}`, q) } }; a.deprecatedModule = function (l, r, q = {}) { b("esri-deprecation-warnings") && e(l, `Module: ${r}`, q) }; a.deprecatedProperty = function (l, r, q = {}) { if (b("esri-deprecation-warnings")) { const { moduleName: k } = q; e(l, `Property: ${(k ? k + "::" : "") + r}`, q) } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  868. })
  869. }, "esri/core/events": function () {
  870. define(["exports"],
  871. function (a) {
  872. function b(d) { return d && ("function" === typeof d.on || "function" === typeof d.addEventListener) } function c(d, l, r) { if (!b(d)) throw new TypeError("target is not a Evented or EventTarget object"); if ("on" in d) return d.on(l, r); if (Array.isArray(l)) { const q = l.slice(); for (const k of q) d.addEventListener(k, r); return { remove() { for (const k of q) d.removeEventListener(k, r) } } } d.addEventListener(l, r); return { remove() { d.removeEventListener(l, r) } } } const e = {
  873. Win: "Meta", Scroll: "ScrollLock", Spacebar: " ", Down: "ArrowDown",
  874. Left: "ArrowLeft", Right: "ArrowRight", Up: "ArrowUp", Del: "Delete", Apps: "ContextMenu", Esc: "Escape", Multiply: "*", Add: "+", Subtract: "-", Decimal: ".", Divide: "/"
  875. }; a.eventKey = function ({ key: d }) { return e[d] || d }; a.ieKeyNormalizationMap = e; a.isEventTarget = b; a.on = c; a.once = function (d, l, r) { if (!b(d)) throw new TypeError("target is not a Evented or EventTarget object"); if ("once" in d) return d.once(l, r); const q = c(d, l, k => { q.remove(); r.call(d, k) }); return { remove() { q.remove() } } }; a.pausable = function (d, l, r) {
  876. let q = !1; const k = c(d,
  877. l, m => { q || r.call(d, m) }); return { resume() { q = !1 }, pause() { q = !0 }, remove() { k.remove() } }
  878. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  879. })
  880. }, "esri/core/time": function () { define(["exports"], function (a) { a.Milliseconds = function (b) { return b }; a.Seconds = function (b) { return b }; a.millisecondsFromSeconds = function (b) { return 1E3 * b }; a.secondsFromMilliseconds = function (b) { return .001 * b }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/core/SetUtils": function () {
  881. define(["exports",
  882. "./maybe"], function (a, b) { a.someSet = function (c, e) { for (const d of c.entries()) if (e(d[0])) return !0; return !1 }; a.union = function (c, e) { const d = new Set; b.isSome(c) && c.forEach(l => d.add(l)); b.isSome(e) && e.forEach(l => d.add(l)); return d }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  883. }, "esri/core/uid": function () { define(["exports"], function (a) { let b = 0; a.NullUID = 0; a.generateUID = function () { return ++b }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) },
  884. "esri/core/accessorSupport/trackingUtils": function () {
  885. define(["exports", "./tracking", "./tracking/SimpleTrackingTarget"], function (a, b, c) {
  886. let e = !1; const d = []; a.autorun = function (l) { function r() { if (q && !k) if (e) d.includes(r) || d.unshift(r); else for (q.clear(), k = e = !0, b.runTracked(q, l), e = k = !1; d.length;)d.pop()() } let q = new c.SimpleTrackingTarget(r), k = !1; k = !0; b.runTracked(q, l); k = !1; return { remove: function () { q && (q.destroy(), q = null) } } }; a.reaction = function (l, r) {
  887. function q() {
  888. if (k && !g) if (e) d.includes(q) || d.unshift(q);
  889. else { var p = m; k.clear(); g = e = !0; m = b.runTracked(k, l); e = g = !1; for (r(m, p); d.length;)d.pop()() }
  890. } let k = new c.SimpleTrackingTarget(q), m = null, g = !1; g = !0; m = b.runTracked(k, l); g = !1; return { remove: function () { k && (k.destroy(), m = k = null) } }
  891. }; a.reactionDeferred = function (l, r) { function q() { if (!k) return null; k.clear(); return m = b.runTracked(k, l) } let k = new c.SimpleTrackingTarget(function () { r(m, q) }), m = null; q(); return { remove: function () { k && (k.destroy(), k = null); m = null } } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  892. })
  893. },
  894. "esri/core/accessorSupport/tracking/SimpleTrackingTarget": function () {
  895. define(["exports"], function (a) {
  896. let b = function () {
  897. function c(d) { this._notify = d; this._accessed = []; this._handles = []; this._invalidCount = 0 } var e = c.prototype; e.destroy = function () { this._accessed.length = 0; this.clear() }; e.onInvalidated = function () { this._invalidCount++ }; e.onCommitted = function () { const d = this._invalidCount; 1 === d ? (this._invalidCount = 0, this._notify()) : this._invalidCount = 0 < d ? d - 1 : 0 }; e.onObservableAccessed = function (d) {
  898. this._accessed.includes(d) ||
  899. this._accessed.push(d)
  900. }; e.onTrackingEnd = function () { const d = this._handles, l = this._accessed; for (let r = 0; r < l.length; ++r)d.push(l[r].observe(this)); l.length = 0 }; e.clear = function () { const d = this._handles; for (let l = 0; l < d.length; ++l)d[l].remove(); d.length = 0 }; return c
  901. }(); a.SimpleTrackingTarget = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  902. })
  903. }, "esri/core/accessorSupport/decorators/property": function () {
  904. define("exports ../../Logger ../ensureType ../get ../metadata ../set".split(" "),
  905. function (a, b, c, e, d, l) {
  906. function r(k) { let m = 0; var g = k; if (c.isLongFormType(k)) return c.ensureLongFormType(k); for (; Array.isArray(g) && 1 === g.length && "string" !== typeof g[0] && "number" !== typeof g[0];)g = g[0], m++; return c.isOneOf(g) ? 0 === m ? c.ensureOneOf(g) : c.ensureNArrayTyped(c.ensureOneOf(g), m) : 1 === m ? c.ensureArray(g) : 1 < m ? c.ensureNArray(g, m) : k.from ? k.from : c.ensureType(k) } function q(k, m) {
  907. return g => {
  908. g = +k(g); null != m.step && (g = Math.round(g / m.step) * m.step); null != m.min && (g = Math.max(m.min, g)); null != m.max && (g = Math.min(m.max,
  909. g)); return g
  910. }
  911. } a.ensureRange = q; a.property = function (k = {}) {
  912. return (m, g) => {
  913. if (m === Function.prototype) throw Error(`Inappropriate use of @property() on a static field: ${m.name}.${g}. Accessor does not support static properties.`); var p = Object.getOwnPropertyDescriptor(m, g); const t = d.getOwnPropertyMetadata(m, g); p && (p.get || p.set ? (t.get = p.get || t.get, t.set = p.set || t.set) : "value" in p && ("value" in k && b.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${g}" on "${m.constructor.name}" already defined in the metadata`,
  914. k), t.value = k.value = p.value)); null != k.readOnly && (t.readOnly = k.readOnly); if (m = k.aliasOf) { const n = "string" === typeof m ? m : m.source; m = "string" === typeof m ? null : !0 === m.overridable; let u; t.dependsOn = [n]; t.get = function () { let f = e.get(this, n); if ("function" === typeof f) { u || (u = n.split(".").slice(0, -1).join(".")); const h = e.get(this, u); h && (f = f.bind(h)) } return f }; t.readOnly || (t.set = m ? function (f) { void 0 !== f ? this._override(g, f) : this._clearOverride(g) } : function (f) { l.set(this, n, f) }) } m = k.type; p = k.types; t.cast || (m ? t.cast =
  915. r(m) : p && (Array.isArray(p) ? t.cast = c.ensureArrayTyped(c.ensureOneOfType(p[0])) : t.cast = c.ensureOneOfType(p))); k.range && (t.cast = q(t.cast, k.range)); d.mergeProperty(t, k)
  916. }
  917. }; a.propertyJSONMeta = function (k, m, g) { k = d.getOwnPropertyMetadata(k, g); k.json || (k.json = {}); k = k.json; void 0 !== m && (k.origins || (k.origins = {}), k.origins[m] || (k.origins[m] = {}), k = k.origins[m]); return k }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  918. })
  919. }, "esri/core/accessorSupport/ensureType": function () {
  920. define(["exports",
  921. "../has", "../Logger", "../MapUtils"], function (a, b, c, e) {
  922. function d(E) { return null == E ? E : new Date(E) } function l(E) { return null == E ? E : !!E } function r(E) { return null == E ? E : E.toString() } function q(E) { if (null == E) return E; E = parseFloat(E); return isNaN(E) ? 0 : E } function k(E) { return null == E ? E : Math.round(parseFloat(E)) } function m(E) { return E && E.constructor && void 0 !== E.constructor.__accessorMetadata__ } function g(E, G) { return null != G && E && !(G instanceof E) } function p(E) {
  923. return E && E.Type ? "function" === typeof E.Type ? E.Type :
  924. E.Type.base : null
  925. } function t(E, G) { var H; (H = !G || !G.constructor) || (H = G.constructor, H = !(H && "isCollection" in H)); if (H) return n(E, G) ? G : new E(G); H = p(E.prototype.itemType); const K = p(G.constructor.prototype.itemType); if (!H) return G; if (!K) return new E(G); if (H === K) return G; if (H.prototype.isPrototypeOf(K.prototype)) return new E(G); n(E, G); return G } function n(E, G) { return m(G) ? (J.error("Accessor#set", "Assigning an instance of '" + (G.declaredClass || "unknown") + "' which is not a subclass of '" + f(E) + "'"), !0) : !1 } function u(E,
  926. G) { return null == G ? G : E && "isCollection" in E ? t(E, G) : g(E, G) ? n(E, G) ? G : new E(G) : G } function f(E) { return E && E.prototype && E.prototype.declaredClass || "unknown" } function h(E) { switch (E) { case Number: return q; case N: return k; case Boolean: return l; case String: return r; case Date: return d; default: return e.getOrCreateMapValue(M, E, () => u.bind(null, E)) } } function v(E, G) { const H = h(E); return 1 === arguments.length ? H : H(G) } function y(E, G, H) {
  927. return 1 === arguments.length ? y.bind(null, E) : G ? Array.isArray(G) ? G.map(K => E(K, H)) : [E(G,
  928. H)] : G
  929. } function B(E, G, H) { return 0 !== G && Array.isArray(H) ? H.map(K => B(E, G - 1, K)) : E(H) } function w(E, G, H) { if (2 === arguments.length) return w.bind(null, E, G); if (!H) return H; H = B(E, G, H); let K = G; for (var S = H; 0 < K && Array.isArray(S);)K--, S = S[0]; if (void 0 !== S) for (S = 0; S < K; S++)H = [H]; return H } function x(E, G) {
  930. if (2 === arguments.length) return x(E).call(null, G); const H = new Set, K = E.filter(ba => "function" !== typeof ba), S = E.filter(ba => "function" === typeof ba); for (const ba of E) "string" !== typeof ba && "number" !== typeof ba || H.add(ba);
  931. let fa = null, ha = null; return (ba, O) => {
  932. if (null == ba) return ba; const na = typeof ba, ra = "string" === na || "number" === na; if (ra && (H.has(ba) || S.some(Da => "string" === na && Da === String || "number" === na && Da === Number)) || "object" === na && S.some(Da => !g(ba, Da))) return ba; ra && K.length ? (fa || (fa = K.map(Da => "string" === typeof Da ? `'${Da}'` : `${Da}`).join(", ")), J.error("Accessor#set", `'${ba}' is not a valid value for this property, only the following values are valid: ${fa}`)) : "object" === typeof ba && S.length ? (ha || (ha = S.map(Da => f(Da)).join(", ")),
  933. J.error("Accessor#set", `'${ba}' is not a valid value for this property, value must be one of ${ha}`)) : J.error("Accessor#set", `'${ba}' is not a valid value for this property`); O && (O.valid = !1); return null
  934. }
  935. } function z(E, G) {
  936. if (2 === arguments.length) return z(E).call(null, G); const H = {}, K = [], S = []; for (const ha in E.typeMap) { const ba = E.typeMap[ha]; H[ha] = v(ba); K.push(f(ba)); S.push(ha) } const fa = "string" === typeof E.key ? ha => ha[E.key] : E.key; return ha => {
  937. if (E.base && !g(E.base, ha) || null == ha) return ha; var ba = fa(ha) ||
  938. E.defaultKeyValue; const O = H[ba]; if (!O) return J.error("Accessor#set", `Invalid property value, value needs to be one of ${`'${K.join("', '")}'`}, or a plain object that can autocast (having .type = ${`'${S.join("', '")}'`})`), null; if (!g(E.typeMap[ba], ha)) return ha; if ("string" === typeof E.key && !m(ha)) { ba = {}; for (const na in ha) na !== E.key && (ba[na] = ha[na]); return O(ba) } return O(ha)
  939. }
  940. } function C(E) { switch (E.type) { case "native": return v(E.value); case "array": return y(C(E.value)); case "one-of": return A(E); default: return null } }
  941. function A(E) { let G = null; return (H, K) => { if (F(H, E)) return H; null == G && (G = D(E)); J.error("Accessor#set", `Invalid property value, value needs to be of type ${G}`); K && (K.valid = !1); return null } } function D(E) {
  942. switch (E.type) {
  943. case "native": switch (E.value) { case Number: return "number"; case String: return "string"; case Boolean: return "boolean"; case N: return "integer"; case Date: return "date"; default: return f(E.value) }case "array": return `array of ${D(E.value)}`; case "one-of": return E = E.values.map(G => D(G)), `one of ${E.slice(0,
  944. E.length - 1)} or ${E[E.length - 1]}`
  945. }return "unknown"
  946. } function F(E, G) { if (null == E) return !0; switch (G.type) { case "native": switch (G.value) { case Number: case N: return "number" === typeof E; case Boolean: return "boolean" === typeof E; case String: return "string" === typeof E }return E instanceof G.value; case "array": return Array.isArray(E) ? !E.some(H => !F(H, G.value)) : !1; case "one-of": return G.values.some(H => F(E, H)) } } const J = c.getLogger("esri.core.Accessor"), M = new WeakMap; let N = function () { }; a.Integer = N; a.ensureArray = function (E,
  947. G) { return 1 === arguments.length ? y(v.bind(null, E)) : y(v.bind(null, E), G) }; a.ensureArrayTyped = y; a.ensureBoolean = l; a.ensureClass = u; a.ensureDate = d; a.ensureInteger = k; a.ensureLongFormType = C; a.ensureNArray = function (E, G, H) { return 2 === arguments.length ? w(v.bind(null, E), G) : w(v.bind(null, E), G, H) }; a.ensureNArrayTyped = w; a.ensureNumber = q; a.ensureOneOf = x; a.ensureOneOfType = z; a.ensureString = r; a.ensureType = v; a.isClassedType = m; a.isLongFormType = function (E) { if (!(E && "type" in E)) return !1; switch (E.type) { case "native": case "array": case "one-of": return !0 }return !1 };
  948. a.isOneOf = function (E) { return Array.isArray(E) ? !E.some(G => { G = typeof G; return !("string" === G || "number" === G || "function" === G && 1 < E.length) }) : !1 }; a.requiresType = g; a.types = { native(E) { return { type: "native", value: E } }, array(E) { return { type: "array", value: E } }, oneOf(E) { return { type: "one-of", values: E } } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  949. })
  950. }, "esri/core/MapUtils": function () {
  951. define(["exports"], function (a) {
  952. a.findInMap = function (b, c) {
  953. for (const [e, d] of b) if (c(d, e)) return d;
  954. return null
  955. }; a.first = function (b) { b = b.values().next(); return !0 !== b.done ? b.value : null }; a.getOrCreateMapValue = function (b, c, e) { const d = b.get(c); if (void 0 !== d) return d; e = e(); b.set(c, e); return e }; a.someMap = function (b, c) { for (const [e, d] of b) if (c(d, e)) return !0; return !1 }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  956. })
  957. }, "esri/core/accessorSupport/decorators/subclass": function () {
  958. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../has ../interfaces ../metadata ../tracking ../extensions/serializableProperty".split(" "),
  959. function (a, b, c, e, d, l, r) {
  960. function q(p, t) { return null == t.get ? function () { const n = this.__accessor__.properties.get(p); if (void 0 !== n) { l.trackAccess(n); var u = this.__accessor__.store; return u.has(p) ? u.get(p) : n.metadata.value } } : function () { const n = this.__accessor__.properties.get(p); if (void 0 !== n) return n.getComputed() } } function k(p) {
  961. const t = d.getOwnClassMetadata(p.prototype).properties, n = {}; for (const u of Object.getOwnPropertyNames(t)) {
  962. const f = t[u]; r.processPrototypePropertyMetadata(f); n[u] = {
  963. enumerable: !0,
  964. configurable: !0, get: q(u, f), set(h) { const v = this.__accessor__; if (void 0 === v) Object.defineProperty(this, u, { enumerable: !0, configurable: !0, writable: !0, value: h }); else if (!Object.isFrozen(this)) { if (v.initialized && f.readOnly) throw new TypeError(`[accessor] cannot assign to read-only property '${u}' of ${this.declaredClass}`); if (v.lifecycle === e.Lifecycle.CONSTRUCTED && f.constructOnly) throw new TypeError(`[accessor] cannot assign to construct-only property '${u}' of ${this.declaredClass}`); v.set(u, h) } }
  965. }
  966. } Object.defineProperties(p.prototype,
  967. n)
  968. } const m = new Set, g = new Set; a.finalizeClass = k; a.subclass = function (p) {
  969. return t => {
  970. t.prototype.declaredClass = p; k(t); const n = [], u = []; for (var f = t.prototype; f;)f.hasOwnProperty("initialize") && !m.has(f.initialize) && (m.add(f.initialize), n.push(f.initialize)), f.hasOwnProperty("destroy") && !g.has(f.destroy) && (g.add(f.destroy), u.push(f.destroy)), f = Object.getPrototypeOf(f); m.clear(); g.clear(); f = function (h) {
  971. function v(...y) {
  972. var B = h.call(this, ...y) || this; if (B.constructor === v && "function" === typeof B.postscript) {
  973. n.length &&
  974. Object.defineProperty(b._assertThisInitialized(B), "initialize", { enumerable: !1, configurable: !0, value() { for (let w = n.length - 1; 0 <= w; w--)n[w].call(this) } }); if (u.length) { let w = !1; Object.defineProperty(b._assertThisInitialized(B), "destroy", { enumerable: !1, configurable: !0, value() { if (!w) { w = !0; for (let x = 0; x < u.length; x++)u[x].call(this) } } }) } B.postscript(...y)
  975. } return B
  976. } b._inheritsLoose(v, h); return v
  977. }(t); f.__accessorMetadata__ = d.getOwnClassMetadata(t.prototype); f.prototype.declaredClass = p; return f
  978. }
  979. }; Object.defineProperties(a,
  980. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  981. })
  982. }, "esri/core/accessorSupport/extensions/serializableProperty": function () {
  983. define("exports ../ensureType ./serializableProperty/originAliases ./serializableProperty/reader ./serializableProperty/shorthands ./serializableProperty/writer".split(" "), function (a, b, c, e, d, l) {
  984. function r(m, g, p) { let t = m && m.json; m && m.json && m.json.origins && p && (m = m.json.origins[p.origin]) && ("any" === g || g in m) && (t = m); return t } function q(m) {
  985. if (m.type) {
  986. var g = 0; for (m =
  987. m.type; Array.isArray(m) && !b.isOneOf(m);)m = m[0], g++; return { type: m, ndimArray: g }
  988. }
  989. } function k(m) { if (m.types) { var g = 0; for (m = m.types; Array.isArray(m);)m = m[0], g++; return { types: m, ndimArray: g } } } a.originSpecificPropertyDefinition = r; a.originSpecificReadPropertyDefinition = function (m, g) { return r(m, "read", g) }; a.originSpecificWritePropertyDefinition = function (m, g) { return r(m, "write", g) }; a.processPrototypePropertyMetadata = function (m) {
  990. if (d.process(m)) {
  991. c.process(m); var g = m.json.types ? k(m.json) : m.type ? q(m) : k(m); if (m.json.origins) for (const t in m.json.origins) {
  992. const n =
  993. m.json.origins[t]; if (n.types) { var p = n; p = p.type ? q(p) : k(p) } else p = g; e.create(p, n, !1); n.types && !n.write && m.json.write && m.json.write.enabled && (n.write = { ...m.json.write }); l.create(p, n)
  994. } e.create(g, m.json, !0); l.create(g, m.json)
  995. }
  996. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  997. })
  998. }, "esri/core/accessorSupport/extensions/serializableProperty/originAliases": function () {
  999. define(["exports"], function (a) {
  1000. a.process = function (b) {
  1001. if (b.json && b.json.origins) {
  1002. const c = b.json.origins;
  1003. b = { "web-document": ["web-scene", "web-map"] }; for (const e in b) if (c[e]) { const d = c[e]; b[e].forEach(l => { c[l] = d }); delete c[e] }
  1004. }
  1005. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1006. })
  1007. }, "esri/core/accessorSupport/extensions/serializableProperty/reader": function () {
  1008. define("exports ../../../Logger ../../../object ../../../Warning ../../metadata ./type".split(" "), function (a, b, c, e, d, l) {
  1009. function r(v) {
  1010. var y; const B = null != (y = v.ndimArray) ? y : 0; if (1 < B) return g(v); if (1 === B) return p(v);
  1011. if ("type" in v && t(v.type)) { var w, x; y = null == (w = v.type.prototype) ? void 0 : null == (x = w.itemType) ? void 0 : x.Type; const z = p("function" === typeof y ? { type: y } : { types: y }); return (C, A, D) => (C = z(C, A, D)) ? new v.type(C) : C } return q(v)
  1012. } function q(v) { return "type" in v ? k(v.type) : f(v.types) } function k(v) {
  1013. return v.prototype.read ? (y, B, w) => {
  1014. if (null == y) return y; B = typeof y; if ("object" !== B) h.error(`Expected JSON value of type 'object' to deserialize type '${v.prototype.declaredClass}', but got '${B}'`); else return B = new v, B.read(y,
  1015. w), B
  1016. } : v.fromJSON
  1017. } function m(v, y, B, w) { return 0 !== w && Array.isArray(y) ? y.map(x => m(v, x, B, w - 1)) : v(y, void 0, B) } function g(v) { var y; const B = q(v), w = m.bind(null, B), x = null != (y = v.ndimArray) ? y : 0; return (z, C, A) => { if (null == z) return z; z = w(z, A, x); C = x; for (A = z; 0 < C && Array.isArray(A);)C--, A = A[0]; if (void 0 !== A) for (A = 0; A < C; A++)z = [z]; return z } } function p(v) {
  1018. const y = q(v); return (B, w, x) => {
  1019. if (null == B) return B; if (Array.isArray(B)) { w = []; for (const z of B) B = y(z, void 0, x), void 0 !== B && w.push(B); return w } x = y(B, void 0, x); return void 0 !==
  1020. x ? [x] : void 0
  1021. }
  1022. } function t(v) { return l.isCollection(v) ? (v = v.prototype.itemType) && v.Type ? "function" === typeof v.Type ? n(v.Type) : u(v.Type) : !1 : !1 } function n(v) { return Array.isArray(v) ? !1 : !!v && v.prototype && ("read" in v.prototype || "fromJSON" in v || t(v)) } function u(v) { for (const y in v.typeMap) if (!n(v.typeMap[y])) return !1; return !0 } function f(v) {
  1023. var y; let B = null; const w = null != (y = v.errorContext) ? y : "type"; return (x, z, C) => {
  1024. if (null == x) return x; z = typeof x; if ("object" !== z) h.error(`Expected JSON value of type 'object' to deserialize, but got '${z}'`);
  1025. else {
  1026. if (!B) { z = {}; for (const M in v.typeMap) { var A, D; const N = v.typeMap[M]; var F = d.getOwnClassMetadata(N.prototype); if ("function" === typeof v.key) continue; F = F.properties[v.key]; if (!F) continue; null != (A = F.json) && A.type && Array.isArray(F.json.type) && 1 === F.json.type.length && "string" === typeof F.json.type[0] && (z[F.json.type[0]] = N); F = null == (D = F.json) ? void 0 : D.write; if (!F || !F.writer) { z[M] = N; continue } var J = F.target; J = "string" === typeof J ? J : v.key; const E = {}; F.writer(M, E, J); E[J] && (z[E[J]] = N) } B = z } A = v.key; if ("string" ===
  1027. typeof A) { if (D = (A = x[A]) ? B[A] : v.defaultKeyValue ? v.typeMap[v.defaultKeyValue] : void 0) return A = new D, A.read(x, C), A; A = `Type '${A || "unknown"}' is not supported`; C && C.messages && x && C.messages.push(new e(`${w}:unsupported`, A, { definition: x, context: C })); h.error(A) }
  1028. }
  1029. }
  1030. } const h = b.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader"); a.create = function (v, y, B) {
  1031. var w, x; !v || !B && !y.read || null != (w = y.read) && w.reader || !1 === (null == (x = y.read) ? void 0 : x.enabled) || (B = "types" in v ? u(v.types) : n(v.type),
  1032. B && c.setDeepValue("read.reader", r(v), y))
  1033. }; a.createTypeReader = r; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1034. })
  1035. }, "esri/core/Warning": function () { define(["../chunks/_rollupPluginBabelHelpers", "./Message"], function (a, b) { b = function (c) { function e(d, l, r) { var q = c.call(this, d, l, r) || this; return a._assertThisInitialized(q) instanceof e ? q : new e(d, l, r) } a._inheritsLoose(e, c); return e }(b); b.prototype.type = "warning"; return b }) }, "esri/core/accessorSupport/extensions/serializableProperty/type": function () {
  1036. define(["exports"],
  1037. function (a) { a.isCollection = function (b) { return !!b && b.prototype && b.prototype.declaredClass && 0 === b.prototype.declaredClass.indexOf("esri.core.Collection") }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  1038. }, "esri/core/accessorSupport/extensions/serializableProperty/shorthands": function () {
  1039. define(["exports"], function (a) {
  1040. function b(d) {
  1041. d.name && (d.read ? "object" === typeof d.read ? void 0 === d.read.source && (d.read.source = d.name) : d.read = { source: d.name } : d.read = { source: d.name },
  1042. d.write ? "object" === typeof d.write ? void 0 === d.write.target && (d.write.target = d.name) : d.write = { target: d.name } : d.write = { target: d.name })
  1043. } function c(d) { "boolean" === typeof d.read ? d.read = { enabled: d.read } : "function" === typeof d.read ? d.read = { enabled: !0, reader: d.read } : d.read && "object" === typeof d.read && void 0 === d.read.enabled && (d.read.enabled = !0) } function e(d) {
  1044. "boolean" === typeof d.write ? d.write = { enabled: d.write } : "function" === typeof d.write ? d.write = { enabled: !0, writer: d.write } : d.write && "object" === typeof d.write &&
  1045. void 0 === d.write.enabled && (d.write.enabled = !0)
  1046. } a.process = function (d) { d.json || (d.json = {}); c(d.json); e(d.json); b(d.json); if (d.json.origins) for (const l in d.json.origins) c(d.json.origins[l]), e(d.json.origins[l]), b(d.json.origins[l]); return !0 }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1047. })
  1048. }, "esri/core/accessorSupport/extensions/serializableProperty/writer": function () {
  1049. define(["exports", "../../../Error", "../../../Logger", "../../../object", "./type"], function (a,
  1050. b, c, e, d) {
  1051. function l(f) { return (h, v, y, B) => { if (!h || r(h, f, B)) return k(h, v, y, B) } } function r(f, h, v) { for (var y in h.typeMap) if (f instanceof h.typeMap[y]) return !0; if (null != v && v.messages) { var B, w; y = null != (B = h.errorContext) ? B : "type"; h = `Values of type '${null != (w = "function" !== typeof h.key ? f[h.key] : f.declaredClass) ? w : "Unknown"}' cannot be written`; v && v.messages && f && v.messages.push(new b(`${y}:unsupported`, h, { definition: f, context: v })); u.error(h) } return !1 } function q(f) {
  1052. return (h, v, y, B) => {
  1053. if (!h || !Array.isArray(h)) return k(h,
  1054. v, y, B); h = h.filter(w => r(w, f, B)); return k(h, v, y, B)
  1055. }
  1056. } function k(f, h, v, y) { e.setDeepValue(v, m(f, y), h) } function m(f, h) { return f && "function" === typeof f.write ? f.write({}, h) : f && "function" === typeof f.toJSON ? f.toJSON() : "number" === typeof f ? g(f) : f } function g(f) { return -Infinity === f ? -Number.MAX_VALUE : Infinity === f ? Number.MAX_VALUE : isNaN(f) ? null : f } function p(f, h, v, y) { null === f ? f = null : f && "function" === typeof f.map ? (f = f.map(B => m(B, y)), "function" === typeof f.toArray && (f = f.toArray())) : f = [m(f, y)]; e.setDeepValue(v, f, h) } function t(f,
  1057. h, v) { return 0 !== v && Array.isArray(f) ? f.map(y => t(y, h, v - 1)) : m(f, h) } function n(f) { return (h, v, y, B) => { if (null === h) h = null; else { h = t(h, B, f); B = f; for (var w = h; 0 < B && Array.isArray(w);)B--, w = w[0]; if (void 0 !== w) for (w = 0; w < B; w++)h = [h] } e.setDeepValue(y, h, v) } } const u = c.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer"); a.create = function (f, h) {
  1058. var v; if (h.write && !h.write.writer && (!1 !== h.write.enabled || h.write.overridePolicy)) {
  1059. var y = null != (v = null == f ? void 0 : f.ndimArray) ? v : 0; f && (1 === y || "type" in f &&
  1060. d.isCollection(f.type)) ? h.write.writer = p : 1 < y ? h.write.writer = n(y) : h.types ? Array.isArray(h.types) ? h.write.writer = q(h.types[0]) : h.write.writer = l(h.types) : h.write.writer = k
  1061. }
  1062. }; a.numberToJSON = g; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1063. })
  1064. }, "esri/core/ObservableChangesType": function () {
  1065. define(["exports"], function (a) {
  1066. a.ObservableChangesType = void 0; var b = a.ObservableChangesType || (a.ObservableChangesType = {}); b[b.ADD = 1] = "ADD"; b[b.REMOVE = 2] = "REMOVE"; b[b.MOVE = 4] = "MOVE";
  1067. Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1068. })
  1069. }, "esri/core/accessorSupport/decorators/shared": function () { define(["exports"], function (a) { a.shared = function (b) { return (c, e) => { c[e] = b } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/core/accessorSupport/tracking/SimpleObservable": function () {
  1070. define(["exports", "./ObservationHandle"], function (a, b) {
  1071. let c = function () {
  1072. function e() { this._observers = [] } var d = e.prototype;
  1073. d.observe = function (l) { this._observers.includes(l) || this._observers.push(l); return new b.ObservationHandle(this._observers, l) }; d.notify = function () { const l = this._observers.slice(); for (let r = 0; r < l.length; ++r) { const q = l[r]; q.onInvalidated(); q.onCommitted() } }; return e
  1074. }(); a.SimpleObservable = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1075. })
  1076. }, "esri/core/collectionUtils": function () {
  1077. define(["exports", "./Collection"], function (a, b) {
  1078. a.castForReferenceSetter = function (c) { return c };
  1079. a.referenceSetter = function (c, e, d = b) { e || (e = new d); if (e === c) return e; e.removeAll(); c && (Array.isArray(c) || "items" in c && Array.isArray(c.items)) ? e.addMany(c) : c && e.add(c); return e }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1080. })
  1081. }, "esri/core/JSONSupport": function () {
  1082. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./accessorSupport/DefaultsStore ./accessorSupport/defaultsStoreUtils ./accessorSupport/read ./accessorSupport/utils ./accessorSupport/write ./accessorSupport/decorators/subclass".split(" "),
  1083. function (a, b, c, e, d, l, r, q, k, m, g) {
  1084. const p = t => {
  1085. t = function (n) {
  1086. function u(...h) { h = n.call(this, ...h) || this; const v = d.assumeNonNull(k.getProperties(b._assertThisInitialized(h))), y = v.store, B = new l.DefaultsStore; v.store = B; r.setupConstructedDefaults(v, y, B); return h } b._inheritsLoose(u, n); var f = u.prototype; f.read = function (h, v) { q.read(this, h, v) }; f.write = function (h = {}, v) { return m.write(this, h, v) }; f.toJSON = function (h) { return this.write({}, h) }; u.fromJSON = function (h, v) {
  1087. if (h) {
  1088. if (h.declaredClass) throw Error("JSON object is already hydrated");
  1089. var y = new this; y.read(h, v); h = y
  1090. } else h = null; return h
  1091. }; return u
  1092. }(t); t = c.__decorate([g.subclass("esri.core.JSONSupport")], t); t.prototype.toJSON.isDefaultToJSON = !0; return t
  1093. }; a.JSONSupport = function (t) { function n() { return t.apply(this, arguments) || this } b._inheritsLoose(n, t); return n }(p(e)); a.JSONSupport = c.__decorate([g.subclass("esri.core.JSONSupport")], a.JSONSupport); a.JSONSupportMixin = p; a.isJSONSupport = function (t) { return t && "read" in t && "write" in t && "toJSON" in t }; Object.defineProperties(a, {
  1094. __esModule: { value: !0 },
  1095. [Symbol.toStringTag]: { value: "Module" }
  1096. })
  1097. })
  1098. }, "esri/core/accessorSupport/DefaultsStore": function () {
  1099. define(["exports", "../lang", "./PropertyOrigin"], function (a, b, c) {
  1100. let e = function () {
  1101. function l() { this._values = new Map; this.multipleOriginsSupported = !1 } var r = l.prototype; r.clone = function (q) { const k = new l; this._values.forEach((m, g) => { q && q.has(g) || k.set(g, b.clone(m.value), m.origin) }); return k }; r.get = function (q, k) {
  1102. k = this._normalizeOrigin(k); q = this._values.get(q); return null == k || (null == q ? void 0 : q.origin) === k ? null ==
  1103. q ? void 0 : q.value : void 0
  1104. }; r.originOf = function (q) { var k, m; return null != (k = null == (m = this._values.get(q)) ? void 0 : m.origin) ? k : c.OriginId.USER }; r.keys = function (q) { q = this._normalizeOrigin(q); const k = [...this._values.keys()]; return null == q ? k : k.filter(m => { var g; return (null == (g = this._values.get(m)) ? void 0 : g.origin) === q }) }; r.set = function (q, k, m) { m = this._normalizeOrigin(m); if (m === c.OriginId.DEFAULTS) { const g = this._values.get(q); if (g && null != g.origin && g.origin > m) return } this._values.set(q, new d(k, m)) }; r.delete = function (q,
  1105. k) { var m; k = this._normalizeOrigin(k); null != k && (null == (m = this._values.get(q)) ? void 0 : m.origin) !== k || this._values.delete(q) }; r.has = function (q, k) { k = this._normalizeOrigin(k); if (null != k) { var m; return (null == (m = this._values.get(q)) ? void 0 : m.origin) === k } return this._values.has(q) }; r.forEach = function (q) { this._values.forEach(({ value: k }, m) => q(k, m)) }; r._normalizeOrigin = function (q) { if (null != q) return q === c.OriginId.DEFAULTS ? q : c.OriginId.USER }; return l
  1106. }(), d = function (l, r) { this.value = l; this.origin = r }; a.DefaultsStore =
  1107. e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1108. })
  1109. }, "esri/core/accessorSupport/defaultsStoreUtils": function () { define(["exports", "./PropertyOrigin"], function (a, b) { a.setupConstructedDefaults = function (c, e, d) { e.keys().forEach(l => { d.set(l, e.get(l), b.OriginId.DEFAULTS) }); Object.keys(c.metadatas).forEach(l => { c.internalGet(l) && d.set(l, c.internalGet(l), b.OriginId.DEFAULTS) }) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) },
  1110. "esri/core/accessorSupport/read": function () {
  1111. define(["exports", "./get", "./utils", "./extensions/serializableProperty"], function (a, b, c, e) {
  1112. const d = { origin: "service" }; a.read = function (l, r, q = d) {
  1113. if (r && "object" === typeof r) {
  1114. var k = c.getProperties(l), m = k.metadatas, g = {}; for (const w of Object.getOwnPropertyNames(r)) {
  1115. var p = g, t = m, n = w, u = r, f = q, h = e.originSpecificReadPropertyDefinition(t[n], f); h && (!h.read || !1 !== h.read.enabled && !h.read.source) && (p[n] = !0); for (const x of Object.getOwnPropertyNames(t)) {
  1116. h = e.originSpecificReadPropertyDefinition(t[x],
  1117. f); a: { var v = n; var y = u; if (h && h.read && !1 !== h.read.enabled && h.read.source) { h = h.read.source; if ("string" === typeof h) { if (h === v || h.includes(".") && 0 === h.indexOf(v) && b.exists(h, y)) { v = !0; break a } } else for (const z of h) if (z === v || z.includes(".") && 0 === z.indexOf(v) && b.exists(z, y)) { v = !0; break a } v = !1 } else v = !1 } v && (p[x] = !0)
  1118. }
  1119. } k.setDefaultOrigin(q.origin); for (var B of Object.getOwnPropertyNames(g)) t = (t = (p = e.originSpecificReadPropertyDefinition(m[B], q).read) && p.source) && "string" === typeof t ? b.valueOf(r, t) : r[B], p && p.reader &&
  1120. (t = p.reader.call(l, t, r, q)), void 0 !== t && k.set(B, t); if (!q || !q.ignoreDefaults) { k.setDefaultOrigin("defaults"); for (const w of Object.getOwnPropertyNames(m)) g[w] || (B = l, r = w, m = k, p = q, t = (t = e.originSpecificPropertyDefinition(m.metadatas[r], "any", p)) && t.default, void 0 !== t && (B = "function" === typeof t ? t.call(B, r, p) : t, void 0 !== B && m.set(r, B))) } k.setDefaultOrigin("user")
  1121. }
  1122. }; a.readLoadable = function (l, r, q, k = d) {
  1123. var m; r = { ...k, messages: [] }; q(r); null == (m = r.messages) ? void 0 : m.forEach(g => {
  1124. "warning" !== g.type || l.loaded ? k && k.messages &&
  1125. k.messages.push(g) : l.loadWarnings.push(g)
  1126. })
  1127. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1128. })
  1129. }, "esri/core/accessorSupport/write": function () {
  1130. define("exports ../arrayUtils ../Error ../Logger ./PropertyOrigin ./utils ./extensions/serializableProperty".split(" "), function (a, b, c, e, d, l, r) {
  1131. function q(g, p, t, n, u) { var f, h; const v = {}; null == (f = p.write) ? void 0 : null == (h = f.writer) ? void 0 : h.call(g, n, v, t, u); return v } function k(g, p, t, n, u, f) {
  1132. if (!n || !n.write) return !1; const h =
  1133. g.get(t); if (!u && n.write.overridePolicy) { var v = n.write.overridePolicy.call(g, h, t, f); void 0 !== v && (u = v) } u || (u = n.write); if (!u || !1 === u.enabled) return !1; if ((null === h && !u.allowNull && !u.writerEnsuresNonNull || void 0 === h) && u.isRequired) return (p = new c("web-document-write:property-required", `Missing value for required property '${t}' on '${g.declaredClass}'`, { propertyName: t, target: g }), f) && f.messages ? f.messages.push(p) : p && !f && m.error(p.name, p.message), !1; if (void 0 === h || null === h && !u.allowNull && !u.writerEnsuresNonNull) return !1;
  1134. if (v = !p.store.multipleOriginsSupported || p.store.originOf(t) === d.OriginId.DEFAULTS) v = n.default, void 0 === v ? v = !1 : null != n.defaultEquals ? v = n.defaultEquals(h) : "function" === typeof v ? Array.isArray(h) ? (g = v.call(g, t, f), v = b.equals(g, h)) : v = !1 : v = v === h; return v || !u.ignoreOrigin && f && f.origin && p.store.multipleOriginsSupported && p.store.originOf(t) < d.nameToId(f.origin) ? !1 : !0
  1135. } const m = e.getLogger("esri.core.accessorSupport.write"); a.willPropertyWrite = function (g, p, t, n) {
  1136. const u = l.getProperties(g), f = r.originSpecificWritePropertyDefinition(u.metadatas[p],
  1137. n); return f ? k(g, u, p, f, t, n) : !1
  1138. }; a.write = function (g, p, t) {
  1139. if (g && "function" === typeof g.toJSON && (!g.toJSON.isDefaultToJSON || !g.write)) return l.merge(p, g.toJSON(t)); const n = l.getProperties(g), u = n.metadatas; for (const v in u) {
  1140. const y = r.originSpecificWritePropertyDefinition(u[v], t); if (!k(g, n, v, y, void 0, t)) continue; const B = g.get(v), w = q(g, y, y.write && "string" === typeof y.write.target ? y.write.target : v, B, t); if (0 < Object.keys(w).length) {
  1141. var f, h; p = l.merge(p, w); null != t && null != (f = t.resources) && null != (h = f.pendingOperations) &&
  1142. h.length && Promise.all(t.resources.pendingOperations).then(() => l.merge(p, w)); t && t.writtenProperties && t.writtenProperties.push({ target: g, propName: v, oldOrigin: d.idToReadableName(n.store.originOf(v)), newOrigin: t.origin })
  1143. }
  1144. } return p
  1145. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1146. })
  1147. }, "esri/core/Loadable": function () {
  1148. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Error ./Promise ./promiseUtils ./Warning ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),
  1149. function (a, b, c, e, d, l, r, q) {
  1150. const k = m => {
  1151. m = function (g) {
  1152. function p(...n) {
  1153. var u = g.call(this, ...n) || this; u._loadController = null; u.loadError = null; u.loadStatus = "not-loaded"; u._set("loadWarnings", []); u.addResolvingPromise(new Promise(f => {
  1154. const h = u.load.bind(a._assertThisInitialized(u)); u.load = v => {
  1155. const y = new Promise((B, w) => {
  1156. const x = d.onAbortOrThrow(v, w); u.destroyed && w(new c("load:instance-destroyed", `Instance of '${u.declaredClass || u.constructor.name}' is already destroyed`, { instance: a._assertThisInitialized(u) }));
  1157. u._promiseProps.when(B, w).finally(() => { x && x.remove() })
  1158. }); if ("not-loaded" === u.loadStatus) { u._set("loadStatus", "loading"); const B = u._loadController = new AbortController; h({ signal: B.signal }); d.onAbort(B.signal, () => { u._promiseProps.abort() }) } f(); return y
  1159. }
  1160. })); u.when(() => { u._set("loadStatus", "loaded"); u._loadController = null }, f => { u._set("loadStatus", "failed"); u._set("loadError", f); u._loadController = null }); return u
  1161. } a._inheritsLoose(p, g); var t = p.prototype; t.load = function () { return null }; t.cancelLoad = function () {
  1162. var n;
  1163. if (this.isFulfilled()) return this; this._set("loadError", new c("load:cancelled", "Cancelled")); null == (n = this._loadController) ? void 0 : n.abort(); return this
  1164. }; a._createClass(p, [{ key: "loaded", get: function () { return "loaded" === this.loadStatus } }, { key: "loadWarnings", get: function () { return this._get("loadWarnings") } }]); return p
  1165. }(m); b.__decorate([r.property({ readOnly: !0 })], m.prototype, "loaded", null); b.__decorate([r.property({ readOnly: !0 })], m.prototype, "loadError", void 0); b.__decorate([r.property({ clonable: !1 })],
  1166. m.prototype, "loadStatus", void 0); b.__decorate([r.property({ type: [l], readOnly: !0 })], m.prototype, "loadWarnings", null); return m = b.__decorate([q.subclass("esri.core.Loadable")], m)
  1167. }; e = function (m) { function g() { return m.apply(this, arguments) || this } a._inheritsLoose(g, m); return g }(k(e.EsriPromise)); e = b.__decorate([q.subclass("esri.core.Loadable")], e); (function (m) { m.LoadableMixin = k; m.isLoadable = function (g) { return !(!g || !g.load) } })(e || (e = {})); return e
  1168. })
  1169. }, "esri/core/Promise": function () {
  1170. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./promiseUtils ./accessorSupport/decorators/subclass".split(" "),
  1171. function (a, b, c, e, d, l, r) {
  1172. var q; (function (g) { g[g.PENDING = 0] = "PENDING"; g[g.RESOLVED = 1] = "RESOLVED"; g[g.REJECTED = 2] = "REJECTED" })(q || (q = {})); let k = function () {
  1173. function g(t) { this.instance = t; this._resolver = l.createDeferred(); this._status = q.PENDING; this._resolvingPromises = []; this._resolver.promise.then(() => { this._status = q.RESOLVED; this._cleanUp() }, () => { this._status = q.REJECTED; this._cleanUp() }) } var p = g.prototype; p.addResolvingPromise = function (t) { this._resolvingPromises.push(t); this._tryResolve() }; p.isResolved =
  1174. function () { return this._status === q.RESOLVED }; p.isRejected = function () { return this._status === q.REJECTED }; p.isFulfilled = function () { return this._status !== q.PENDING }; p.abort = function () { this._resolver.reject(l.createAbortError()) }; p.when = function (t, n) { return this._resolver.promise.then(t, n) }; p._cleanUp = function () { this._allPromise = this._resolvingPromises = this._allPromise = null }; p._tryResolve = function () {
  1175. if (!this.isFulfilled()) {
  1176. var t = l.createDeferred(), n = [...this._resolvingPromises, d.assumeNonNull(t.promise)],
  1177. u = this._allPromise = Promise.all(n); u.then(() => { this.isFulfilled() || this._allPromise !== u || this._resolver.resolve(this.instance) }, f => { this.isFulfilled() || this._allPromise !== u || l.isAbortError(f) || this._resolver.reject(f) }); t.resolve()
  1178. }
  1179. }; return g
  1180. }(); const m = g => {
  1181. g = function (p) {
  1182. function t(...u) { u = p.call(this, ...u) || this; u._promiseProps = new k(b._assertThisInitialized(u)); u.addResolvingPromise(Promise.resolve()); return u } b._inheritsLoose(t, p); var n = t.prototype; n.isResolved = function () { return this._promiseProps.isResolved() };
  1183. n.isRejected = function () { return this._promiseProps.isRejected() }; n.isFulfilled = function () { return this._promiseProps.isFulfilled() }; n.when = function (u, f) { return (new Promise((h, v) => { this._promiseProps.when(h, v) })).then(u, f) }; n.catch = function (u) { return this.when(null, u) }; n.addResolvingPromise = function (u) { u && !this._promiseProps.isFulfilled() && this._promiseProps.addResolvingPromise("_promiseProps" in u ? u.when() : u) }; return t
  1184. }(g); return g = c.__decorate([r.subclass("esri.core.Promise")], g)
  1185. }; a.EsriPromise = function (g) {
  1186. function p() {
  1187. return g.apply(this,
  1188. arguments) || this
  1189. } b._inheritsLoose(p, g); return p
  1190. }(m(e)); a.EsriPromise = c.__decorate([r.subclass("esri.core.Promise")], a.EsriPromise); a.EsriPromiseMixin = m; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1191. })
  1192. }, "esri/core/loadAll": function () {
  1193. define("exports ../chunks/_rollupPluginBabelHelpers ./asyncUtils ./Collection ./Loadable ./maybe".split(" "), function (a, b, c, e, d, l) {
  1194. function r() {
  1195. r = b._asyncToGenerator(function* (m, g) { yield m.load(); return q(m, g) }); return r.apply(this,
  1196. arguments)
  1197. } function q(m, g) { return k.apply(this, arguments) } function k() {
  1198. k = b._asyncToGenerator(function* (m, g) {
  1199. const p = [], t = (...u) => { for (const f of u) l.isNone(f) || (Array.isArray(f) ? t(...f) : e.isCollection(f) ? f.forEach(h => t(h)) : d.isLoadable(f) && p.push(f)) }; g(t); let n = null; yield c.map(p, function () { var u = b._asyncToGenerator(function* (f) { !1 !== (yield c.result("loadAll" in f && "function" === typeof f.loadAll ? f.loadAll() : f.load())).ok || n || (n = f) }); return function (f) { return u.apply(this, arguments) } }()); if (n) throw n.loadError;
  1200. return m
  1201. }); return k.apply(this, arguments)
  1202. } a.loadAll = function (m, g) { return r.apply(this, arguments) }; a.loadAllChildren = q; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1203. })
  1204. }, "esri/core/asyncUtils": function () {
  1205. define(["exports", "../chunks/_rollupPluginBabelHelpers", "./maybe", "./promiseUtils"], function (a, b, c, e) {
  1206. function d() { d = b._asyncToGenerator(function* (q, k, m) { return (yield e.eachAlways(q.map((g, p) => k.apply(m, [g, p])))).map(g => g.value) }); return d.apply(this, arguments) }
  1207. function l() { l = b._asyncToGenerator(function* (q) { if (c.isNone(q)) return { ok: !1, error: Error("no promise provided") }; try { return { ok: !0, value: yield q } } catch (k) { return { ok: !1, error: k } } }); return l.apply(this, arguments) } function r() { r = b._asyncToGenerator(function* (q) { try { return { ok: !0, value: yield q } } catch (k) { return e.throwIfAbortError(k), { ok: !1, error: k } } }); return r.apply(this, arguments) } a.assertResult = function (q) { if (!0 === q.ok) return q.value; throw q.error; }; a.forEach = function (q, k, m) {
  1208. return e.eachAlways(q.map((g,
  1209. p) => k.apply(m, [g, p])))
  1210. }; a.map = function (q, k, m) { return d.apply(this, arguments) }; a.result = function (q) { return l.apply(this, arguments) }; a.resultOrAbort = function (q) { return r.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1211. })
  1212. }, "esri/core/urlUtils": function () {
  1213. define(["exports", "../config", "./Error", "./Logger", "./maybe"], function (a, b, c, e, d) {
  1214. function l(L) {
  1215. const R = { path: null, query: null }, X = new ya(L), ta = L.indexOf("?"); null === X.query ? R.path = L : (R.path =
  1216. L.substring(0, ta), R.query = r(X.query)); X.fragment && (R.hash = X.fragment, null === X.query && (R.path = R.path.substring(0, R.path.length - (X.fragment.length + 1)))); return R
  1217. } function r(L) { var R = L.split("\x26"); L = {}; for (const ta of R) { if (!ta) continue; var X = ta.indexOf("\x3d"); 0 > X ? (R = decodeURIComponent(ta), X = "") : (R = decodeURIComponent(ta.slice(0, X)), X = decodeURIComponent(ta.slice(X + 1))); let Ca = L[R]; "string" === typeof Ca && (Ca = L[R] = [Ca]); Array.isArray(Ca) ? Ca.push(X) : L[R] = X } return L } function q(L) {
  1218. return L && "object" === typeof L &&
  1219. "toJSON" in L && "function" === typeof L.toJSON
  1220. } function k(L, R) {
  1221. return L ? R && "function" === typeof R ? Object.keys(L).map(X => encodeURIComponent(X) + "\x3d" + encodeURIComponent(R(X, L[X]))).join("\x26") : Object.keys(L).map(X => { const ta = L[X]; if (null == ta) return ""; const Ca = encodeURIComponent(X) + "\x3d"; return (X = R && R[X]) ? Ca + encodeURIComponent(X(ta)) : Array.isArray(ta) ? ta.map(Ha => q(Ha) ? Ca + encodeURIComponent(JSON.stringify(Ha)) : Ca + encodeURIComponent(Ha)).join("\x26") : q(ta) ? Ca + encodeURIComponent(JSON.stringify(ta)) : Ca + encodeURIComponent(ta) }).filter(X =>
  1222. X).join("\x26") : ""
  1223. } function m(L) { const R = L.indexOf("?"); -1 !== R ? (da.path = L.slice(0, R), da.query = L.slice(R + 1)) : (da.path = L, da.query = null); return da } function g(L) { L = m(L).path; L && "/" === L[L.length - 1] || (L = `${L}/`); L = H(L, !0); return L = L.toLowerCase() } function p(L) { const R = ba.proxyRules; L = g(L); for (let X = 0; X < R.length; X++)if (0 === L.indexOf(R[X].urlPrefix)) return R[X] } function t(L) { L = f(L); const R = L.indexOf("/sharing"); return 0 < R ? L.substring(0, R) : L.replace(/\/+$/, "") } function n(L, R, X = !1) {
  1224. L = fa(L); R = fa(R); return !X &&
  1225. L.scheme !== R.scheme || null == L.host || null == R.host ? !1 : L.host.toLowerCase() === R.host.toLowerCase() && L.port === R.port
  1226. } function u(L, R = V, X) { return F(L) ? X && X.preserveProtocolRelative ? L : "http" === Z.scheme && Z.authority === v(L).slice(2) ? `http:${L}` : `https:${L}` : J(L) ? L : d.assumeNonNull(h("/" === L[0] ? K(R) : R, L)) } function f(L) {
  1227. L = L.trim(); L = u(L); if (/^https?:\/\//i.test(L)) { const R = m(L); L = R.path.replace(/\/{2,}/g, "/"); L = L.replace("/", "//"); R.query && (L += `?${R.query}`) } L = L.replace(/^(https?:\/\/)(arcgis\.com)/i, "$1www.$2");
  1228. return L = S(L)
  1229. } function h(...L) { var R = L.filter(d.isSome); if (R && R.length) { L = []; if (y(R[0])) { var X = R[0], ta = X.indexOf("//"); -1 !== ta && (L.push(X.slice(0, ta + 1)), Da.test(R[0]) && (L[0] += "/"), R[0] = X.slice(ta + 2)) } else "/" === R[0][0] && L.push(""); R = R.reduce((Ca, Ha) => Ha ? Ca.concat(Ha.split("/")) : Ca, []); for (X = 0; X < R.length; X++)ta = R[X], ".." === ta && 0 < L.length && ".." !== L[L.length - 1] ? L.pop() : (!ta && X === R.length - 1 || ta && ("." !== ta || 0 === L.length)) && L.push(ta); return L.join("/") } } function v(L, R = !1) {
  1230. if (B(L) || w(L)) return null; var X =
  1231. L.indexOf("://"); if (-1 === X && F(L)) X = 2; else if (-1 !== X) X += 3; else return null; X = L.indexOf("/", X); -1 !== X && (L = L.slice(0, X)); R && (L = H(L, !0)); return L
  1232. } function y(L) { return F(L) || J(L) } function B(L) { return null != L && "blob:" === L.slice(0, 5) } function w(L) { return "data:" === L.slice(0, 5) } function x(L) { L = z(L); if (!L || !L.isBase64) return null; L = atob(L.data); const R = new Uint8Array(L.length); for (let X = 0; X < L.length; X++)R[X] = L.charCodeAt(X); return R.buffer } function z(L) {
  1233. L = L.match(ea); if (!L) return null; const [, R, X, ta] = L; return {
  1234. mediaType: R,
  1235. isBase64: !!X, data: ta
  1236. }
  1237. } function C(L) { const R = x(L); if (!R) return null; L = z(L); return new Blob([R], { type: L.mediaType }) } function A(L, R) { if (!L) return !1; const X = document.createElement("a"); if (!("download" in X)) return !1; L = URL.createObjectURL(L); X.download = R; X.href = L; X.style.display = "none"; document.body.appendChild(X); X.click(); document.body.removeChild(X); URL.revokeObjectURL(L); return !0 } function D(L, R) { return window.navigator.msSaveOrOpenBlob ? window.navigator.msSaveOrOpenBlob(L, R) : !1 } function F(L) {
  1238. return null !=
  1239. L && void 0 !== L && "/" === L[0] && "/" === L[1]
  1240. } function J(L) { return O.test(L) } function M(L) { return ra.test(L) || "https" === Z.scheme && F(L) } function N(L) { return na.test(L) || "http" === Z.scheme && F(L) } function E(L) { return F(L) ? `https:${L}` : L.replace(na, "https:") } function G() { return "https" === Z.scheme } function H(L, R = !1) { if (F(L)) return L.slice(2); L = L.replace(O, ""); R && 1 < L.length && "/" === L[0] && "/" === L[1] && (L = L.slice(2)); return L } function K(L) { var R = L.indexOf("//"); R = L.indexOf("/", R + 2); return -1 === R ? L : L.slice(0, R) } function S(L) {
  1241. const R =
  1242. ba.httpsDomains; if (!N(L)) return L; const X = L.indexOf("/", 7); let ta; ta = -1 === X ? L : L.slice(0, X); ta = ta.toLowerCase().slice(7); if (Ka.test(ta)) if (ta.endsWith(":80")) ta = ta.slice(0, -3), L = L.replace(":80", ""); else return L; if ("http" === Z.scheme && ta === Z.authority && !sa.test(L)) return L; if (G() && ta === Z.authority || R && R.some(Ca => ta === Ca || ta.endsWith(`.${Ca}`)) || G() && !p(L)) L = E(L); return L
  1243. } function fa(L) { if ("string" === typeof L) return new ya(u(L)); L.scheme || (L.scheme = Z.scheme); return L } const ha = e.getLogger("esri.core.urlUtils"),
  1244. ba = b.request, O = /^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i, na = /^\s*http:/i, ra = /^\s*https:/i, Da = /^\s*file:/i, Ka = /:\d+$/, sa = /^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i, W = /^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/, oa = /^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/; let ya = function () {
  1245. function L(R = "") {
  1246. this.uri = R; this.port = this.host = this.password = this.user = this.fragment = this.query = this.path = this.authority = this.scheme = null; R = d.assumeNonNull(this.uri.match(W)); this.scheme = R[2] ||
  1247. (R[1] ? "" : null); this.authority = R[4] || (R[3] ? "" : null); this.path = R[5]; this.query = R[7] || (R[6] ? "" : null); this.fragment = R[9] || (R[8] ? "" : null); null != this.authority && (R = d.assumeNonNull(this.authority.match(oa)), this.user = R[3] || null, this.password = R[4] || null, this.host = R[6] || R[7], this.port = R[9] || null)
  1248. } L.prototype.toString = function () { return this.uri }; return L
  1249. }(); const I = {}, P = new ya(b.applicationUrl); let Z = P; const Q = function () {
  1250. var L = d.assumeNonNull(Z.path); L = L.substring(0, L.lastIndexOf(L.split("/")[L.split("/").length -
  1251. 1])); return `${`${Z.scheme}://${Z.host}${null != Z.port ? `:${Z.port}` : ""}`}${L}`
  1252. }(); let V = Q; const da = { path: "", query: "" }, ea = /^data:(.*?)(;base64)?,(.*)$/, pa = /.*?\.([^\/]*)$/, la = /(^data:image\/svg|\.svg$)/i; a.Url = ya; a.addProxy = function (L) { var R = p(L), X = void 0; if (R) { var ta = m(R.proxyUrl); X = ta.path; ta = ta.query ? r(ta.query) : null } X && (R = l(L), L = X + "?" + R.path, (X = k({ ...ta, ...R.query })) && (L = `${L}?${X}`)); return L }; a.addProxyRule = function (L) {
  1253. L = { proxyUrl: L.proxyUrl, urlPrefix: g(L.urlPrefix) }; const R = ba.proxyRules, X = L.urlPrefix;
  1254. let ta = R.length; for (let Ca = 0; Ca < R.length; Ca++) { const Ha = R[Ca].urlPrefix; if (0 === X.indexOf(Ha)) { if (X.length === Ha.length) return -1; ta = Ca; break } 0 === Ha.indexOf(X) && (ta = Ca + 1) } R.splice(ta, 0, L); return ta
  1255. }; a.addQueryParameter = function (L, R, X) { L = l(L); const ta = L.query || {}; ta[R] = String(X); return `${L.path}?${k(ta)}` }; a.addQueryParameters = function (L, R) { L = l(L); const X = L.query || {}; for (const ta in R) X[ta] = R[ta]; return (R = k(X)) ? `${L.path}?${R}` : L.path }; a.base64UrlEncode = function (L) {
  1256. return btoa(String.fromCharCode.apply(null,
  1257. L)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "")
  1258. }; a.changeDomain = function (L, R, X) { if (!(R && X && L && y(L))) return L; const ta = L.indexOf("//"); var Ca = L.indexOf("/", ta + 2); const Ha = L.indexOf(":", ta + 2); Ca = Math.min(0 > Ca ? L.length : Ca, 0 > Ha ? L.length : Ha); if (L.slice(ta + 2, Ca).toLowerCase() !== R.toLowerCase()) return L; R = L.slice(0, ta + 2); L = L.slice(Ca); return `${R}${X}${L}` }; a.dataComponents = z; a.dataToArrayBuffer = x; a.dataToBlob = C; a.downloadBlobAsFile = function (L, R) { A(L, R) || D(L, R) }; a.downloadDataAsFile = function (L,
  1259. R) { var X = (X = C(L)) ? A(X, R) : !1; X || (L = C(L)) && D(L, R) }; a.getAppBaseUrl = () => V; a.getAppUrl = () => Z; a.getFilename = function (L, R) { if (!L) return ""; L = l(L).path.replace(/\/+$/, ""); L = L.substring(L.lastIndexOf("/") + 1); if (null == R || !R.length) return L; R = new RegExp(`.(${R.join("|")})$`, "ig"); return L.replace(R, "") }; a.getInterceptor = function (L) {
  1260. const R = ta => null == ta || ta instanceof RegExp && ta.test(L) || "string" === typeof ta && L.startsWith(ta), X = ba.interceptors; if (X) for (const ta of X) if (Array.isArray(ta.urls)) { if (ta.urls.some(R)) return ta } else if (R(ta.urls)) return ta;
  1261. return null
  1262. }; a.getOrigin = v; a.getPathExtension = function (L) { return d.isNone(L) ? null : (L = L.match(pa)) ? L[1] : null }; a.getProxyRule = p; a.getProxyUrl = function (L = !1) { let R, X = ba.proxyUrl; if ("string" === typeof L) { if (R = M(L), L = p(L)) X = L.proxyUrl } else R = !!L; if (!X) throw ha.warn("esri/config: esriConfig.request.proxyUrl is not set."), new c("urlutils:proxy-not-set", "esri/config: esriConfig.request.proxyUrl is not set."); R && G() && (X = E(X)); return l(X) }; a.hasProtocol = J; a.hasSameOrigin = n; a.hasSamePortal = function (L, R) {
  1263. L = t(L);
  1264. R = t(R); return H(L) === H(R)
  1265. }; a.isAbsolute = y; a.isAppHTTPS = G; a.isBlobProtocol = B; a.isDataProtocol = w; a.isHTTPSProtocol = M; a.isProtocolRelative = F; a.isSVG = function (L) { return la.test(L) }; a.isTrustedServer = function (L) { if ("string" === typeof L) if (y(L)) L = fa(L); else return !0; if (n(L, Z)) return !0; const R = ba.trustedServers || []; for (let ta = 0; ta < R.length; ta++) { var X = R[ta]; I[X] || (J(X) || F(X) ? I[X] = [new ya(u(X))] : I[X] = [new ya(`http://${X}`), new ya(`https://${X}`)]); X = I[X]; for (let Ca = 0; Ca < X.length; Ca++)if (n(L, X[Ca])) return !0 } return !1 };
  1266. a.join = h; a.makeAbsolute = u; a.makeData = function (L) { return L.isBase64 ? `data:${L.mediaType};base64,${L.data}` : `data:${L.mediaType},${L.data}` }; a.makeRelative = function (L, R = V, X) {
  1267. if (!y(L)) return L; var ta = f(L), Ca = ta.toLowerCase(); R = f(R).toLowerCase().replace(/\/+$/, ""); if ((X = X ? f(X).toLowerCase().replace(/\/+$/, "") : null) && 0 !== R.indexOf(X)) return L; var Ha = Ca.indexOf("//") + 2; Ha = Ca.indexOf("/", Ha); var Ra = -1 === Ha ? Ca.length : Ha; for (Ha = -1; Ca.slice(0, Ra + 1) === R.slice(0, Ra) + "/";) {
  1268. Ha = Ra + 1; if (Ra === Ca.length) break; var Ua =
  1269. Ca; Ra += 1; Ra = Ua.indexOf("/", Ra); Ra = -1 === Ra ? Ua.length : Ra
  1270. } if (-1 === Ha || X && Ha < X.length) return L; L = ta.slice(Ha); ta = R.slice(Ha - 1).replace(/[^/]+/g, "").length; if (0 < ta) for (Ca = 0; Ca < ta; Ca++)L = `../${L}`; else L = `./${L}`; return L
  1271. }; a.normalize = f; a.objectToQuery = k; a.queryToObject = r; a.removeFile = function (L) { let R = 0; if (y(L)) { var X = L.indexOf("//"); -1 !== X && (R = X + 2) } X = L.lastIndexOf("/"); return X < R ? L : L.slice(0, X + 1) }; a.removeQueryParameter = function (L, R) {
  1272. const { path: X, query: ta } = l(L); if (!ta) return L; delete ta[R]; return (L =
  1273. k(ta)) ? `${X}?${L}` : X
  1274. }; a.removeQueryParameters = function (L, R) { L = l(L); const X = Object.keys(L.query || {}); 0 < X.length && R && R.warn("removeQueryParameters()", `Url query parameters are not supported, the following parameters have been removed: ${X.join(", ")}.`); return L.path }; a.removeTrailingSlash = function (L) { return L.replace(/\/+$/, "") }; a.test = { setAppUrl: L => Z = L, setAppBaseUrl: L => V = L, restoreUrls: () => { Z = P; V = Q } }; a.toHTTP = function (L) { return F(L) ? `http:${L}` : L.replace(ra, "http:") }; a.toHTTPS = E; a.trustedServersUrlCache =
  1275. I; a.urlToObject = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1276. })
  1277. }, "esri/core/accessorSupport/decorators/writer": function () {
  1278. define(["exports", "./property"], function (a, b) {
  1279. a.writer = function (c, e, d) {
  1280. let l, r; void 0 === e ? (r = c, l = [void 0]) : "string" !== typeof e ? (r = c, l = [void 0], d = e) : (r = e, l = Array.isArray(c) ? c : [c]); return (q, k) => {
  1281. const m = q.constructor.prototype; for (const g of l) {
  1282. const p = b.propertyJSONMeta(q, g, r); p.write && "object" === typeof p.write || (p.write = {}); d && (p.write.target =
  1283. d); p.write.writer = m[k]
  1284. }
  1285. }
  1286. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1287. })
  1288. }, "esri/geometry/SpatialReference": function () {
  1289. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./support/spatialReferenceUtils".split(" "), function (a, b, c, e, d, l, r, q, k) {
  1290. var m;
  1291. c = m = function (g) {
  1292. function p(n) { n = g.call(this, n) || this; n.latestWkid = null; n.wkid = null; n.wkt = null; n.vcsWkid = null; n.latestVcsWkid = null; n.imageCoordinateSystem = null; return n } a._inheritsLoose(p, g); p.fromJSON = function (n) { if (!n) return null; if (n.wkid) { if (102100 === n.wkid) return m.WebMercator; if (4326 === n.wkid) return m.WGS84 } const u = new m; u.read(n); return u }; var t = p.prototype; t.normalizeCtorArgs = function (n) { return n && "object" === typeof n ? n : { ["string" === typeof n ? "wkt" : "wkid"]: n } }; t.writeWkt = function (n, u) {
  1293. this.wkid ||
  1294. (u.wkt = n)
  1295. }; t.clone = function () { if (this === m.WGS84) return m.WGS84; if (this === m.WebMercator) return m.WebMercator; const n = new m; null != this.wkid ? (n.wkid = this.wkid, null != this.latestWkid && (n.latestWkid = this.latestWkid), null != this.vcsWkid && (n.vcsWkid = this.vcsWkid), null != this.latestVcsWkid && (n.latestVcsWkid = this.latestVcsWkid)) : null != this.wkt && (n.wkt = this.wkt); this.imageCoordinateSystem && (n.imageCoordinateSystem = e.clone(this.imageCoordinateSystem)); return n }; t.equals = function (n) {
  1296. if (null == n) return !1; if (this.imageCoordinateSystem ||
  1297. n.imageCoordinateSystem) { if (null == this.imageCoordinateSystem || null == n.imageCoordinateSystem) return !1; const { id: u, referenceServiceName: f } = n.imageCoordinateSystem, { geodataXform: h } = n.imageCoordinateSystem, v = this.imageCoordinateSystem; return null == u || h ? JSON.stringify(v) === JSON.stringify(n.imageCoordinateSystem) : f ? v.id === u && v.referenceServiceName === f : v.id === u } return k.equals(this, n)
  1298. }; t.toJSON = function (n) { return this.write(void 0, n) }; a._createClass(p, [{ key: "isWGS84", get: function () { return k.isWGS84(this) } },
  1299. { key: "isWebMercator", get: function () { return k.isWebMercator(this) } }, { key: "isGeographic", get: function () { return k.isGeographic(this) } }, { key: "isWrappable", get: function () { return k.isWrappable(this) } }]); return p
  1300. }(c.JSONSupport); c.GCS_NAD_1927 = null; c.WGS84 = null; c.WebMercator = null; c.PlateCarree = null; b.__decorate([l.property({ readOnly: !0 })], c.prototype, "isWGS84", null); b.__decorate([l.property({ readOnly: !0 })], c.prototype, "isWebMercator", null); b.__decorate([l.property({ readOnly: !0 })], c.prototype, "isGeographic",
  1301. null); b.__decorate([l.property({ readOnly: !0 })], c.prototype, "isWrappable", null); b.__decorate([l.property({ type: d.Integer, json: { write: !0 } })], c.prototype, "latestWkid", void 0); b.__decorate([l.property({ type: d.Integer, json: { write: !0, origins: { "web-scene": { write: { overridePolicy() { return { isRequired: null === this.wkt ? !0 : !1 } } } } } } })], c.prototype, "wkid", void 0); b.__decorate([l.property({ type: String, json: { origins: { "web-scene": { write: { overridePolicy() { return { isRequired: null === this.wkid ? !0 : !1 } } } } } } })], c.prototype,
  1302. "wkt", void 0); b.__decorate([q.writer("wkt"), q.writer("web-scene", "wkt")], c.prototype, "writeWkt", null); b.__decorate([l.property({ type: d.Integer, json: { write: !0 } })], c.prototype, "vcsWkid", void 0); b.__decorate([l.property({ type: d.Integer, json: { write: !0 } })], c.prototype, "latestVcsWkid", void 0); b.__decorate([l.property()], c.prototype, "imageCoordinateSystem", void 0); c = m = b.__decorate([r.subclass("esri.geometry.SpatialReference")], c); c.prototype.toJSON.isDefaultToJSON = !0; c.GCS_NAD_1927 = new c({ wkid: 4267, wkt: 'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]' });
  1303. c.WGS84 = new c(k.WGS84); c.WebMercator = new c(k.WebMercator); c.PlateCarree = new c(k.PlateCarree); Object.freeze && (Object.freeze(c.GCS_NAD_1927), Object.freeze(c.WGS84), Object.freeze(c.WebMercator)); return c
  1304. })
  1305. }, "esri/geometry/support/spatialReferenceUtils": function () {
  1306. define(["exports", "../../core/maybe", "../../core/string", "./SupportedGCSWkids", "./WKIDUnitConversion"], function (a, b, c, e, d) {
  1307. function l(h) { return g(h) && null != h.wkid && !0 === p[h.wkid] } function r(h) {
  1308. return h === e.SupportedGCSWkids.GCSMARS2000 || h ===
  1309. e.SupportedGCSWkids.GCSMARS2000_SPHERE
  1310. } function q(h) { return g(h) && null != h.wkid && r(h.wkid) } function k(h) { return h === e.SupportedGCSWkids.GCSMOON2000 } function m(h) { return g(h) && null != h.wkid && k(h.wkid) } function g(h) { return b.isSome(h) && (null != h.wkid && 2E3 <= h.wkid || null != h.wkt) } const p = { 102113: !0, 102100: !0, 3857: !0, 3785: !0 }, t = { 4326: !0, 3785: !0, 3857: !0, 102113: !0, 102100: !0, 104905: !0, 104971: !0 }, n = [-2.0037508342788905E7, 2.0037508342788905E7], u = [-2.0037508342787E7, 2.0037508342787E7], f = {
  1311. 102113: {
  1312. wkTemplate: 'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',
  1313. valid: n, origin: u, dx: 1E-5
  1314. }, 102100: {
  1315. wkTemplate: 'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]', valid: n, origin: u,
  1316. dx: 1E-5
  1317. }, 3785: { wkTemplate: 'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]', valid: n, origin: u, dx: 1E-5 }, 3857: {
  1318. wkTemplate: 'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',
  1319. valid: n, origin: u, dx: 1E-5
  1320. }, 4326: {
  1321. wkTemplate: 'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]', altTemplate: 'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',
  1322. valid: [-180, 180], origin: [-180, 90], dx: 1E-5
  1323. }, 104971: { wkTemplate: 'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]', valid: [-180, 180], origin: [-180, 90], dx: 1E-5 }, 104905: {
  1324. wkTemplate: 'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]', valid: [-180, 180], origin: [-180, 90],
  1325. dx: 1E-5
  1326. }
  1327. }; c = { wkid: 4326, wkt: c.replace(f[4326].wkTemplate, { Central_Meridian: "0.0" }) }; a.PlateCarree = { wkid: 32662 }; a.WGS84 = c; a.WebMercator = { wkid: 102100, latestWkid: 3857 }; a.equals = function (h, v) { return b.isNone(h) || b.isNone(v) ? !1 : h === v ? !0 : null != h.wkid || null != v.wkid ? h.wkid === v.wkid || l(h) && l(v) || null != v.latestWkid && h.wkid === v.latestWkid || null != h.latestWkid && v.wkid === h.latestWkid : h.wkt && v.wkt ? h.wkt.toUpperCase() === v.wkt.toUpperCase() : !1 }; a.getInfo = function (h) { return g(h) && h.wkid ? f[h.wkid] || null : null }; a.isCGCS2000 =
  1328. function (h) { return g(h) && h.wkid === e.SupportedGCSWkids.CGCS2000 }; a.isEarth = function (h) { return !(q(h) || m(h)) }; a.isGeographic = function (h) { return g(h) ? h.wkid ? null == d[h.wkid] : h.wkt ? !!/^\s*GEOGCS/i.test(h.wkt) : !1 : !1 }; a.isMars = q; a.isMoon = m; a.isPlateCarree = function (h) { return g(h) && 32662 === h.wkid }; a.isValid = g; a.isWGS84 = function (h) { return g(h) && 4326 === h.wkid }; a.isWKIDFromMars = r; a.isWKIDFromMoon = k; a.isWebMercator = l; a.isWrappable = function (h) { return g(h) && null != h.wkid && !0 === t[h.wkid] }; Object.defineProperties(a,
  1329. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1330. })
  1331. }, "esri/geometry/support/SupportedGCSWkids": function () { define(["exports"], function (a) { a.SupportedGCSWkids = void 0; var b = a.SupportedGCSWkids || (a.SupportedGCSWkids = {}); b[b.CGCS2000 = 4490] = "CGCS2000"; b[b.GCSMARS2000 = 104971] = "GCSMARS2000"; b[b.GCSMARS2000_SPHERE = 104905] = "GCSMARS2000_SPHERE"; b[b.GCSMOON2000 = 104903] = "GCSMOON2000"; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/geometry/support/WKIDUnitConversion": function () {
  1332. define(function () {
  1333. let a;
  1334. const b = {
  1335. values: [1, .3048, .3048006096012192, .3047972654, .9143917962, .201166195164, .9143984146160287, .3047994715386762, 20.11676512155263, 20.11678249437587, .9143985307444408, .91439523, .3047997101815088, 20.1168, 20.116756, 5E4, 15E4], units: "Meter Foot Foot_US Foot_Clarke Yard_Clarke Link_Clarke Yard_Sears Foot_Sears Chain_Sears Chain_Benoit_1895_B Yard_Indian Yard_Indian_1937 Foot_Gold_Coast Chain Chain_Sears_1922_Truncated 50_Kilometers 150_Kilometers".split(" "), 2066: 5, 2136: 12, 2155: 2, 2157: 0, 2158: 0, 2159: 12,
  1336. 2160: 12, 2204: 2, 2219: 0, 2220: 0, 2254: 2, 2255: 2, 2256: 1, 2265: 1, 2266: 1, 2267: 2, 2268: 2, 2269: 1, 2270: 1, 2271: 2, 2272: 2, 2273: 1, 2294: 0, 2295: 0, 2314: 3, 2899: 2, 2900: 2, 2901: 1, 2909: 1, 2910: 1, 2911: 2, 2912: 2, 2913: 1, 2914: 1, 2992: 1, 2993: 0, 2994: 1, 3080: 1, 3089: 2, 3090: 0, 3091: 2, 3102: 2, 3141: 0, 3142: 0, 3167: 14, 3359: 2, 3360: 0, 3361: 1, 3362: 0, 3363: 2, 3364: 0, 3365: 2, 3366: 3, 3404: 2, 3405: 0, 3406: 0, 3407: 3, 3439: 0, 3440: 0, 3479: 1, 3480: 0, 3481: 1, 3482: 0, 3483: 1, 3484: 0, 3485: 2, 3486: 0, 3487: 2, 3488: 0, 3489: 0, 3490: 2, 3491: 0, 3492: 2, 3493: 0, 3494: 2, 3495: 0, 3496: 2, 3497: 0,
  1337. 3498: 2, 3499: 0, 3500: 2, 3501: 0, 3502: 2, 3503: 0, 3504: 2, 3505: 0, 3506: 2, 3507: 0, 3508: 2, 3509: 0, 3510: 2, 3511: 0, 3512: 2, 3513: 0, 3514: 0, 3515: 2, 3516: 0, 3517: 2, 3518: 0, 3519: 2, 3520: 0, 3521: 2, 3522: 0, 3523: 2, 3524: 0, 3525: 2, 3526: 0, 3527: 2, 3528: 0, 3529: 2, 3530: 0, 3531: 2, 3532: 0, 3533: 2, 3534: 0, 3535: 2, 3536: 0, 3537: 2, 3538: 0, 3539: 2, 3540: 0, 3541: 2, 3542: 0, 3543: 2, 3544: 0, 3545: 2, 3546: 0, 3547: 2, 3548: 0, 3549: 2, 3550: 0, 3551: 2, 3552: 0, 3553: 2, 3582: 2, 3583: 0, 3584: 2, 3585: 0, 3586: 2, 3587: 0, 3588: 1, 3589: 0, 3590: 1, 3591: 0, 3592: 0, 3593: 1, 3598: 2, 3599: 0, 3600: 2, 3605: 1,
  1338. 3606: 0, 3607: 0, 3608: 2, 3609: 0, 3610: 2, 3611: 0, 3612: 2, 3613: 0, 3614: 2, 3615: 0, 3616: 2, 3617: 0, 3618: 2, 3619: 0, 3620: 2, 3621: 0, 3622: 2, 3623: 0, 3624: 2, 3625: 0, 3626: 2, 3627: 0, 3628: 2, 3629: 0, 3630: 2, 3631: 0, 3632: 2, 3633: 0, 3634: 1, 3635: 0, 3636: 1, 3640: 2, 3641: 0, 3642: 2, 3643: 0, 3644: 1, 3645: 0, 3646: 1, 3647: 0, 3648: 1, 3649: 0, 3650: 2, 3651: 0, 3652: 2, 3653: 0, 3654: 2, 3655: 0, 3656: 1, 3657: 0, 3658: 2, 3659: 0, 3660: 2, 3661: 0, 3662: 2, 3663: 0, 3664: 2, 3668: 2, 3669: 0, 3670: 2, 3671: 0, 3672: 2, 3673: 0, 3674: 2, 3675: 0, 3676: 1, 3677: 2, 3678: 0, 3679: 1, 3680: 2, 3681: 0, 3682: 1, 3683: 2,
  1339. 3684: 0, 3685: 0, 3686: 2, 3687: 0, 3688: 2, 3689: 0, 3690: 2, 3691: 0, 3692: 2, 3696: 2, 3697: 0, 3698: 2, 3699: 0, 3700: 2, 3793: 0, 3794: 0, 3812: 0, 3854: 0, 3857: 0, 3920: 0, 3978: 0, 3979: 0, 3991: 2, 3992: 2, 4026: 0, 4037: 0, 4038: 0, 4071: 0, 4082: 0, 4083: 0, 4087: 0, 4088: 0, 4217: 2, 4414: 0, 4415: 0, 4417: 0, 4434: 0, 4437: 0, 4438: 2, 4439: 2, 4462: 0, 4467: 0, 4471: 0, 4474: 0, 4559: 0, 4647: 0, 4822: 0, 4826: 0, 4839: 0, 5018: 0, 5048: 0, 5167: 0, 5168: 0, 5221: 0, 5223: 0, 5234: 0, 5235: 0, 5243: 0, 5247: 0, 5266: 0, 5316: 0, 5320: 0, 5321: 0, 5325: 0, 5337: 0, 5361: 0, 5362: 0, 5367: 0, 5382: 0, 5383: 0, 5396: 0, 5456: 0,
  1340. 5457: 0, 5469: 0, 5472: 4, 5490: 0, 5513: 0, 5514: 0, 5523: 0, 5559: 0, 5588: 1, 5589: 3, 5596: 0, 5627: 0, 5629: 0, 5641: 0, 5643: 0, 5644: 0, 5646: 2, 5654: 2, 5655: 2, 5659: 0, 5700: 0, 5825: 0, 5836: 0, 5837: 0, 5839: 0, 5842: 0, 5844: 0, 5858: 0, 5879: 0, 5880: 0, 5887: 0, 5890: 0, 6128: 1, 6129: 1, 6141: 1, 6204: 0, 6210: 0, 6211: 0, 6307: 0, 6312: 0, 6316: 0, 6362: 0, 6391: 1, 6405: 1, 6406: 0, 6407: 1, 6408: 0, 6409: 1, 6410: 0, 6411: 2, 6412: 0, 6413: 2, 6414: 0, 6415: 0, 6416: 2, 6417: 0, 6418: 2, 6419: 0, 6420: 2, 6421: 0, 6422: 2, 6423: 0, 6424: 2, 6425: 0, 6426: 2, 6427: 0, 6428: 2, 6429: 0, 6430: 2, 6431: 0, 6432: 2, 6433: 0,
  1341. 6434: 2, 6435: 0, 6436: 2, 6437: 0, 6438: 2, 6439: 0, 6440: 0, 6441: 2, 6442: 0, 6443: 2, 6444: 0, 6445: 2, 6446: 0, 6447: 2, 6448: 0, 6449: 2, 6450: 0, 6451: 2, 6452: 0, 6453: 2, 6454: 0, 6455: 2, 6456: 0, 6457: 2, 6458: 0, 6459: 2, 6460: 0, 6461: 2, 6462: 0, 6463: 2, 6464: 0, 6465: 2, 6466: 0, 6467: 2, 6468: 0, 6469: 2, 6470: 0, 6471: 2, 6472: 0, 6473: 2, 6474: 0, 6475: 2, 6476: 0, 6477: 2, 6478: 0, 6479: 2, 6484: 2, 6485: 0, 6486: 2, 6487: 0, 6488: 2, 6489: 0, 6490: 2, 6491: 0, 6492: 2, 6493: 0, 6494: 1, 6495: 0, 6496: 1, 6497: 0, 6498: 0, 6499: 1, 6500: 0, 6501: 2, 6502: 0, 6503: 2, 6504: 0, 6505: 2, 6506: 0, 6507: 2, 6508: 0, 6509: 0,
  1342. 6510: 2, 6515: 1, 6516: 0, 6518: 0, 6519: 2, 6520: 0, 6521: 2, 6522: 0, 6523: 2, 6524: 0, 6525: 2, 6526: 0, 6527: 2, 6528: 0, 6529: 2, 6530: 0, 6531: 2, 6532: 0, 6533: 2, 6534: 0, 6535: 2, 6536: 0, 6537: 2, 6538: 0, 6539: 2, 6540: 0, 6541: 2, 6542: 0, 6543: 2, 6544: 0, 6545: 1, 6546: 0, 6547: 1, 6548: 0, 6549: 2, 6550: 0, 6551: 2, 6552: 0, 6553: 2, 6554: 0, 6555: 2, 6556: 0, 6557: 1, 6558: 0, 6559: 1, 6560: 0, 6561: 1, 6562: 0, 6563: 2, 6564: 0, 6565: 2, 6566: 0, 6567: 0, 6568: 2, 6569: 0, 6570: 1, 6571: 0, 6572: 2, 6573: 0, 6574: 2, 6575: 0, 6576: 2, 6577: 0, 6578: 2, 6582: 2, 6583: 0, 6584: 2, 6585: 0, 6586: 2, 6587: 0, 6588: 2, 6589: 0,
  1343. 6590: 2, 6591: 0, 6592: 0, 6593: 2, 6594: 0, 6595: 2, 6596: 0, 6597: 2, 6598: 0, 6599: 2, 6600: 0, 6601: 2, 6602: 0, 6603: 2, 6605: 2, 6606: 0, 6607: 2, 6608: 0, 6609: 2, 6610: 0, 6611: 0, 6612: 2, 6613: 0, 6614: 2, 6615: 0, 6616: 2, 6617: 0, 6618: 2, 6633: 2, 6646: 0, 6703: 0, 6784: 0, 6785: 1, 6786: 0, 6787: 1, 6788: 0, 6789: 1, 6790: 0, 6791: 1, 6792: 0, 6793: 1, 6794: 0, 6795: 1, 6796: 0, 6797: 1, 6798: 0, 6799: 1, 6800: 0, 6801: 1, 6802: 0, 6803: 1, 6804: 0, 6805: 1, 6806: 0, 6807: 1, 6808: 0, 6809: 1, 6810: 0, 6811: 1, 6812: 0, 6813: 1, 6814: 0, 6815: 1, 6816: 0, 6817: 1, 6818: 0, 6819: 1, 6820: 0, 6821: 1, 6822: 0, 6823: 1, 6824: 0,
  1344. 6825: 1, 6826: 0, 6827: 1, 6828: 0, 6829: 1, 6830: 0, 6831: 1, 6832: 0, 6833: 1, 6834: 0, 6835: 1, 6836: 0, 6837: 1, 6838: 0, 6839: 1, 6840: 0, 6841: 1, 6842: 0, 6843: 1, 6844: 0, 6845: 1, 6846: 0, 6847: 1, 6848: 0, 6849: 1, 6850: 0, 6851: 1, 6852: 0, 6853: 1, 6854: 0, 6855: 1, 6856: 0, 6857: 1, 6858: 0, 6859: 1, 6860: 0, 6861: 1, 6862: 0, 6863: 1, 6867: 0, 6868: 1, 6870: 0, 6875: 0, 6876: 0, 6879: 0, 6880: 2, 6884: 0, 6885: 1, 6886: 0, 6887: 1, 6915: 0, 6922: 0, 6923: 2, 6924: 0, 6925: 2, 6962: 0, 6984: 0, 6991: 0, 7128: 2, 7131: 0, 7132: 2, 7142: 0, 7257: 0, 7258: 2, 7259: 0, 7260: 2, 7261: 0, 7262: 2, 7263: 0, 7264: 2, 7265: 0, 7266: 2,
  1345. 7267: 0, 7268: 2, 7269: 0, 7270: 2, 7271: 0, 7272: 2, 7273: 0, 7274: 2, 7275: 0, 7276: 2, 7277: 0, 7278: 2, 7279: 0, 7280: 2, 7281: 0, 7282: 2, 7283: 0, 7284: 2, 7285: 0, 7286: 2, 7287: 0, 7288: 2, 7289: 0, 7290: 2, 7291: 0, 7292: 2, 7293: 0, 7294: 2, 7295: 0, 7296: 2, 7297: 0, 7298: 2, 7299: 0, 7300: 2, 7301: 0, 7302: 2, 7303: 0, 7304: 2, 7305: 0, 7306: 2, 7307: 0, 7308: 2, 7309: 0, 7310: 2, 7311: 0, 7312: 2, 7313: 0, 7314: 2, 7315: 0, 7316: 2, 7317: 0, 7318: 2, 7319: 0, 7320: 2, 7321: 0, 7322: 2, 7323: 0, 7324: 2, 7325: 0, 7326: 2, 7327: 0, 7328: 2, 7329: 0, 7330: 2, 7331: 0, 7332: 2, 7333: 0, 7334: 2, 7335: 0, 7336: 2, 7337: 0, 7338: 2,
  1346. 7339: 0, 7340: 2, 7341: 0, 7342: 2, 7343: 0, 7344: 2, 7345: 0, 7346: 2, 7347: 0, 7348: 2, 7349: 0, 7350: 2, 7351: 0, 7352: 2, 7353: 0, 7354: 2, 7355: 0, 7356: 2, 7357: 0, 7358: 2, 7359: 0, 7360: 2, 7361: 0, 7362: 2, 7363: 0, 7364: 2, 7365: 0, 7366: 2, 7367: 0, 7368: 2, 7369: 0, 7370: 2, 7877: 0, 7878: 0, 7882: 0, 7883: 0, 7887: 0, 7899: 0, 7991: 0, 7992: 0, 8035: 2, 8036: 2, 8058: 0, 8059: 0, 8082: 0, 8083: 0, 8088: 0, 8090: 0, 8091: 2, 8092: 0, 8093: 2, 8095: 0, 8096: 2, 8097: 0, 8098: 2, 8099: 0, 8100: 2, 8101: 0, 8102: 2, 8103: 0, 8104: 2, 8105: 0, 8106: 2, 8107: 0, 8108: 2, 8109: 0, 8110: 2, 8111: 0, 8112: 2, 8113: 0, 8114: 2, 8115: 0,
  1347. 8116: 2, 8117: 0, 8118: 2, 8119: 0, 8120: 2, 8121: 0, 8122: 2, 8123: 0, 8124: 2, 8125: 0, 8126: 2, 8127: 0, 8128: 2, 8129: 0, 8130: 2, 8131: 0, 8132: 2, 8133: 0, 8134: 2, 8135: 0, 8136: 2, 8137: 0, 8138: 2, 8139: 0, 8140: 2, 8141: 0, 8142: 2, 8143: 0, 8144: 2, 8145: 0, 8146: 2, 8147: 0, 8148: 2, 8149: 0, 8150: 2, 8151: 0, 8152: 2, 8153: 0, 8154: 2, 8155: 0, 8156: 2, 8157: 0, 8158: 2, 8159: 0, 8160: 2, 8161: 0, 8162: 2, 8163: 0, 8164: 2, 8165: 0, 8166: 2, 8167: 0, 8168: 2, 8169: 0, 8170: 2, 8171: 0, 8172: 2, 8173: 0, 8177: 2, 8179: 0, 8180: 2, 8181: 0, 8182: 2, 8184: 0, 8185: 2, 8187: 0, 8189: 2, 8191: 0, 8193: 2, 8196: 0, 8197: 2, 8198: 0,
  1348. 8200: 2, 8201: 0, 8202: 2, 8203: 0, 8204: 2, 8205: 0, 8206: 2, 8207: 0, 8208: 2, 8209: 0, 8210: 2, 8212: 0, 8213: 2, 8214: 0, 8216: 2, 8218: 0, 8220: 2, 8222: 0, 8224: 2, 8225: 0, 8226: 2, 8311: 0, 8312: 1, 8313: 0, 8314: 1, 8315: 0, 8316: 1, 8317: 0, 8318: 1, 8319: 0, 8320: 1, 8321: 0, 8322: 1, 8323: 0, 8324: 1, 8325: 0, 8326: 1, 8327: 0, 8328: 1, 8329: 0, 8330: 1, 8331: 0, 8332: 1, 8333: 0, 8334: 1, 8335: 0, 8336: 1, 8337: 0, 8338: 1, 8339: 0, 8340: 1, 8341: 0, 8342: 1, 8343: 0, 8344: 1, 8345: 0, 8346: 1, 8347: 0, 8348: 1, 8352: 0, 8353: 0, 8379: 0, 8380: 2, 8381: 0, 8382: 2, 8383: 0, 8384: 2, 8385: 0, 8387: 2, 8391: 0, 8395: 0, 8433: 0,
  1349. 8441: 0, 8455: 0, 8456: 0, 8531: 2, 8682: 0, 8686: 0, 8687: 0, 8692: 0, 8693: 0, 8826: 0, 8903: 0, 8950: 0, 8951: 0, 9039: 0, 9040: 0, 9141: 0, 9149: 0, 9150: 0, 9191: 0, 9221: 0, 9222: 0, 9249: 0, 9250: 0, 9252: 0, 9254: 0, 9265: 0, 9284: 0, 9285: 0, 9300: 0, 9354: 0, 9367: 0, 9373: 0, 9377: 0, 9387: 0, 9391: 0, 9456: 0, 9473: 0, 9498: 0, 9674: 0, 9678: 0, 9680: 0, 9709: 0, 9712: 0, 9713: 0, 9716: 0, 9741: 0, 9748: 2, 9749: 2, 9761: 0, 9766: 0, 20499: 0, 20538: 0, 20539: 0, 20790: 0, 20791: 0, 21291: 0, 21292: 0, 21500: 0, 21817: 0, 21818: 0, 22032: 0, 22033: 0, 22091: 0, 22092: 0, 22332: 0, 22391: 0, 22392: 0, 22700: 0, 22770: 0,
  1350. 22780: 0, 22832: 0, 23090: 0, 23095: 0, 23239: 0, 23240: 0, 23433: 0, 23700: 0, 24047: 0, 24048: 0, 24100: 3, 24200: 0, 24305: 0, 24306: 0, 24382: 10, 24383: 0, 24500: 0, 24547: 0, 24548: 0, 24571: 9, 24600: 0, 25E3: 0, 25231: 0, 25884: 0, 25932: 0, 26237: 0, 26331: 0, 26332: 0, 26432: 0, 26591: 0, 26592: 0, 26632: 0, 26692: 0, 27120: 0, 27200: 0, 27291: 6, 27292: 6, 27429: 0, 27492: 0, 27493: 0, 27500: 0, 27700: 0, 28232: 0, 28600: 0, 28991: 0, 28992: 0, 29100: 0, 29101: 0, 29220: 0, 29221: 0, 29333: 0, 29635: 0, 29636: 0, 29701: 0, 29738: 0, 29739: 0, 29849: 0, 29850: 0, 29871: 8, 29872: 7, 29873: 0, 29874: 0, 30200: 5,
  1351. 30339: 0, 30340: 0, 30591: 0, 30592: 0, 30791: 0, 30792: 0, 30800: 0, 31028: 0, 31121: 0, 31154: 0, 31170: 0, 31171: 0, 31370: 0, 31528: 0, 31529: 0, 31600: 0, 31700: 0, 31838: 0, 31839: 0, 31900: 0, 31901: 0, 32061: 0, 32062: 0, 32098: 0, 32099: 2, 32100: 0, 32104: 0, 32161: 0, 32766: 0, 53048: 0, 53049: 0, 54090: 0, 54091: 0, 65061: 2, 65062: 2, 65161: 0, 65163: 0, 102041: 2, 102064: 11, 102068: 15, 102069: 16, 102118: 2, 102119: 1, 102120: 2, 102121: 2, 102217: 2, 102218: 0, 102219: 2, 102220: 2, 102378: 1, 102379: 1, 102380: 0, 102381: 1, 102589: 2, 102599: 2, 102600: 2, 102604: 2, 102647: 0, 102704: 2, 102705: 2,
  1352. 102706: 0, 102759: 1, 102760: 1, 102761: 2, 102762: 0, 102763: 2, 102764: 0, 102765: 0, 102766: 2, 102970: 1, 102974: 2, 102993: 0, 102994: 0, 102995: 2, 102996: 2, 103015: 0, 103016: 2, 103017: 0, 103018: 2, 103025: 0, 103026: 0, 103027: 2, 103028: 2, 103035: 0, 103036: 0, 103037: 2, 103038: 2, 103039: 0, 103040: 0, 103041: 2, 103042: 2, 103043: 0, 103044: 0, 103045: 2, 103046: 2, 103047: 0, 103048: 0, 103049: 2, 103050: 2, 103051: 0, 103052: 2, 103053: 0, 103054: 2, 103055: 0, 103056: 2, 103057: 0, 103058: 0, 103059: 2, 103060: 2, 103061: 0, 103062: 0, 103063: 2, 103064: 2, 103069: 2, 103070: 0, 103071: 0,
  1353. 103072: 2, 103073: 2, 103086: 0, 103087: 0, 103088: 2, 103089: 2, 103094: 1, 103095: 0, 103096: 2, 103103: 0, 103104: 2, 103105: 0, 103106: 2, 103121: 0, 103122: 2, 103123: 0, 103124: 0, 103125: 1, 103126: 1, 103127: 0, 103128: 0, 103129: 2, 103130: 2, 103131: 0, 103132: 0, 103133: 2, 103134: 2, 103135: 0, 103136: 0, 103137: 1, 103138: 1, 103139: 0, 103140: 2, 103141: 0, 103142: 2, 103143: 0, 103144: 2, 103145: 0, 103146: 1, 103147: 0, 103148: 0, 103149: 2, 103150: 2, 103151: 0, 103152: 2, 103172: 0, 103173: 2, 103174: 0, 103175: 0, 103176: 2, 103177: 2, 103178: 0, 103179: 0, 103180: 2, 103181: 2, 103182: 0,
  1354. 103183: 0, 103184: 2, 103185: 2, 103228: 0, 103229: 0, 103230: 2, 103231: 2, 103250: 0, 103251: 2, 103252: 0, 103253: 2, 103260: 0, 103261: 0, 103262: 2, 103263: 2, 103270: 0, 103271: 0, 103272: 2, 103273: 2, 103274: 0, 103275: 0, 103276: 2, 103277: 2, 103278: 0, 103279: 0, 103280: 2, 103281: 2, 103282: 0, 103283: 0, 103284: 2, 103285: 2, 103286: 0, 103287: 2, 103288: 0, 103289: 2, 103290: 0, 103291: 2, 103292: 0, 103293: 0, 103294: 2, 103295: 2, 103296: 0, 103297: 0, 103298: 2, 103299: 2, 103376: 2, 103377: 0, 103378: 0, 103379: 2, 103380: 2, 103393: 0, 103394: 0, 103395: 2, 103396: 2, 103472: 0, 103473: 1,
  1355. 103474: 0, 103475: 2, 103482: 0, 103483: 2, 103484: 0, 103485: 2, 103500: 0, 103501: 2, 103502: 0, 103503: 0, 103504: 1, 103505: 1, 103506: 0, 103507: 0, 103508: 2, 103509: 2, 103510: 0, 103511: 0, 103512: 2, 103513: 2, 103514: 0, 103515: 2, 103516: 0, 103517: 2, 103518: 0, 103519: 2, 103520: 0, 103521: 1, 103522: 0, 103523: 0, 103524: 2, 103525: 2, 103526: 0, 103527: 2, 103561: 2, 103562: 2, 103563: 0, 103564: 0, 103565: 2, 103566: 2, 103567: 0, 103568: 0, 103569: 2, 103570: 2, 103584: 0, 103585: 2, 103586: 0, 103587: 2, 103588: 1, 103589: 0, 103590: 2, 103591: 1, 103592: 0, 103593: 2, 103594: 1, 103695: 2
  1356. };
  1357. for (a = 2E3; 2045 >= a; a++)b[a] = 0; for (a = 2056; 2065 >= a; a++)b[a] = 0; for (a = 2067; 2135 >= a; a++)b[a] = 0; for (a = 2137; 2154 >= a; a++)b[a] = 0; for (a = 2161; 2170 >= a; a++)b[a] = 0; for (a = 2172; 2193 >= a; a++)b[a] = 0; for (a = 2195; 2198 >= a; a++)b[a] = 0; for (a = 2200; 2203 >= a; a++)b[a] = 0; for (a = 2205; 2217 >= a; a++)b[a] = 0; for (a = 2222; 2224 >= a; a++)b[a] = 1; for (a = 2225; 2250 >= a; a++)b[a] = 2; for (a = 2251; 2253 >= a; a++)b[a] = 1; for (a = 2257; 2264 >= a; a++)b[a] = 2; for (a = 2274; 2279 >= a; a++)b[a] = 2; for (a = 2280; 2282 >= a; a++)b[a] = 1; for (a = 2283; 2289 >= a; a++)b[a] = 2; for (a = 2290; 2292 >= a; a++)b[a] =
  1358. 0; for (a = 2308; 2313 >= a; a++)b[a] = 0; for (a = 2315; 2491 >= a; a++)b[a] = 0; for (a = 2494; 2866 >= a; a++)b[a] = 0; for (a = 2867; 2869 >= a; a++)b[a] = 1; for (a = 2870; 2888 >= a; a++)b[a] = 2; for (a = 2891; 2895 >= a; a++)b[a] = 2; for (a = 2896; 2898 >= a; a++)b[a] = 1; for (a = 2902; 2908 >= a; a++)b[a] = 2; for (a = 2915; 2920 >= a; a++)b[a] = 2; for (a = 2921; 2923 >= a; a++)b[a] = 1; for (a = 2924; 2930 >= a; a++)b[a] = 2; for (a = 2931; 2962 >= a; a++)b[a] = 0; for (a = 2964; 2968 >= a; a++)b[a] = 2; for (a = 2969; 2973 >= a; a++)b[a] = 0; for (a = 2975; 2991 >= a; a++)b[a] = 0; for (a = 2995; 3051 >= a; a++)b[a] = 0; for (a = 3054; 3079 >= a; a++)b[a] =
  1359. 0; for (a = 3081; 3088 >= a; a++)b[a] = 0; for (a = 3092; 3101 >= a; a++)b[a] = 0; for (a = 3106; 3138 >= a; a++)b[a] = 0; for (a = 3146; 3151 >= a; a++)b[a] = 0; for (a = 3153; 3166 >= a; a++)b[a] = 0; for (a = 3168; 3172 >= a; a++)b[a] = 0; for (a = 3174; 3203 >= a; a++)b[a] = 0; for (a = 3294; 3358 >= a; a++)b[a] = 0; for (a = 3367; 3403 >= a; a++)b[a] = 0; for (a = 3408; 3416 >= a; a++)b[a] = 0; for (a = 3417; 3438 >= a; a++)b[a] = 2; for (a = 3441; 3446 >= a; a++)b[a] = 2; for (a = 3447; 3450 >= a; a++)b[a] = 0; for (a = 3451; 3459 >= a; a++)b[a] = 2; for (a = 3460; 3478 >= a; a++)b[a] = 0; for (a = 3554; 3559 >= a; a++)b[a] = 0; for (a = 3560; 3570 >= a; a++)b[a] =
  1360. 2; for (a = 3571; 3581 >= a; a++)b[a] = 0; for (a = 3594; 3597 >= a; a++)b[a] = 0; for (a = 3601; 3604 >= a; a++)b[a] = 0; for (a = 3637; 3639 >= a; a++)b[a] = 0; for (a = 3665; 3667 >= a; a++)b[a] = 0; for (a = 3693; 3695 >= a; a++)b[a] = 0; for (a = 3701; 3727 >= a; a++)b[a] = 0; for (a = 3728; 3739 >= a; a++)b[a] = 2; for (a = 3740; 3751 >= a; a++)b[a] = 0; for (a = 3753; 3760 >= a; a++)b[a] = 2; for (a = 3761; 3773 >= a; a++)b[a] = 0; for (a = 3775; 3777 >= a; a++)b[a] = 0; for (a = 3779; 3781 >= a; a++)b[a] = 0; for (a = 3783; 3785 >= a; a++)b[a] = 0; for (a = 3788; 3791 >= a; a++)b[a] = 0; for (a = 3797; 3802 >= a; a++)b[a] = 0; for (a = 3814; 3816 >= a; a++)b[a] =
  1361. 0; for (a = 3825; 3829 >= a; a++)b[a] = 0; for (a = 3832; 3841 >= a; a++)b[a] = 0; for (a = 3844; 3852 >= a; a++)b[a] = 0; for (a = 3873; 3885 >= a; a++)b[a] = 0; for (a = 3890; 3893 >= a; a++)b[a] = 0; for (a = 3907; 3912 >= a; a++)b[a] = 0; for (a = 3942; 3950 >= a; a++)b[a] = 0; for (a = 3968; 3970 >= a; a++)b[a] = 0; for (a = 3973; 3976 >= a; a++)b[a] = 0; for (a = 3986; 3989 >= a; a++)b[a] = 0; for (a = 3994; 3997 >= a; a++)b[a] = 0; for (a = 4048; 4051 >= a; a++)b[a] = 0; for (a = 4056; 4063 >= a; a++)b[a] = 0; for (a = 4093; 4096 >= a; a++)b[a] = 0; for (a = 4390; 4398 >= a; a++)b[a] = 0; for (a = 4399; 4413 >= a; a++)b[a] = 2; for (a = 4418; 4433 >= a; a++)b[a] =
  1362. 2; for (a = 4455; 4457 >= a; a++)b[a] = 2; for (a = 4484; 4489 >= a; a++)b[a] = 0; for (a = 4491; 4554 >= a; a++)b[a] = 0; for (a = 4568; 4589 >= a; a++)b[a] = 0; for (a = 4652; 4656 >= a; a++)b[a] = 0; for (a = 4766; 4800 >= a; a++)b[a] = 0; for (a = 5014; 5016 >= a; a++)b[a] = 0; for (a = 5069; 5072 >= a; a++)b[a] = 0; for (a = 5105; 5130 >= a; a++)b[a] = 0; for (a = 5173; 5188 >= a; a++)b[a] = 0; for (a = 5253; 5259 >= a; a++)b[a] = 0; for (a = 5269; 5275 >= a; a++)b[a] = 0; for (a = 5292; 5311 >= a; a++)b[a] = 0; for (a = 5329; 5331 >= a; a++)b[a] = 0; for (a = 5343; 5349 >= a; a++)b[a] = 0; for (a = 5355; 5357 >= a; a++)b[a] = 0; for (a = 5387; 5389 >= a; a++)b[a] =
  1363. 0; for (a = 5459; 5463 >= a; a++)b[a] = 0; for (a = 5479; 5482 >= a; a++)b[a] = 0; for (a = 5518; 5520 >= a; a++)b[a] = 0; for (a = 5530; 5539 >= a; a++)b[a] = 0; for (a = 5550; 5552 >= a; a++)b[a] = 0; for (a = 5562; 5583 >= a; a++)b[a] = 0; for (a = 5623; 5625 >= a; a++)b[a] = 2; for (a = 5631; 5639 >= a; a++)b[a] = 0; for (a = 5649; 5653 >= a; a++)b[a] = 0; for (a = 5663; 5680 >= a; a++)b[a] = 0; for (a = 5682; 5685 >= a; a++)b[a] = 0; for (a = 5875; 5877 >= a; a++)b[a] = 0; for (a = 5896; 5899 >= a; a++)b[a] = 0; for (a = 5921; 5940 >= a; a++)b[a] = 0; for (a = 6050; 6125 >= a; a++)b[a] = 0; for (a = 6244; 6275 >= a; a++)b[a] = 0; for (a = 6328; 6348 >= a; a++)b[a] =
  1364. 0; for (a = 6350; 6356 >= a; a++)b[a] = 0; for (a = 6366; 6372 >= a; a++)b[a] = 0; for (a = 6381; 6387 >= a; a++)b[a] = 0; for (a = 6393; 6404 >= a; a++)b[a] = 0; for (a = 6480; 6483 >= a; a++)b[a] = 0; for (a = 6511; 6514 >= a; a++)b[a] = 0; for (a = 6579; 6581 >= a; a++)b[a] = 0; for (a = 6619; 6624 >= a; a++)b[a] = 0; for (a = 6625; 6627 >= a; a++)b[a] = 2; for (a = 6628; 6632 >= a; a++)b[a] = 0; for (a = 6634; 6637 >= a; a++)b[a] = 0; for (a = 6669; 6692 >= a; a++)b[a] = 0; for (a = 6707; 6709 >= a; a++)b[a] = 0; for (a = 6720; 6723 >= a; a++)b[a] = 0; for (a = 6732; 6738 >= a; a++)b[a] = 0; for (a = 6931; 6933 >= a; a++)b[a] = 0; for (a = 6956; 6959 >= a; a++)b[a] =
  1365. 0; for (a = 7005; 7007 >= a; a++)b[a] = 0; for (a = 7057; 7070 >= a; a++)b[a] = 2; for (a = 7074; 7082 >= a; a++)b[a] = 0; for (a = 7109; 7118 >= a; a++)b[a] = 0; for (a = 7119; 7127 >= a; a++)b[a] = 1; for (a = 7374; 7376 >= a; a++)b[a] = 0; for (a = 7528; 7586 >= a; a++)b[a] = 0; for (a = 7587; 7645 >= a; a++)b[a] = 2; for (a = 7692; 7696 >= a; a++)b[a] = 0; for (a = 7755; 7787 >= a; a++)b[a] = 0; for (a = 7791; 7795 >= a; a++)b[a] = 0; for (a = 7799; 7801 >= a; a++)b[a] = 0; for (a = 7803; 7805 >= a; a++)b[a] = 0; for (a = 7825; 7831 >= a; a++)b[a] = 0; for (a = 7845; 7859 >= a; a++)b[a] = 0; for (a = 8013; 8032 >= a; a++)b[a] = 0; for (a = 8065; 8068 >= a; a++)b[a] =
  1366. 1; for (a = 8518; 8529 >= a; a++)b[a] = 2; for (a = 8533; 8536 >= a; a++)b[a] = 2; for (a = 8538; 8540 >= a; a++)b[a] = 2; for (a = 8677; 8679 >= a; a++)b[a] = 0; for (a = 8836; 8840 >= a; a++)b[a] = 0; for (a = 8857; 8859 >= a; a++)b[a] = 0; for (a = 8908; 8910 >= a; a++)b[a] = 0; for (a = 9154; 9159 >= a; a++)b[a] = 0; for (a = 9205; 9218 >= a; a++)b[a] = 0; for (a = 9271; 9273 >= a; a++)b[a] = 0; for (a = 9295; 9297 >= a; a++)b[a] = 0; for (a = 9356; 9360 >= a; a++)b[a] = 0; for (a = 9404; 9407 >= a; a++)b[a] = 0; for (a = 9476; 9482 >= a; a++)b[a] = 0; for (a = 9487; 9494 >= a; a++)b[a] = 0; for (a = 9697; 9699 >= a; a++)b[a] = 0; for (a = 20002; 20032 >=
  1367. a; a++)b[a] = 0; for (a = 20062; 20092 >= a; a++)b[a] = 0; for (a = 20135; 20138 >= a; a++)b[a] = 0; for (a = 20248; 20258 >= a; a++)b[a] = 0; for (a = 20348; 20358 >= a; a++)b[a] = 0; for (a = 20436; 20440 >= a; a++)b[a] = 0; for (a = 20822; 20824 >= a; a++)b[a] = 0; for (a = 20904; 20932 >= a; a++)b[a] = 0; for (a = 20934; 20936 >= a; a++)b[a] = 0; for (a = 21004; 21032 >= a; a++)b[a] = 0; for (a = 21035; 21037 >= a; a++)b[a] = 0; for (a = 21095; 21097 >= a; a++)b[a] = 0; for (a = 21148; 21150 >= a; a++)b[a] = 0; for (a = 21207; 21264 >= a; a++)b[a] = 0; for (a = 21307; 21364 >= a; a++)b[a] = 0; for (a = 21413; 21423 >= a; a++)b[a] = 0; for (a = 21453; 21463 >=
  1368. a; a++)b[a] = 0; for (a = 21473; 21483 >= a; a++)b[a] = 0; for (a = 21780; 21782 >= a; a++)b[a] = 0; for (a = 21891; 21894 >= a; a++)b[a] = 0; for (a = 21896; 21899 >= a; a++)b[a] = 0; for (a = 22171; 22177 >= a; a++)b[a] = 0; for (a = 22181; 22187 >= a; a++)b[a] = 0; for (a = 22191; 22197 >= a; a++)b[a] = 0; for (a = 22234; 22236 >= a; a++)b[a] = 0; for (a = 22521; 22525 >= a; a++)b[a] = 0; for (a = 22991; 22994 >= a; a++)b[a] = 0; for (a = 23028; 23038 >= a; a++)b[a] = 0; for (a = 23830; 23853 >= a; a++)b[a] = 0; for (a = 23866; 23872 >= a; a++)b[a] = 0; for (a = 23877; 23884 >= a; a++)b[a] = 0; for (a = 23886; 23894 >= a; a++)b[a] = 0; for (a = 23946; 23948 >=
  1369. a; a++)b[a] = 0; for (a = 24311; 24313 >= a; a++)b[a] = 0; for (a = 24342; 24347 >= a; a++)b[a] = 0; for (a = 24370; 24374 >= a; a++)b[a] = 10; for (a = 24375; 24381 >= a; a++)b[a] = 0; for (a = 24718; 24721 >= a; a++)b[a] = 0; for (a = 24817; 24821 >= a; a++)b[a] = 0; for (a = 24877; 24882 >= a; a++)b[a] = 0; for (a = 24891; 24893 >= a; a++)b[a] = 0; for (a = 25391; 25395 >= a; a++)b[a] = 0; for (a = 25828; 25838 >= a; a++)b[a] = 0; for (a = 26191; 26195 >= a; a++)b[a] = 0; for (a = 26391; 26393 >= a; a++)b[a] = 0; for (a = 26701; 26722 >= a; a++)b[a] = 0; for (a = 26729; 26799 >= a; a++)b[a] = 2; for (a = 26801; 26803 >= a; a++)b[a] = 2; for (a = 26811; 26813 >=
  1370. a; a++)b[a] = 2; for (a = 26847; 26870 >= a; a++)b[a] = 2; for (a = 26891; 26899 >= a; a++)b[a] = 0; for (a = 26901; 26923 >= a; a++)b[a] = 0; for (a = 26929; 26946 >= a; a++)b[a] = 0; for (a = 26948; 26998 >= a; a++)b[a] = 0; for (a = 27037; 27040 >= a; a++)b[a] = 0; for (a = 27205; 27232 >= a; a++)b[a] = 0; for (a = 27258; 27260 >= a; a++)b[a] = 0; for (a = 27391; 27398 >= a; a++)b[a] = 0; for (a = 27561; 27564 >= a; a++)b[a] = 0; for (a = 27571; 27574 >= a; a++)b[a] = 0; for (a = 27581; 27584 >= a; a++)b[a] = 0; for (a = 27591; 27594 >= a; a++)b[a] = 0; for (a = 28191; 28193 >= a; a++)b[a] = 0; for (a = 28348; 28358 >= a; a++)b[a] = 0; for (a = 28402; 28432 >=
  1371. a; a++)b[a] = 0; for (a = 28462; 28492 >= a; a++)b[a] = 0; for (a = 29118; 29122 >= a; a++)b[a] = 0; for (a = 29168; 29172 >= a; a++)b[a] = 0; for (a = 29177; 29185 >= a; a++)b[a] = 0; for (a = 29187; 29195 >= a; a++)b[a] = 0; for (a = 29900; 29903 >= a; a++)b[a] = 0; for (a = 30161; 30179 >= a; a++)b[a] = 0; for (a = 30491; 30494 >= a; a++)b[a] = 0; for (a = 30729; 30732 >= a; a++)b[a] = 0; for (a = 31251; 31259 >= a; a++)b[a] = 0; for (a = 31265; 31268 >= a; a++)b[a] = 0; for (a = 31275; 31279 >= a; a++)b[a] = 0; for (a = 31281; 31297 >= a; a++)b[a] = 0; for (a = 31461; 31469 >= a; a++)b[a] = 0; for (a = 31491; 31495 >= a; a++)b[a] = 0; for (a = 31917; 31922 >=
  1372. a; a++)b[a] = 0; for (a = 31965; 32E3 >= a; a++)b[a] = 0; for (a = 32001; 32003 >= a; a++)b[a] = 2; for (a = 32005; 32031 >= a; a++)b[a] = 2; for (a = 32033; 32060 >= a; a++)b[a] = 2; for (a = 32064; 32067 >= a; a++)b[a] = 2; for (a = 32074; 32077 >= a; a++)b[a] = 2; for (a = 32081; 32086 >= a; a++)b[a] = 0; for (a = 32107; 32130 >= a; a++)b[a] = 0; for (a = 32133; 32158 >= a; a++)b[a] = 0; for (a = 32164; 32167 >= a; a++)b[a] = 2; for (a = 32180; 32199 >= a; a++)b[a] = 0; for (a = 32201; 32260 >= a; a++)b[a] = 0; for (a = 32301; 32360 >= a; a++)b[a] = 0; for (a = 32601; 32662 >= a; a++)b[a] = 0; for (a = 32664; 32667 >= a; a++)b[a] = 2; for (a = 32701; 32761 >=
  1373. a; a++)b[a] = 0; for (a = 53001; 53004 >= a; a++)b[a] = 0; for (a = 53008; 53019 >= a; a++)b[a] = 0; for (a = 53021; 53032 >= a; a++)b[a] = 0; for (a = 53034; 53037 >= a; a++)b[a] = 0; for (a = 53042; 53046 >= a; a++)b[a] = 0; for (a = 53074; 53080 >= a; a++)b[a] = 0; for (a = 54001; 54004 >= a; a++)b[a] = 0; for (a = 54008; 54019 >= a; a++)b[a] = 0; for (a = 54021; 54032 >= a; a++)b[a] = 0; for (a = 54034; 54037 >= a; a++)b[a] = 0; for (a = 54042; 54046 >= a; a++)b[a] = 0; for (a = 54048; 54053 >= a; a++)b[a] = 0; for (a = 54074; 54080 >= a; a++)b[a] = 0; for (a = 54098; 54101 >= a; a++)b[a] = 0; for (a = 102001; 102040 >= a; a++)b[a] = 0; for (a =
  1374. 102042; 102063 >= a; a++)b[a] = 0; for (a = 102065; 102067 >= a; a++)b[a] = 0; for (a = 102070; 102117 >= a; a++)b[a] = 0; for (a = 102122; 102216 >= a; a++)b[a] = 0; for (a = 102221; 102377 >= a; a++)b[a] = 0; for (a = 102382; 102388 >= a; a++)b[a] = 0; for (a = 102389; 102398 >= a; a++)b[a] = 2; for (a = 102399; 102444 >= a; a++)b[a] = 0; for (a = 102445; 102447 >= a; a++)b[a] = 2; for (a = 102448; 102458 >= a; a++)b[a] = 0; for (a = 102459; 102468 >= a; a++)b[a] = 2; for (a = 102469; 102499 >= a; a++)b[a] = 0; for (a = 102500; 102519 >= a; a++)b[a] = 1; for (a = 102520; 102524 >= a; a++)b[a] = 0; for (a = 102525; 102529 >= a; a++)b[a] =
  1375. 2; for (a = 102530; 102588 >= a; a++)b[a] = 0; for (a = 102590; 102598 >= a; a++)b[a] = 0; for (a = 102601; 102603 >= a; a++)b[a] = 0; for (a = 102605; 102628 >= a; a++)b[a] = 0; for (a = 102629; 102646 >= a; a++)b[a] = 2; for (a = 102648; 102700 >= a; a++)b[a] = 2; for (a = 102701; 102703 >= a; a++)b[a] = 0; for (a = 102707; 102730 >= a; a++)b[a] = 2; for (a = 102733; 102758 >= a; a++)b[a] = 2; for (a = 102767; 102900 >= a; a++)b[a] = 0; for (a = 102901; 102933 >= a; a++)b[a] = 2; for (a = 102934; 102950 >= a; a++)b[a] = 13; for (a = 102951; 102955 >= a; a++)b[a] = 0; for (a = 102961; 102963 >= a; a++)b[a] = 0; for (a = 102965; 102969 >= a; a++)b[a] =
  1376. 0; for (a = 102971; 102973 >= a; a++)b[a] = 0; for (a = 102975; 102989 >= a; a++)b[a] = 0; for (a = 102990; 102992 >= a; a++)b[a] = 1; for (a = 102997; 103002 >= a; a++)b[a] = 0; for (a = 103003; 103008 >= a; a++)b[a] = 2; for (a = 103009; 103011 >= a; a++)b[a] = 0; for (a = 103012; 103014 >= a; a++)b[a] = 2; for (a = 103019; 103021 >= a; a++)b[a] = 0; for (a = 103022; 103024 >= a; a++)b[a] = 2; for (a = 103029; 103031 >= a; a++)b[a] = 0; for (a = 103032; 103034 >= a; a++)b[a] = 2; for (a = 103065; 103068 >= a; a++)b[a] = 0; for (a = 103074; 103076 >= a; a++)b[a] = 0; for (a = 103077; 103079 >= a; a++)b[a] = 1; for (a = 103080; 103082 >= a; a++)b[a] =
  1377. 0; for (a = 103083; 103085 >= a; a++)b[a] = 2; for (a = 103090; 103093 >= a; a++)b[a] = 0; for (a = 103097; 103099 >= a; a++)b[a] = 0; for (a = 103100; 103102 >= a; a++)b[a] = 2; for (a = 103107; 103109 >= a; a++)b[a] = 0; for (a = 103110; 103112 >= a; a++)b[a] = 2; for (a = 103113; 103116 >= a; a++)b[a] = 0; for (a = 103117; 103120 >= a; a++)b[a] = 2; for (a = 103153; 103157 >= a; a++)b[a] = 0; for (a = 103158; 103162 >= a; a++)b[a] = 2; for (a = 103163; 103165 >= a; a++)b[a] = 0; for (a = 103166; 103168 >= a; a++)b[a] = 1; for (a = 103169; 103171 >= a; a++)b[a] = 2; for (a = 103186; 103188 >= a; a++)b[a] = 0; for (a = 103189; 103191 >= a; a++)b[a] =
  1378. 2; for (a = 103192; 103195 >= a; a++)b[a] = 0; for (a = 103196; 103199 >= a; a++)b[a] = 2; for (a = 103200; 103224 >= a; a++)b[a] = 0; for (a = 103225; 103227 >= a; a++)b[a] = 1; for (a = 103232; 103237 >= a; a++)b[a] = 0; for (a = 103238; 103243 >= a; a++)b[a] = 2; for (a = 103244; 103246 >= a; a++)b[a] = 0; for (a = 103247; 103249 >= a; a++)b[a] = 2; for (a = 103254; 103256 >= a; a++)b[a] = 0; for (a = 103257; 103259 >= a; a++)b[a] = 2; for (a = 103264; 103266 >= a; a++)b[a] = 0; for (a = 103267; 103269 >= a; a++)b[a] = 2; for (a = 103300; 103375 >= a; a++)b[a] = 0; for (a = 103381; 103383 >= a; a++)b[a] = 0; for (a = 103384; 103386 >= a; a++)b[a] =
  1379. 1; for (a = 103387; 103389 >= a; a++)b[a] = 0; for (a = 103390; 103392 >= a; a++)b[a] = 2; for (a = 103397; 103399 >= a; a++)b[a] = 0; for (a = 103400; 103471 >= a; a++)b[a] = 2; for (a = 103476; 103478 >= a; a++)b[a] = 0; for (a = 103479; 103481 >= a; a++)b[a] = 2; for (a = 103486; 103488 >= a; a++)b[a] = 0; for (a = 103489; 103491 >= a; a++)b[a] = 2; for (a = 103492; 103495 >= a; a++)b[a] = 0; for (a = 103496; 103499 >= a; a++)b[a] = 2; for (a = 103528; 103543 >= a; a++)b[a] = 0; for (a = 103544; 103548 >= a; a++)b[a] = 2; for (a = 103549; 103551 >= a; a++)b[a] = 0; for (a = 103552; 103554 >= a; a++)b[a] = 1; for (a = 103555; 103557 >= a; a++)b[a] =
  1380. 2; for (a = 103558; 103560 >= a; a++)b[a] = 0; for (a = 103571; 103573 >= a; a++)b[a] = 0; for (a = 103574; 103576 >= a; a++)b[a] = 2; for (a = 103577; 103580 >= a; a++)b[a] = 0; for (a = 103581; 103583 >= a; a++)b[a] = 2; for (a = 103595; 103694 >= a; a++)b[a] = 0; for (a = 103696; 103699 >= a; a++)b[a] = 0; for (a = 103700; 103793 >= a; a++)b[a] = 2; for (a = 103794; 103887 >= a; a++)b[a] = 0; for (a = 103900; 103971 >= a; a++)b[a] = 2; return b
  1381. })
  1382. }, "esri/portal/Portal": function () {
  1383. define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../config ../kernel ../request ../core/Error ../core/JSONSupport ../core/Loadable ../core/maybe ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../geometry/Extent ../intl/locale ./PortalQueryParams ./PortalQueryResult ./PortalUser ../support/apiKeyUtils".split(" "),
  1384. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z) {
  1385. const C = J => Object.freeze(Object.defineProperty({ __proto__: null, default: J }, Symbol.toStringTag, { value: "Module" })); var A; let D; const F = { PortalGroup: () => new Promise((J, M) => a(["./PortalGroup"], N => J(C(N)), M)), PortalItem: () => new Promise((J, M) => a(["./PortalItem"], N => J(C(N)), M)), PortalUser: () => new Promise((J, M) => a(["./PortalUser"], N => J(C(N)), M)) }; q = A = function (J) {
  1386. function M(E) {
  1387. E = J.call(this, E) || this; E.access = null; E.allSSL = !1; E.authMode = "auto"; E.authorizedCrossOriginDomains =
  1388. null; E.basemapGalleryGroupQuery = null; E.bingKey = null; E.canListApps = !1; E.canListData = !1; E.canListPreProvisionedItems = !1; E.canProvisionDirectPurchase = !1; E.canSearchPublic = !0; E.canShareBingPublic = !1; E.canSharePublic = !1; E.canSignInArcGIS = !1; E.canSignInIDP = !1; E.colorSetsGroupQuery = null; E.commentsEnabled = !1; E.created = null; E.culture = null; E.customBaseUrl = null; E.defaultBasemap = null; E.defaultDevBasemap = null; E.defaultExtent = null; E.defaultVectorBasemap = null; E.description = null; E.devBasemapGalleryGroupQuery = null;
  1389. E.eueiEnabled = null; E.featuredGroups = null; E.featuredItemsGroupQuery = null; E.galleryTemplatesGroupQuery = null; E.livingAtlasGroupQuery = null; E.hasCategorySchema = !1; E.helperServices = null; E.homePageFeaturedContent = null; E.homePageFeaturedContentCount = null; E.httpPort = null; E.httpsPort = null; E.id = null; E.ipCntryCode = null; E.isPortal = !1; E.isReadOnly = !1; E.layerTemplatesGroupQuery = null; E.maxTokenExpirationMinutes = null; E.modified = null; E.name = null; E.portalHostname = null; E.portalMode = null; E.portalProperties = null; E.region =
  1390. null; E.rotatorPanels = null; E.showHomePageDescription = !1; E.sourceJSON = null; E.supportsHostedServices = !1; E.symbolSetsGroupQuery = null; E.templatesGroupQuery = null; E.units = null; E.url = e.portalUrl; E.urlKey = null; E.user = null; E.useStandardizedQuery = !1; E.useVectorBasemaps = !1; E.vectorBasemapGalleryGroupQuery = null; return E
  1391. } b._inheritsLoose(M, J); var N = M.prototype; N.normalizeCtorArgs = function (E) { return "string" === typeof E ? { url: E } : E }; N.destroy = function () {
  1392. this._esriId_credentialCreateHandle && (this._esriId_credentialCreateHandle.remove(),
  1393. this._esriId_credentialCreateHandle = null)
  1394. }; N.readAuthorizedCrossOriginDomains = function (E) { if (E) for (const G of E) e.request.trustedServers.includes(G) || e.request.trustedServers.push(G); return E }; N.readDefaultBasemap = function (E) { return this._readBasemap(E) }; N.readDefaultDevBasemap = function (E) { return this._readBasemap(E) }; N.readDefaultVectorBasemap = function (E) { return this._readBasemap(E) }; N.readUrlKey = function (E) { return E ? E.toLowerCase() : E }; N.readUser = function (E) {
  1395. let G = null; E && (G = x.fromJSON(E), G.portal =
  1396. this); return G
  1397. }; N.load = function (E) {
  1398. const G = (new Promise((H, K) => a(["../Basemap"], S => H(C(S)), K))).then(({ default: H }) => { g.throwIfAborted(E); D = H }).then(() => this.sourceJSON ? this.sourceJSON : this._fetchSelf(this.authMode, !1, E)).then(H => { if (d.id) { const K = d.id; this.credential = K.findCredential(this.restUrl); this.credential || this.authMode !== A.AUTH_MODE_AUTO || (this._esriId_credentialCreateHandle = K.on("credential-create", () => { K.findCredential(this.restUrl) && this._signIn() })) } this.sourceJSON = H; this.read(H) }); this.addResolvingPromise(G);
  1399. return Promise.resolve(this)
  1400. }; N.createElevationLayers = function () { var E = b._asyncToGenerator(function* () { yield this.load(); const G = this._getHelperService("defaultElevationLayers"), H = (yield new Promise((K, S) => a(["../layers/ElevationLayer"], fa => K(C(fa)), S))).default; return G ? G.map(K => new H({ id: K.id, url: K.url })) : [] }); return function () { return E.apply(this, arguments) } }(); N.fetchBasemaps = function (E, G) {
  1401. const H = new B; H.query = E || (e.apiKey && z.supportsApiKey(this.url) ? this.devBasemapGalleryGroupQuery : this.useVectorBasemaps ?
  1402. this.vectorBasemapGalleryGroupQuery : this.basemapGalleryGroupQuery); H.disableExtraQuery = !0; return this.queryGroups(H, G).then(K => { H.num = 100; H.query = 'type:"Web Map" -type:"Web Application"'; return K.total ? (K = K.results[0], H.sortField = K.sortField || "name", H.sortOrder = K.sortOrder || "desc", K.queryItems(H, G)) : null }).then(K => K && K.total ? K.results.filter(S => "Web Map" === S.type).map(S => new D({ portalItem: S })) : [])
  1403. }; N.fetchCategorySchema = function (E) {
  1404. return this.hasCategorySchema ? this._request(this.restUrl + "/portals/self/categorySchema",
  1405. E).then(G => G.categorySchema) : g.isAborted(E) ? Promise.reject(g.createAbortError()) : Promise.resolve([])
  1406. }; N.fetchFeaturedGroups = function (E) { const G = this.featuredGroups, H = new B; H.num = 100; H.sortField = "title"; if (G && G.length) { const K = []; for (const S of G) K.push(`(title:"${S.title}" AND owner:${S.owner})`); H.query = K.join(" OR "); return this.queryGroups(H, E).then(S => S.results) } return g.isAborted(E) ? Promise.reject(g.createAbortError()) : Promise.resolve([]) }; N.fetchRegions = function (E) {
  1407. var G; const H = (null == (G = this.user) ?
  1408. void 0 : G.culture) || this.culture || y.getLocale(); return this._request(this.restUrl + "/portals/regions", { ...E, query: { culture: H } })
  1409. }; N.fetchSettings = function (E) { var G; const H = (null == (G = this.user) ? void 0 : G.culture) || this.culture || y.getLocale(); return this._request(this.restUrl + "/portals/self/settings", { ...E, query: { culture: H } }) }; M.getDefault = function () { if (!A._default || A._default.destroyed) A._default = new A; return A._default }; N.queryGroups = function (E, G) {
  1410. return this._queryPortal("/community/groups", E, "PortalGroup",
  1411. G)
  1412. }; N.queryItems = function (E, G) { return this._queryPortal("/search", E, "PortalItem", G) }; N.queryUsers = function (E, G) { E.sortField || (E.sortField = "username"); return this._queryPortal("/community/users", E, "PortalUser", G) }; N.toJSON = function () { throw new r("internal:not-yet-implemented", "Portal.toJSON is not yet implemented"); }; M.fromJSON = function (E) { if (!E) return null; if (E.declaredClass) throw Error("JSON object is already hydrated"); return new A({ sourceJSON: E }) }; N._getHelperService = function (E) {
  1413. const G = this.helperServices &&
  1414. this.helperServices[E]; if (!G) throw new r("portal:service-not-found", `The \`helperServices\` do not include an entry named "${E}"`); return G
  1415. }; N._getHelperServiceUrl = function (E) { const G = this._getHelperService(E); if (!G.url) throw new r("portal:service-url-not-found", `The \`helperServices\` entry "${E}" does not include a \`url\` value`); return G.url }; N._fetchSelf = function (E = this.authMode, G = !1, H) {
  1416. const K = this.restUrl + "/portals/self"; E = { authMode: E, query: { culture: y.getLocale().toLowerCase() }, ...H }; "auto" ===
  1417. E.authMode && (E.authMode = "no-prompt"); G && (E.query.default = !0); return this._request(K, E)
  1418. }; N._queryPortal = function (E, G, H, K) {
  1419. const S = u.ensureType(B, G), fa = ha => this._request(this.restUrl + E, { ...S.toRequestOptions(this), ...K }).then(ba => { const O = S.clone(); O.start = ba.nextStart; return new w({ nextQueryParams: O, queryParams: S, total: ba.total, results: A._resultsToTypedArray(ha, { portal: this }, ba, K) }) }).then(ba => Promise.all(ba.results.map(O => "function" === typeof O.when ? O.when() : ba)).then(() => ba, O => {
  1420. g.throwIfAbortError(O);
  1421. return ba
  1422. })); return H && F[H] ? F[H]().then(({ default: ha }) => { g.throwIfAborted(K); return fa(ha) }) : fa()
  1423. }; N._signIn = function () {
  1424. if (this.authMode === A.AUTH_MODE_ANONYMOUS) return Promise.reject(new r("portal:invalid-auth-mode", `Current "authMode"' is "${this.authMode}"`)); if ("failed" === this.loadStatus) return Promise.reject(this.loadError); const E = G => Promise.resolve().then(() => {
  1425. if ("not-loaded" === this.loadStatus) return G || (this.authMode = "immediate"), this.load().then(() => null); if ("loading" === this.loadStatus) return this.load().then(() => { if (this.credential) return null; this.credential = G; return this._fetchSelf("immediate") }); if (this.user && this.credential === G) return null; this.credential = G; return this._fetchSelf("immediate")
  1426. }).then(H => { H && (this.sourceJSON = H, this.read(H)) }); return d.id ? d.id.getCredential(this.restUrl).then(G => E(G)) : E(this.credential)
  1427. }; N._normalizeSSL = function (E) { return E.replace(/^http:/i, "https:").replace(":7080", ":7443") }; N._normalizeUrl = function (E) {
  1428. const G = this.credential && this.credential.token; return this._normalizeSSL(G ?
  1429. E + (E.includes("?") ? "\x26" : "?") + "token\x3d" + G : E)
  1430. }; N._requestToTypedArray = function (E, G, H) { return this._request(E, G).then(K => { const S = A._resultsToTypedArray(H, { portal: this }, K); return Promise.all(S.map(fa => "function" === typeof fa.when ? fa.when() : K)).then(() => S, () => S) }) }; N._readBasemap = function (E) { return E ? (E = D.fromJSON(E), E.portalItem = { portal: this }, E) : null }; N._request = function (E, G = {}) {
  1431. const H = { f: "json", ...G.query }, { authMode: K = this.authMode === A.AUTH_MODE_ANONYMOUS ? "anonymous" : "auto", body: S = null, cacheBust: fa =
  1432. !1, method: ha = "auto", responseType: ba = "json", signal: O } = G; G = { authMode: K, body: S, cacheBust: fa, method: ha, query: H, responseType: ba, timeout: 0, signal: O }; return l(this._normalizeSSL(E), G).then(na => na.data)
  1433. }; M._resultsToTypedArray = function (E, G, H, K) {
  1434. if (H) {
  1435. const S = m.isSome(K) ? K.signal : null; H = H.listings || H.notifications || H.userInvitations || H.tags || H.items || H.groups || H.comments || H.provisions || H.results || H.relatedItems || H; if (E || G) H = H.map(fa => {
  1436. fa = Object.assign(E ? E.fromJSON(fa) : fa, G); "function" === typeof fa.load && fa.load(S);
  1437. return fa
  1438. })
  1439. } else H = []; return H
  1440. }; b._createClass(M, [{ key: "extraQuery", get: function () { const E = !(this.user && this.user.orgId) || this.canSearchPublic; return this.id && !E ? ` AND orgid:${this.id}` : null } }, { key: "isOrganization", get: function () { return !!this.access } }, { key: "restUrl", get: function () { let E = this.url; if (E) { const G = E.indexOf("/sharing"); E = 0 < G ? E.substring(0, G) : this.url.replace(/\/+$/, ""); E += "/sharing/rest" } return E } }, {
  1441. key: "thumbnailUrl", get: function () {
  1442. const E = this.restUrl, G = this.thumbnail; return E && G ? this._normalizeSSL(E +
  1443. "/portals/self/resources/" + G) : null
  1444. }
  1445. }]); return M
  1446. }(q.JSONSupportMixin(k)); q.AUTH_MODE_ANONYMOUS = "anonymous"; q.AUTH_MODE_AUTO = "auto"; q.AUTH_MODE_IMMEDIATE = "immediate"; c.__decorate([p.property()], q.prototype, "access", void 0); c.__decorate([p.property()], q.prototype, "allSSL", void 0); c.__decorate([p.property()], q.prototype, "authMode", void 0); c.__decorate([p.property()], q.prototype, "authorizedCrossOriginDomains", void 0); c.__decorate([f.reader("authorizedCrossOriginDomains")], q.prototype, "readAuthorizedCrossOriginDomains",
  1447. null); c.__decorate([p.property()], q.prototype, "basemapGalleryGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "bingKey", void 0); c.__decorate([p.property()], q.prototype, "canListApps", void 0); c.__decorate([p.property()], q.prototype, "canListData", void 0); c.__decorate([p.property()], q.prototype, "canListPreProvisionedItems", void 0); c.__decorate([p.property()], q.prototype, "canProvisionDirectPurchase", void 0); c.__decorate([p.property()], q.prototype, "canSearchPublic", void 0); c.__decorate([p.property()],
  1448. q.prototype, "canShareBingPublic", void 0); c.__decorate([p.property()], q.prototype, "canSharePublic", void 0); c.__decorate([p.property()], q.prototype, "canSignInArcGIS", void 0); c.__decorate([p.property()], q.prototype, "canSignInIDP", void 0); c.__decorate([p.property()], q.prototype, "colorSetsGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "commentsEnabled", void 0); c.__decorate([p.property({ type: Date })], q.prototype, "created", void 0); c.__decorate([p.property()], q.prototype, "credential", void 0);
  1449. c.__decorate([p.property()], q.prototype, "culture", void 0); c.__decorate([p.property()], q.prototype, "currentVersion", void 0); c.__decorate([p.property()], q.prototype, "customBaseUrl", void 0); c.__decorate([p.property()], q.prototype, "defaultBasemap", void 0); c.__decorate([f.reader("defaultBasemap")], q.prototype, "readDefaultBasemap", null); c.__decorate([p.property()], q.prototype, "defaultDevBasemap", void 0); c.__decorate([f.reader("defaultDevBasemap")], q.prototype, "readDefaultDevBasemap", null); c.__decorate([p.property({ type: v })],
  1450. q.prototype, "defaultExtent", void 0); c.__decorate([p.property()], q.prototype, "defaultVectorBasemap", void 0); c.__decorate([f.reader("defaultVectorBasemap")], q.prototype, "readDefaultVectorBasemap", null); c.__decorate([p.property()], q.prototype, "description", void 0); c.__decorate([p.property()], q.prototype, "devBasemapGalleryGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "eueiEnabled", void 0); c.__decorate([p.property({ readOnly: !0 })], q.prototype, "extraQuery", null); c.__decorate([p.property()],
  1451. q.prototype, "featuredGroups", void 0); c.__decorate([p.property()], q.prototype, "featuredItemsGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "galleryTemplatesGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "livingAtlasGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "hasCategorySchema", void 0); c.__decorate([p.property()], q.prototype, "helpBase", void 0); c.__decorate([p.property()], q.prototype, "helperServices", void 0); c.__decorate([p.property()], q.prototype, "helpMap",
  1452. void 0); c.__decorate([p.property()], q.prototype, "homePageFeaturedContent", void 0); c.__decorate([p.property()], q.prototype, "homePageFeaturedContentCount", void 0); c.__decorate([p.property()], q.prototype, "httpPort", void 0); c.__decorate([p.property()], q.prototype, "httpsPort", void 0); c.__decorate([p.property()], q.prototype, "id", void 0); c.__decorate([p.property()], q.prototype, "ipCntryCode", void 0); c.__decorate([p.property({ readOnly: !0 })], q.prototype, "isOrganization", null); c.__decorate([p.property()], q.prototype,
  1453. "isPortal", void 0); c.__decorate([p.property()], q.prototype, "isReadOnly", void 0); c.__decorate([p.property()], q.prototype, "layerTemplatesGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "maxTokenExpirationMinutes", void 0); c.__decorate([p.property({ type: Date })], q.prototype, "modified", void 0); c.__decorate([p.property()], q.prototype, "name", void 0); c.__decorate([p.property()], q.prototype, "portalHostname", void 0); c.__decorate([p.property()], q.prototype, "portalMode", void 0); c.__decorate([p.property()],
  1454. q.prototype, "portalProperties", void 0); c.__decorate([p.property()], q.prototype, "region", void 0); c.__decorate([p.property({ readOnly: !0 })], q.prototype, "restUrl", null); c.__decorate([p.property()], q.prototype, "rotatorPanels", void 0); c.__decorate([p.property()], q.prototype, "showHomePageDescription", void 0); c.__decorate([p.property()], q.prototype, "sourceJSON", void 0); c.__decorate([p.property()], q.prototype, "staticImagesUrl", void 0); c.__decorate([p.property({ json: { name: "2DStylesGroupQuery" } })], q.prototype,
  1455. "stylesGroupQuery2d", void 0); c.__decorate([p.property({ json: { name: "stylesGroupQuery" } })], q.prototype, "stylesGroupQuery3d", void 0); c.__decorate([p.property()], q.prototype, "supportsHostedServices", void 0); c.__decorate([p.property()], q.prototype, "symbolSetsGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "templatesGroupQuery", void 0); c.__decorate([p.property()], q.prototype, "thumbnail", void 0); c.__decorate([p.property({ readOnly: !0 })], q.prototype, "thumbnailUrl", null); c.__decorate([p.property()],
  1456. q.prototype, "units", void 0); c.__decorate([p.property()], q.prototype, "url", void 0); c.__decorate([p.property()], q.prototype, "urlKey", void 0); c.__decorate([f.reader("urlKey")], q.prototype, "readUrlKey", null); c.__decorate([p.property()], q.prototype, "user", void 0); c.__decorate([f.reader("user")], q.prototype, "readUser", null); c.__decorate([p.property()], q.prototype, "useStandardizedQuery", void 0); c.__decorate([p.property()], q.prototype, "useVectorBasemaps", void 0); c.__decorate([p.property()], q.prototype, "vectorBasemapGalleryGroupQuery",
  1457. void 0); return q = A = c.__decorate([h.subclass("esri.portal.Portal")], q)
  1458. })
  1459. }, "esri/kernel": function () {
  1460. define("require exports ./chunks/_rollupPluginBabelHelpers ./core/has ./core/urlUtils ./support/revision".split(" "), function (a, b, c, e, d, l) {
  1461. b.id = void 0; e("host-webworker") || (console.debug(`Using ArcGIS API for JavaScript ${"4.24"} [Date: ${l.buildDate}, Revision: ${l.commitHash.slice(0, 8)}]`), (e("edge") || e("trident")) && console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")); b.buildDate =
  1462. l.buildDate; b.revision = l.commitHash; b.addTokenParameter = function (r) { const q = b.id && b.id.findCredential(r); return q && q.token ? d.addQueryParameter(r, "token", q.token) : r }; b.setId = function (r) { b.id = r }; b.version = "4.24"; b.workerMessages = {
  1463. request(r, q) {
  1464. return c._asyncToGenerator(function* () {
  1465. var k, { default: m } = yield new Promise((t, n) => a(["./request"], u => t(Object.freeze(Object.defineProperty({ __proto__: null, default: u }, Symbol.toStringTag, { value: "Module" }))), n)); const g = r.options, p = g.responseType; g.signal = null == q ?
  1466. void 0 : q.signal; g.responseType = "native" === p || "native-request-init" === p ? "native-request-init" : ["blob", "json", "text"].includes(p) && null != (k = d.getInterceptor(r.url)) && k.after ? p : "array-buffer"; k = yield m(r.url, g); m = { data: k.data, ssl: k.ssl }; switch (k.requestOptions.responseType) { case "native-request-init": return delete m.data.signal, m; case "blob": m.data = yield m.data.arrayBuffer(); break; case "json": m.data = (new TextEncoder).encode(JSON.stringify(m.data)).buffer; break; case "text": m.data = (new TextEncoder).encode(m.data).buffer }return {
  1467. result: m,
  1468. transferList: [m.data]
  1469. }
  1470. })()
  1471. }
  1472. }; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1473. })
  1474. }, "esri/support/revision": function () { define(["exports"], function (a) { a.buildDate = "20220705"; a.commitHash = "5a46844c5ac1b721521da79fb0304de9e8457e2c"; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/request": function () {
  1475. define("require ./chunks/_rollupPluginBabelHelpers ./config ./kernel ./core/Error ./core/has ./core/lang ./core/maybe ./core/promiseUtils ./core/urlUtils ./support/apiKeyUtils ./support/requestUtils".split(" "),
  1476. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  1477. function t(sa, W) { return n.apply(this, arguments) } function n() {
  1478. n = b._asyncToGenerator(function* (sa, W) {
  1479. var oa, ya = m.isDataProtocol(sa); const I = m.isBlobProtocol(sa); I || ya || (sa = m.normalize(sa)); const P = { url: sa, requestOptions: { ...q.unwrap(W) } }; let Z = m.getInterceptor(sa); if (Z) { sa = yield F(Z, P); if (null != sa) return { data: sa, getHeader: Da, requestOptions: P.requestOptions, url: P.url }; Z.after || Z.error || (Z = null) } sa = P.url; W = P.requestOptions; if ("image" === W.responseType) {
  1480. if (l("host-webworker") ||
  1481. l("host-node")) throw h("request:invalid-parameters", Error("responseType 'image' is not supported in Web Workers or Node environment"), P);
  1482. } else if (ya) throw h("request:invalid-parameters", Error("Data URLs are not supported for responseType \x3d " + W.responseType), P); if ("head" === W.method) {
  1483. if (W.body) throw h("request:invalid-parameters", Error("body parameter cannot be set when method is 'head'"), P); if (ya || I) throw h("request:invalid-parameters", Error("data and blob URLs are not supported for method 'head'"),
  1484. P);
  1485. } yield v(); if (fa) return fa.execute(sa, W); const Q = new AbortController; k.onAbort(W, () => Q.abort()); ya = yield E({ controller: Q, credential: null, credentialToken: null, fetchOptions: null, hasToken: !1, interceptor: Z, params: P, redoRequest: !1, useIdentity: ha.useIdentity, useProxy: !1, useSSL: !1, withCredentials: !1 }); null == (oa = Z) ? void 0 : null == oa.after ? void 0 : oa.after(ya); return ya
  1486. }); return n.apply(this, arguments)
  1487. } function u(sa) { (sa = m.getOrigin(sa)) && !t._corsServers.includes(sa) && t._corsServers.push(sa) } function f(sa) {
  1488. sa =
  1489. m.getOrigin(sa); return !sa || sa.endsWith(".arcgis.com") || t._corsServers.includes(sa) || m.isTrustedServer(sa)
  1490. } function h(sa, W, oa, ya) {
  1491. let I = "Error"; const P = { url: oa.url, requestOptions: oa.requestOptions, getHeader: Da, ssl: !1 }; if (W instanceof d) return W.details ? (W.details = r.clone(W.details), W.details.url = oa.url, W.details.requestOptions = oa.requestOptions) : W.details = P, W; if (W) {
  1492. oa = ya && (V => ya.headers.get(V)); const Z = ya && ya.status, Q = W.message; Q && (I = Q); oa && (P.getHeader = oa); P.httpStatus = (null != W.httpCode ? W.httpCode :
  1493. W.code) || Z || 0; P.subCode = W.subcode; P.messageCode = W.messageCode; P.messages = "string" === typeof W.details ? [W.details] : W.details; P.raw = Ka in W ? W[Ka] : W
  1494. } return k.isAbortError(W) ? k.createAbortError() : new d(sa, I, P)
  1495. } function v() { return y.apply(this, arguments) } function y() { y = b._asyncToGenerator(function* () { l("host-webworker") ? fa || (fa = yield new Promise((sa, W) => a(["./core/workers/request"], sa, W))) : t._abortableFetch || (t._abortableFetch = globalThis.fetch.bind(globalThis)) }); return y.apply(this, arguments) } function B() {
  1496. return w.apply(this,
  1497. arguments)
  1498. } function w() { w = b._asyncToGenerator(function* () { e.id || (yield new Promise((sa, W) => a(["./identity/IdentityManager"], oa => sa(Object.freeze(Object.defineProperty({ __proto__: null, default: oa }, Symbol.toStringTag, { value: "Module" }))), W))) }); return w.apply(this, arguments) } function x(sa) { return z.apply(this, arguments) } function z() {
  1499. z = b._asyncToGenerator(function* (sa) {
  1500. var W, oa; const ya = sa.params.url, I = sa.params.requestOptions, P = sa.controller.signal, Z = I.body; let Q = null, V = null; ba && "HTMLFormElement" in globalThis &&
  1501. (Z instanceof FormData ? Q = Z : Z instanceof HTMLFormElement && (Q = new FormData(Z))); "string" === typeof Z && (V = Z); sa.fetchOptions = { cache: I.cacheBust && !t._abortableFetch.polyfill ? "no-cache" : "default", credentials: "same-origin", headers: I.headers || {}, method: "head" === I.method ? "HEAD" : "GET", mode: "cors", priority: ha.priority, redirect: "follow", signal: P }; if (Q || V) sa.fetchOptions.body = Q || V; "anonymous" === I.authMode && (sa.useIdentity = !1); sa.hasToken = !!(/token=/i.test(ya) || null != (W = I.query) && W.token || null != (oa = Q) && oa.get("token"));
  1502. !sa.hasToken && c.apiKey && g.supportsApiKey(ya) && (I.query || (I.query = {}), I.query.token = c.apiKey, sa.hasToken = !0); if (sa.useIdentity && !sa.hasToken && !sa.credentialToken && !C(ya) && !k.isAborted(P)) { let da; "immediate" === I.authMode ? (yield B(), da = yield e.id.getCredential(ya, { signal: P }), sa.credential = da) : "no-prompt" === I.authMode ? (yield B(), da = yield e.id.getCredential(ya, { prompt: !1, signal: P }).catch(() => { }), sa.credential = da) : e.id && (da = e.id.findCredential(ya)); da && (sa.credentialToken = da.token, sa.useSSL = !!da.ssl) }
  1503. });
  1504. return z.apply(this, arguments)
  1505. } function C(sa) { return ra.some(W => W.test(sa)) } function A(sa) { return D.apply(this, arguments) } function D() {
  1506. D = b._asyncToGenerator(function* (sa) {
  1507. let W = sa.params.url; const oa = sa.params.requestOptions, ya = sa.fetchOptions, I = m.isBlobProtocol(W) || m.isDataProtocol(W), P = oa.responseType || "json", Z = I ? 0 : null != oa.timeout ? oa.timeout : ha.timeout; var Q = !1; if (!I) {
  1508. sa.useSSL && (W = m.toHTTPS(W)); oa.cacheBust && "default" === ya.cache && (W = m.addQueryParameter(W, "request.preventCache", Date.now())); var V =
  1509. { ...oa.query }; sa.credentialToken && (V.token = sa.credentialToken); Q = m.objectToQuery(V); l("esri-url-encodes-apostrophe") && (Q = Q.replace(/'/g, "%27")); const L = W.length + 1 + Q.length; Q = "delete" === oa.method || "post" === oa.method || "put" === oa.method || !!oa.body || L > ha.maxUrlLength; const R = oa.useProxy || !!m.getProxyRule(W); if (R) { const X = m.getProxyUrl(W); var da = X.path; !Q && da.length + 1 + L > ha.maxUrlLength && (Q = !0); X.query && (V = { ...X.query, ...V }) } if ("HEAD" === ya.method && (Q || R)) {
  1510. if (Q) {
  1511. if (L > ha.maxUrlLength) throw h("request:invalid-parameters",
  1512. Error("URL exceeds maximum length"), sa.params); throw h("request:invalid-parameters", Error("cannot use POST request when method is 'head'"), sa.params);
  1513. } if (R) throw h("request:invalid-parameters", Error("cannot use proxy when method is 'head'"), sa.params);
  1514. } Q ? (ya.method = "delete" === oa.method ? "DELETE" : "put" === oa.method ? "PUT" : "POST", oa.body ? W = m.addQueryParameters(W, V) : (ya.body = m.objectToQuery(V), ya.headers["Content-Type"] = "application/x-www-form-urlencoded")) : W = m.addQueryParameters(W, V); R && (sa.useProxy = !0,
  1515. W = `${da}?${W}`); V.token && ba && ya.body instanceof FormData && !/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(W) && ya.body.set("token", V.token); oa.hasOwnProperty("withCredentials") ? sa.withCredentials = oa.withCredentials : m.hasSameOrigin(W, m.getAppUrl()) || (m.isTrustedServer(W) ? sa.withCredentials = !0 : e.id && (da = e.id.findServerInfo(W)) && da.webTierAuth && (sa.withCredentials = !0)); sa.withCredentials && (ya.credentials = "include", p.isNoCorsRequestRequired(W) && (yield p.sendNoCorsRequest(Q ? m.addQueryParameters(W,
  1516. V) : W)))
  1517. } V = 0; let ea = !1; 0 < Z && (V = setTimeout(() => { ea = !0; sa.controller.abort() }, Z)); let pa, la; try {
  1518. if ("native-request-init" === oa.responseType) la = ya, la.url = W; else if ("image" !== oa.responseType || "default" !== ya.cache || "GET" !== ya.method || Q || M(oa.headers) || !I && !sa.useProxy && ha.proxyUrl && !f(W)) if (pa = yield t._abortableFetch(W, ya), sa.useProxy || u(W), "native" === oa.responseType) la = pa; else {
  1519. if ("HEAD" !== ya.method) if (pa.ok) {
  1520. switch (P) {
  1521. case "array-buffer": la = yield pa.arrayBuffer(); break; case "blob": case "image": la = yield pa.blob();
  1522. break; default: la = yield pa.text()
  1523. }V && (clearTimeout(V), V = 0); if ("json" === P || "xml" === P || "document" === P) if (la) switch (P) { case "json": la = JSON.parse(la); break; case "xml": la = N(la, "application/xml"); break; case "document": la = N(la, "text/html") } else la = null; if (la) {
  1524. if ("array-buffer" === P || "blob" === P) { const L = pa.headers.get("Content-Type"); if (/application\/json|text\/plain/i.test(L) && 750 >= la["blob" === P ? "size" : "byteLength"]) try { const R = yield (new Response(la)).json(); R.error && (la = R) } catch { } } "image" === P && la instanceof
  1525. Blob && (la = yield S(URL.createObjectURL(la), sa, !0))
  1526. }
  1527. } else la = yield pa.text()
  1528. } else la = yield S(W, sa)
  1529. } catch (L) { if ("AbortError" === L.name) { if (ea) throw Error("Timeout exceeded"); throw k.createAbortError("Request canceled"); } if (!pa && L instanceof TypeError && ha.proxyUrl && !oa.body && "delete" !== oa.method && "head" !== oa.method && "post" !== oa.method && "put" !== oa.method && !sa.useProxy && !f(W)) sa.redoRequest = !0, m.addProxyRule({ proxyUrl: ha.proxyUrl, urlPrefix: m.getOrigin(W) }); else throw L; } finally { V && clearTimeout(V) } return [pa,
  1530. la]
  1531. }); return D.apply(this, arguments)
  1532. } function F(sa, W) { return J.apply(this, arguments) } function J() {
  1533. J = b._asyncToGenerator(function* (sa, W) {
  1534. if (null != sa.responseData) return sa.responseData; sa.headers && (W.requestOptions.headers = { ...W.requestOptions.headers, ...sa.headers }); sa.query && (W.requestOptions.query = { ...W.requestOptions.query, ...sa.query }); if (sa.before) {
  1535. let oa, ya; try { ya = yield sa.before(W) } catch (I) { oa = h("request:interceptor", I, W) } if (ya instanceof Error || ya instanceof d) oa = h("request:interceptor", ya,
  1536. W); if (oa) throw sa.error && sa.error(oa), oa; return ya
  1537. }
  1538. }); return J.apply(this, arguments)
  1539. } function M(sa) { if (sa) for (const W of Object.getOwnPropertyNames(sa)) if (sa[W]) return !0; return !1 } function N(sa, W) { let oa; try { oa = (new DOMParser).parseFromString(sa, W) } catch { } if (!oa || oa.getElementsByTagName("parsererror").length) throw new SyntaxError("XML Parse error"); return oa } function E(sa) { return G.apply(this, arguments) } function G() {
  1540. G = b._asyncToGenerator(function* (sa) {
  1541. yield x(sa); let W; try {
  1542. do[W, oa] = yield A(sa); while (!(yield H(sa,
  1543. W, oa)))
  1544. } catch (P) { var oa = h("request:server", P, sa.params, W); oa.details.ssl = sa.useSSL; sa.interceptor && sa.interceptor.error && sa.interceptor.error(oa); throw oa; } var ya = sa.params.url; if (oa && /\/sharing\/rest\/(accounts|portals)\/self/i.test(ya)) { var I; sa.hasToken || sa.credentialToken || null == (I = oa.user) || !I.username || m.isTrustedServer(ya) || (ya = m.getOrigin(ya, !0)) && ha.trustedServers.push(ya); Array.isArray(oa.authorizedCrossOriginNoCorsDomains) && p.registerNoCorsDomains(oa.authorizedCrossOriginNoCorsDomains) } (ya =
  1545. sa.credential) && e.id && (I = (I = e.id.findServerInfo(ya.server)) && I.owningSystemUrl) && (I = I.replace(/\/?$/, "/sharing"), (ya = e.id.findCredential(I, ya.userId)) && -1 === e.id._getIdenticalSvcIdx(I, ya) && ya.resources.unshift(I)); return { data: oa, getHeader: W ? P => W.headers.get(P) : Da, requestOptions: sa.params.requestOptions, ssl: sa.useSSL, url: sa.params.url }
  1546. }); return G.apply(this, arguments)
  1547. } function H(sa, W, oa) { return K.apply(this, arguments) } function K() {
  1548. K = b._asyncToGenerator(function* (sa, W, oa) {
  1549. if (sa.redoRequest) return sa.redoRequest =
  1550. !1; const ya = sa.params.requestOptions; if (!W || "native" === ya.responseType || "native-request-init" === ya.responseType) return !0; let I; if (!W.ok) throw I = Error(`Unable to load ${W.url} status: ${W.status}`), I[Ka] = oa, I; null != oa && oa.error && (I = oa.error); let P, Z, Q; I && (P = Number(I.code), Z = I.hasOwnProperty("subcode") ? Number(I.subcode) : null, Q = (Q = I.messageCode) && Q.toUpperCase()); W = ya.authMode; if (403 === P && (4 === Z || I.message && I.message.toLowerCase().includes("ssl") && !I.message.toLowerCase().includes("permission"))) {
  1551. if (!sa.useSSL) return sa.useSSL =
  1552. !0, !1
  1553. } else if (!sa.hasToken && sa.useIdentity && ("no-prompt" !== W || 498 === P) && O.includes(P) && !C(sa.params.url) && (403 !== P || !na.includes(Q) && (null == Z || 2 === Z && sa.credentialToken))) {
  1554. yield B(); try { const V = yield e.id.getCredential(sa.params.url, { error: h("request:server", I, sa.params), prompt: "no-prompt" !== W, signal: sa.controller.signal, token: sa.credentialToken }); sa.credential = V; sa.credentialToken = V.token; sa.useSSL = sa.useSSL || V.ssl; return !1 } catch (V) {
  1555. if ("no-prompt" === W) return sa.credential = null, sa.credentialToken =
  1556. null, !1; I = V
  1557. }
  1558. } if (I) throw I; return !0
  1559. }); return K.apply(this, arguments)
  1560. } function S(sa, W, oa = !1) { const ya = W.controller.signal, I = new Image; I.crossOrigin = W.withCredentials ? "use-credentials" : "anonymous"; I.alt = ""; I.fetchPriority = ha.priority; I.src = sa; return p.loadImageAsync(I, sa, oa, ya) } let fa; const ha = c.request, ba = "FormData" in globalThis, O = [499, 498, 403, 401], na = ["COM_0056", "COM_0057", "SB_0008"], ra = [/\/arcgis\/tokens/i, /\/sharing(\/rest)?\/generatetoken/i, /\/rest\/info/i], Da = () => null, Ka = Symbol(); t._abortableFetch =
  1561. null; t._corsServers = ["https://server.arcgisonline.com", "https://services.arcgisonline.com"]; return t
  1562. })
  1563. }, "esri/support/apiKeyUtils": function () {
  1564. define(["exports", "../core/urlUtils"], function (a, b) {
  1565. const c = ["elevation3d.arcgis.com", "js.arcgis.com", "jsdev.arcgis.com", "jsqa.arcgis.com", "static.arcgis.com"]; a.isApiKey = function (e) { return e && 4 < e.length && e.startsWith("AAPK") }; a.supportsApiKey = function (e) { const d = b.getOrigin(e, !0); return d && d.endsWith(".arcgis.com") && !c.includes(d) && !e.endsWith("/sharing/rest/generateToken") };
  1566. Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1567. })
  1568. }, "esri/support/requestUtils": function () {
  1569. define("exports ../chunks/_rollupPluginBabelHelpers ../config ../core/has ../core/maybe ../core/promiseUtils ../core/urlUtils".split(" "), function (a, b, c, e, d, l, r) {
  1570. function q() { try { return new DOMException("Aborted", "AbortError") } catch { const m = Error(); m.name = "AbortError"; return m } } function k() {
  1571. k = b._asyncToGenerator(function* (m) {
  1572. var g, p = c.request.crossOriginNoCorsDomains;
  1573. p && (p[r.getOrigin(m).toLowerCase()] = Date.now()); p = r.urlToObject(m); m = p.path; "json" === (null == (g = p.query) ? void 0 : g.f) && (m += "?f\x3djson"); try { yield fetch(m, { mode: "no-cors", credentials: "include" }) } catch { }
  1574. }); return k.apply(this, arguments)
  1575. } a.isNoCorsRequestRequired = function (m) { const g = c.request.crossOriginNoCorsDomains; return g && (m = r.getOrigin(m)) ? (m = m.toLowerCase(), !r.hasSameOrigin(m, r.getAppUrl()) && g[m] < Date.now() - 36E5) : !1 }; a.loadImageAsync = function (m, g, p = !1, t) {
  1576. return new Promise((n, u) => {
  1577. if (l.isAborted(t)) u(q());
  1578. else { var f = () => { y(); u(Error(`Unable to load ${g}`)) }, h = () => { const B = m; y(); n(B) }, v = () => { if (m) { var B = m; y(); B.src = ""; u(q()) } }, y = () => { e("esri-image-decode") || (m.removeEventListener("error", f), m.removeEventListener("load", h)); m = h = f = null; d.isSome(t) && t.removeEventListener("abort", v); v = null; p && URL.revokeObjectURL(g) }; d.isSome(t) && t.addEventListener("abort", v); e("esri-image-decode") ? m.decode().then(h, f) : (m.addEventListener("error", f), m.addEventListener("load", h)) }
  1579. })
  1580. }; a.registerNoCorsDomains = function (m) {
  1581. c.request.crossOriginNoCorsDomains ||
  1582. (c.request.crossOriginNoCorsDomains = {}); const g = c.request.crossOriginNoCorsDomains; for (let p of m) p = p.toLowerCase(), /^https?:\/\//.test(p) ? g[r.getOrigin(p)] = 0 : (g[r.getOrigin("http://" + p)] = 0, g[r.getOrigin("https://" + p)] = 0)
  1583. }; a.sendNoCorsRequest = function (m) { return k.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1584. })
  1585. }, "esri/core/accessorSupport/decorators/reader": function () {
  1586. define(["exports", "./property"], function (a, b) {
  1587. a.reader = function (c,
  1588. e, d) { let l, r; void 0 === e || Array.isArray(e) ? (r = c, d = e, l = [void 0]) : (r = e, l = Array.isArray(c) ? c : [c]); return (q, k) => { const m = q.constructor.prototype; l.forEach(g => { g = b.propertyJSONMeta(q, g, r); g.read && "object" === typeof g.read || (g.read = {}); g.read.reader = m[k]; d && (g.read.source = (g.read.source || []).concat(d)) }) } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1589. })
  1590. }, "esri/geometry/Extent": function () {
  1591. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/string ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./Geometry ./Point ./SpatialReference ./support/contains ./support/intersectsBase ./support/spatialReferenceUtils ./support/webMercatorUtils".split(" "),
  1592. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f) {
  1593. function h(y, B, w) { return null == B ? w : null == w ? B : y(B, w) } var v; l = v = function (y) {
  1594. function B(...x) { x = y.call(this, ...x) || this; x.type = "extent"; x.xmin = 0; x.ymin = 0; x.mmin = void 0; x.zmin = void 0; x.xmax = 0; x.ymax = 0; x.mmax = void 0; x.zmax = void 0; return x } a._inheritsLoose(B, y); var w = B.prototype; w.normalizeCtorArgs = function (x, z, C, A, D) {
  1595. return !x || "esri.geometry.SpatialReference" !== x.declaredClass && null == x.wkid ? "object" === typeof x ? (x.spatialReference = null == x.spatialReference ? p.WGS84 :
  1596. x.spatialReference, x) : { xmin: x, ymin: z, xmax: C, ymax: A, spatialReference: null == D ? p.WGS84 : D } : { spatialReference: x, xmin: 0, ymin: 0, xmax: 0, ymax: 0 }
  1597. }; B.fromBounds = function (x, z) { return new v({ xmin: x[0], ymin: x[1], xmax: x[2], ymax: x[3], spatialReference: z }) }; B.fromPoint = function (x) { return new v({ xmin: x.x, ymin: x.y, zmin: x.z, xmax: x.x, ymax: x.y, zmax: x.z, spatialReference: x.spatialReference }) }; w.centerAt = function (x) {
  1598. const z = this.center; return null != x.z && this.hasZ ? this.offset(x.x - z.x, x.y - z.y, x.z - z.z) : this.offset(x.x - z.x, x.y -
  1599. z.y)
  1600. }; w.clone = function () { const x = new v; x.xmin = this.xmin; x.ymin = this.ymin; x.xmax = this.xmax; x.ymax = this.ymax; x.spatialReference = this.spatialReference; null != this.zmin && (x.zmin = this.zmin, x.zmax = this.zmax); null != this.mmin && (x.mmin = this.mmin, x.mmax = this.mmax); return x }; w.contains = function (x) {
  1601. if (!x) return !1; const z = this.spatialReference, C = x.spatialReference; z && C && !z.equals(C) && f.canProject(z, C) && (x = z.isWebMercator ? f.geographicToWebMercator(x) : f.webMercatorToGeographic(x, !0)); return "point" === x.type ? t.extentContainsPoint(this,
  1602. x) : "extent" === x.type ? t.extentContainsExtent(this, x) : !1
  1603. }; w.equals = function (x) { if (this === x) return !0; if (c.isNone(x)) return !1; const z = this.spatialReference, C = x.spatialReference; z && C && !z.equals(C) && f.canProject(z, C) && (x = z.isWebMercator ? f.geographicToWebMercator(x) : f.webMercatorToGeographic(x, !0)); return this.xmin === x.xmin && this.ymin === x.ymin && this.zmin === x.zmin && this.mmin === x.mmin && this.xmax === x.xmax && this.ymax === x.ymax && this.zmax === x.zmax && this.mmax === x.mmax }; w.expand = function (x) {
  1604. x = .5 * (1 - x); var z = this.width *
  1605. x; const C = this.height * x; this.xmin += z; this.ymin += C; this.xmax -= z; this.ymax -= C; this.hasZ && (z = (this.zmax - this.zmin) * x, this.zmin += z, this.zmax -= z); this.hasM && (x *= this.mmax - this.mmin, this.mmin += x, this.mmax -= x); return this
  1606. }; w.intersects = function (x) {
  1607. if (c.isNone(x)) return !1; "mesh" === x.type && (x = x.extent); const z = this.spatialReference, C = x.spatialReference; z && C && !z.equals(C) && f.canProject(z, C) && (x = z.isWebMercator ? f.geographicToWebMercator(x) : f.webMercatorToGeographic(x, !0)); return n.getFeatureExtentIntersector(x.type)(this,
  1608. x)
  1609. }; w.normalize = function () { const x = this._normalize(!1, !0); return Array.isArray(x) ? x : [x] }; w.offset = function (x, z, C) { this.xmin += x; this.ymin += z; this.xmax += x; this.ymax += z; null != C && (this.zmin += C, this.zmax += C); return this }; w.shiftCentralMeridian = function () { return this._normalize(!0) }; w.union = function (x) {
  1610. if (this === x) return this; this.xmin = Math.min(this.xmin, x.xmin); this.ymin = Math.min(this.ymin, x.ymin); this.xmax = Math.max(this.xmax, x.xmax); this.ymax = Math.max(this.ymax, x.ymax); if (this.hasZ || x.hasZ) this.zmin =
  1611. h(Math.min, this.zmin, x.zmin), this.zmax = h(Math.max, this.zmax, x.zmax); if (this.hasM || x.hasM) this.mmin = h(Math.min, this.mmin, x.mmin), this.mmax = h(Math.max, this.mmax, x.mmax); return this
  1612. }; w.intersection = function (x) {
  1613. if (this === x) return this; if (c.isNone(x) || !this.intersects(x)) return null; this.xmin = Math.max(this.xmin, x.xmin); this.ymin = Math.max(this.ymin, x.ymin); this.xmax = Math.min(this.xmax, x.xmax); this.ymax = Math.min(this.ymax, x.ymax); if (this.hasZ || x.hasZ) this.zmin = h(Math.max, this.zmin, x.zmin), this.zmax = h(Math.min,
  1614. this.zmax, x.zmax); if (this.hasM || x.hasM) this.mmin = h(Math.max, this.mmin, x.mmin), this.mmax = h(Math.min, this.mmax, x.mmax); return this
  1615. }; w.toJSON = function (x) { return this.write({}, x) }; w._shiftCM = function (x = u.getInfo(this.spatialReference)) {
  1616. if (!x || !this.spatialReference) return this; const z = this.spatialReference, C = this._getCM(x); if (C) {
  1617. const A = z.isWebMercator ? f.webMercatorToGeographic(C) : C; this.xmin -= C.x; this.xmax -= C.x; z.isWebMercator || (A.x = this._normalizeX(A.x, x).x); this.spatialReference = new p(e.replace(z.isWGS84 ?
  1618. x.altTemplate : x.wkTemplate, { Central_Meridian: A.x }))
  1619. } return this
  1620. }; w._getCM = function (x) { let z = null; const [C, A] = x.valid; x = this.xmin; const D = this.xmax; x >= C && x <= A && D >= C && D <= A || (z = this.center); return z }; w._normalize = function (x, z, C) {
  1621. const A = this.spatialReference; if (!A) return this; C = C || u.getInfo(A); if (!C) return this; const D = this._getParts(C).map(M => M.extent); if (2 > D.length) return D[0] || this; if (2 < D.length) return x ? this._shiftCM(C) : this.set({ xmin: C.valid[0], xmax: C.valid[1] }); if (x) return this._shiftCM(C); if (z) return D;
  1622. let F = !0, J = !0; D.forEach(M => { M.hasZ || (F = !1); M.hasM || (J = !1) }); return { rings: D.map(M => { const N = [[M.xmin, M.ymin], [M.xmin, M.ymax], [M.xmax, M.ymax], [M.xmax, M.ymin], [M.xmin, M.ymin]]; if (F) { var E = (M.zmax - M.zmin) / 2; for (let G = 0; G < N.length; G++)N[G].push(E) } if (J) for (M = (M.mmax - M.mmin) / 2, E = 0; E < N.length; E++)N[E].push(M); return N }), hasZ: F, hasM: J, spatialReference: A }
  1623. }; w._getParts = function (x) {
  1624. let z = this.cache._parts; if (!z) {
  1625. z = []; const { ymin: E, ymax: G, spatialReference: H } = this; var C = this.width, A = this.xmin, D = this.xmax; x = x ||
  1626. u.getInfo(H); const [K, S] = x.valid; var F = this._normalizeX(this.xmin, x); var J = F.x, M = F.frameId; F = this._normalizeX(this.xmax, x); x = F.x; F = F.frameId; var N = J === x && 0 < C; if (C > 2 * S) { C = new v(A < D ? J : x, E, S, G, H); A = new v(K, E, A < D ? x : J, G, H); D = new v(0, E, S, G, H); J = new v(K, E, 0, G, H); x = []; N = []; C.contains(D) && x.push(M); C.contains(J) && N.push(M); A.contains(D) && x.push(F); A.contains(J) && N.push(F); for (let fa = M + 1; fa < F; fa++)x.push(fa), N.push(fa); z.push({ extent: C, frameIds: [M] }, { extent: A, frameIds: [F] }, { extent: D, frameIds: x }, { extent: J, frameIds: N }) } else J >
  1627. x || N ? z.push({ extent: new v(J, E, S, G, H), frameIds: [M] }, { extent: new v(K, E, x, G, H), frameIds: [F] }) : z.push({ extent: new v(J, E, x, G, H), frameIds: [M] }); this.cache._parts = z
  1628. } F = this.hasZ; C = this.hasM; if (F || C) for (M = {}, F && (M.zmin = this.zmin, M.zmax = this.zmax), C && (M.mmin = this.mmin, M.mmax = this.mmax), F = 0; F < z.length; F++)z[F].extent.set(M); return z
  1629. }; w._normalizeX = function (x, z) { const [C, A] = z.valid; z = 2 * A; var D = 0; x > A ? (D = Math.ceil(Math.abs(x - A) / z), x -= D * z) : x < C && (D = Math.ceil(Math.abs(x - C) / z), x += D * z, D = -D); return { x, frameId: D } }; a._createClass(B,
  1630. [{ key: "cache", get: function () { this.commitProperty("xmin"); this.commitProperty("ymin"); this.commitProperty("zmin"); this.commitProperty("mmin"); this.commitProperty("xmax"); this.commitProperty("ymax"); this.commitProperty("zmax"); this.commitProperty("mmax"); this.commitProperty("spatialReference"); return {} } }, {
  1631. key: "center", get: function () {
  1632. const x = new g({ x: .5 * (this.xmin + this.xmax), y: .5 * (this.ymin + this.ymax), spatialReference: this.spatialReference }); this.hasZ && (x.z = .5 * (this.zmin + this.zmax)); this.hasM && (x.m =
  1633. .5 * (this.mmin + this.mmax)); return x
  1634. }
  1635. }, { key: "extent", get: function () { return this.clone() } }, { key: "hasM", get: function () { return null != this.mmin && null != this.mmax } }, { key: "hasZ", get: function () { return null != this.zmin && null != this.zmax } }, { key: "height", get: function () { return Math.abs(this.ymax - this.ymin) } }, { key: "width", get: function () { return Math.abs(this.xmax - this.xmin) } }]); return B
  1636. }(m); b.__decorate([d.property({ readOnly: !0 })], l.prototype, "cache", null); b.__decorate([d.property({ readOnly: !0 })], l.prototype, "center",
  1637. null); b.__decorate([d.property({ readOnly: !0 })], l.prototype, "extent", null); b.__decorate([d.property({ readOnly: !0, json: { write: { enabled: !1, overridePolicy: null } } })], l.prototype, "hasM", null); b.__decorate([d.property({ readOnly: !0, json: { write: { enabled: !1, overridePolicy: null } } })], l.prototype, "hasZ", null); b.__decorate([d.property({ readOnly: !0 })], l.prototype, "height", null); b.__decorate([d.property({ readOnly: !0 })], l.prototype, "width", null); b.__decorate([d.property({
  1638. type: Number, json: {
  1639. type: [Number, String], write: {
  1640. enabled: !0,
  1641. allowNull: !0
  1642. }
  1643. }
  1644. })], l.prototype, "xmin", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })], l.prototype, "ymin", void 0); b.__decorate([d.property({ type: Number, json: { origins: { "web-scene": { write: !1 } }, write: { overridePolicy() { return { enabled: this.hasM } } } } })], l.prototype, "mmin", void 0); b.__decorate([d.property({ type: Number, json: { origins: { "web-scene": { write: !1 } }, write: { overridePolicy() { return { enabled: this.hasZ } } } } })], l.prototype, "zmin", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })],
  1645. l.prototype, "xmax", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })], l.prototype, "ymax", void 0); b.__decorate([d.property({ type: Number, json: { origins: { "web-scene": { write: !1 } }, write: { overridePolicy() { return { enabled: this.hasM } } } } })], l.prototype, "mmax", void 0); b.__decorate([d.property({ type: Number, json: { origins: { "web-scene": { write: !1 } }, write: { overridePolicy() { return { enabled: this.hasZ } } } } })], l.prototype, "zmax", void 0); l = v = b.__decorate([k.subclass("esri.geometry.Extent")], l); l.prototype.toJSON.isDefaultToJSON =
  1646. !0; return l
  1647. })
  1648. }, "esri/geometry/Geometry": function () {
  1649. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./SpatialReference".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  1650. c = function (g) {
  1651. function p(...n) {
  1652. n = g.call(this, ...n) || this; n.type = null; n.hasM = !1; n.hasZ = !1; n.spatialReference = m.WGS84;
  1653. return n
  1654. } a._inheritsLoose(p, g); var t = p.prototype; t.readSpatialReference = function (n, u) { if (n instanceof m) return n; if (null != n) { const f = new m; f.read(n, u); return f } return n }; t.clone = function () { console.warn(".clone() is not implemented for " + this.declaredClass); return null }; t.clearCache = function () { this.notifyChange("cache") }; t.getCacheValue = function (n) { return this.cache[n] }; t.setCacheValue = function (n, u) { this.cache[n] = u }; a._createClass(p, [{
  1655. key: "cache", get: function () {
  1656. this.commitProperty("spatialReference");
  1657. return {}
  1658. }
  1659. }, { key: "extent", get: function () { return null } }]); return p
  1660. }(c.JSONSupport); b.__decorate([e.property()], c.prototype, "type", void 0); b.__decorate([e.property({ readOnly: !0 })], c.prototype, "cache", null); b.__decorate([e.property({ readOnly: !0 })], c.prototype, "extent", null); b.__decorate([e.property({ type: Boolean, json: { write: { overridePolicy(g) { return { enabled: g } } } } })], c.prototype, "hasM", void 0); b.__decorate([e.property({ type: Boolean, json: { write: { overridePolicy(g) { return { enabled: g } } } } })], c.prototype, "hasZ",
  1661. void 0); b.__decorate([e.property({ type: m, json: { write: !0 } })], c.prototype, "spatialReference", void 0); b.__decorate([q.reader("spatialReference")], c.prototype, "readSpatialReference", null); return c = b.__decorate([k.subclass("esri.geometry.Geometry")], c)
  1662. })
  1663. }, "esri/geometry/Point": function () {
  1664. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/ensureType ./Geometry ./SpatialReference ./support/offset ./support/pointUtils ./support/spatialReferenceUtils ./support/webMercatorUtils".split(" "),
  1665. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v) {
  1666. function y(z) { return z && ("esri.geometry.SpatialReference" === z.declaredClass || null != z.wkid) } var B; const w = [0, 0], x = c.getLogger("esri.geometry.Point"); c = B = function (z) {
  1667. function C(...D) { D = z.call(this, ...D) || this; D.x = 0; D.y = 0; D.z = void 0; D.m = void 0; D.type = "point"; return D } a._inheritsLoose(C, z); C.copy = function (D, F) {
  1668. F._set("x", D._get("x")); F._set("y", D._get("y")); F._set("z", D._get("z")); F._set("m", D._get("m")); D = D._get("spatialReference"); F._set("spatialReference",
  1669. Object.isFrozen(D) ? D : D.clone())
  1670. }; var A = C.prototype; A.normalizeCtorArgs = function (D, F, J, M, N) {
  1671. let E; if (Array.isArray(D)) E = D, N = F, D = E[0], F = E[1], J = E[2], M = E[3]; else if (D && "object" === typeof D) {
  1672. if (E = D, D = null != E.x ? E.x : E.longitude, F = null != E.y ? E.y : E.latitude, J = E.z, M = E.m, (N = E.spatialReference) && "esri.geometry.SpatialReference" !== N.declaredClass && (N = new n(N)), null != E.longitude || null != E.latitude) null == E.longitude ? x.warn(".longitude\x3d", "Latitude was defined without longitude") : null == E.latitude ? x.warn(".latitude\x3d",
  1673. "Longitude was defined without latitude") : !E.declaredClass && N && N.isWebMercator && (F = v.lngLatToXY(E.longitude, E.latitude, w), D = F[0], F = F[1])
  1674. } else y(J) ? (N = J, J = null) : y(M) && (N = M, M = null); D = { x: D, y: F }; null == D.x && null != D.y ? x.warn(".y\x3d", "Y coordinate was defined without an X coordinate") : null == D.y && null != D.x && x.warn(".x\x3d", "X coordinate was defined without a Y coordinate"); null != N && (D.spatialReference = N); null != J && (D.z = J); null != M && (D.m = M); return D
  1675. }; A.writeX = function (D, F, J) { F[J] = isNaN(D) ? "NaN" : D }; A.readX =
  1676. function (D) { return "string" === typeof D ? NaN : D }; A.clone = function () { const D = new B; D.x = this.x; D.y = this.y; D.z = this.z; D.m = this.m; D.spatialReference = this.spatialReference; return D }; A.copy = function (D) { B.copy(D, this); return this }; A.equals = function (D) {
  1677. if (e.isNone(D)) return !1; const { x: F, y: J, z: M, m: N, spatialReference: E } = this, { z: G, m: H } = D; let { x: K, y: S, spatialReference: fa } = D; if (!E.equals(fa)) if (E.isWebMercator && fa.isWGS84) [K, S] = v.lngLatToXY(K, S), fa = E; else if (E.isWGS84 && fa.isWebMercator) [K, S] = v.xyToLngLat(K, S), fa =
  1678. E; else return !1; return F === K && J === S && M === G && N === H && E.wkid === fa.wkid
  1679. }; A.offset = function (D, F, J) { return u.offsetPoint(this, D, F, J) }; A.normalize = function () { if (!this.spatialReference) return this; var D = h.getInfo(this.spatialReference); if (!D) return this; let F = this.x; const [J, M] = D.valid; D = 2 * M; let N; F > M ? (N = Math.ceil(Math.abs(F - M) / D), F -= N * D) : F < J && (N = Math.ceil(Math.abs(F - J) / D), F += N * D); this._set("x", F); return this }; A.distance = function (D) { return f.distance(this, D) }; A.toArray = function () {
  1680. const D = this.hasZ, F = this.hasM;
  1681. return D && F ? [this.x, this.y, this.z, this.m] : D ? [this.x, this.y, this.z] : F ? [this.x, this.y, this.m] : [this.x, this.y]
  1682. }; A.toJSON = function (D) { return this.write({}, D) }; a._createClass(C, [{ key: "cache", get: function () { this.commitProperty("x"); this.commitProperty("y"); this.commitProperty("z"); this.commitProperty("m"); this.commitProperty("spatialReference"); return {} } }, {
  1683. key: "hasM", get: function () { return void 0 !== this.m }, set: function (D) {
  1684. const F = void 0 !== this._get("m"); D !== F && (this._set("m", D ? 0 : void 0), this._set("hasM",
  1685. D))
  1686. }
  1687. }, { key: "hasZ", get: function () { return void 0 !== this.z }, set: function (D) { const F = void 0 !== this._get("z"); D !== F && (this._set("z", D ? 0 : void 0), this._set("hasZ", D)) } }, { key: "latitude", get: function () { const { spatialReference: D, x: F, y: J } = this; if (D) { if (D.isWebMercator) return v.xyToLngLat(F, J, w)[1]; if (D.isGeographic) return J } return null }, set: function (D) { const { spatialReference: F, x: J } = this; F && (F.isWebMercator ? this._set("y", v.lngLatToXY(J, D, w)[1]) : F.isGeographic && this._set("y", D), this._set("latitude", D)) } }, {
  1688. key: "longitude",
  1689. get: function () { const { x: D, y: F, spatialReference: J } = this; if (J) { if (J.isWebMercator) return v.xyToLngLat(D, F, w)[0]; if (J.isGeographic) return D } return null }, set: function (D) { const { y: F, spatialReference: J } = this; J && (J.isWebMercator ? this._set("x", v.lngLatToXY(D, F, w)[0]) : J.isGeographic && this._set("x", D), this._set("longitude", D)) }
  1690. }]); return C
  1691. }(t); b.__decorate([d.property({ readOnly: !0 })], c.prototype, "cache", null); b.__decorate([d.property({ type: Boolean, json: { read: !1, write: { enabled: !1, overridePolicy: null } } })], c.prototype,
  1692. "hasM", null); b.__decorate([d.property({ type: Boolean, json: { read: !1, write: { enabled: !1, overridePolicy: null } } })], c.prototype, "hasZ", null); b.__decorate([d.property({ type: Number })], c.prototype, "latitude", null); b.__decorate([d.property({ type: Number })], c.prototype, "longitude", null); b.__decorate([d.property({ type: Number, json: { type: [Number, String], write: { isRequired: !0, allowNull: !0 } } }), q.cast(z => isNaN(z) ? z : p.ensureNumber(z))], c.prototype, "x", void 0); b.__decorate([g.writer("x")], c.prototype, "writeX", null); b.__decorate([k.reader("x")],
  1693. c.prototype, "readX", null); b.__decorate([d.property({ type: Number, json: { write: !0 } })], c.prototype, "y", void 0); b.__decorate([d.property({ type: Number, json: { write: { overridePolicy() { return { enabled: this.hasZ } } } } })], c.prototype, "z", void 0); b.__decorate([d.property({ type: Number, json: { write: { overridePolicy() { return { enabled: this.hasM } } } } })], c.prototype, "m", void 0); c = B = b.__decorate([m.subclass("esri.geometry.Point")], c); c.prototype.toJSON.isDefaultToJSON = !0; return c
  1694. })
  1695. }, "esri/core/accessorSupport/decorators/cast": function () {
  1696. define(["exports",
  1697. "../ensureType", "../metadata"], function (a, b, c) {
  1698. function e(q) { const k = "__accessorMetadata__" in q ? b.ensureType(q) : q; return function (...m) { m.push(k); if ("number" === typeof m[2]) throw Error("Using @cast has parameter decorator is not supported since 4.16"); return d.apply(this, m) } } function d(q, k, m, g) { c.getOwnPropertyMetadata(q, k).cast = g } function l(q) { return (k, m) => { c.getOwnPropertyMetadata(k, q).cast = k[m] } } const r = Object.prototype.toString; a.cast = function (...q) {
  1699. if (3 !== q.length || "string" !== typeof q[1]) {
  1700. if (1 ===
  1701. q.length && "[object Function]" === r.call(q[0])) return e(q[0]); if (1 === q.length && "string" === typeof q[0]) return l(q[0])
  1702. }
  1703. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1704. })
  1705. }, "esri/geometry/support/offset": function () { define(["exports"], function (a) { a.offsetCoordsX = function (b, c) { b[0] += c; return b }; a.offsetPoint = function (b, c, e, d) { b.x += c; b.y += e; if (null != d) { var l; b.z = (null != (l = b.z) ? l : 0) + d } return b }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) },
  1706. "esri/geometry/support/pointUtils": function () { define(["exports"], function (a) { a.distance = function (b, c) { const e = b.x - c.x, d = b.y - c.y; b = b.hasZ && c.hasZ ? b.z - c.z : 0; return Math.sqrt(e * e + d * d + b * b) }; a.squareDistance = function (b, c) { const e = b.x - c.x, d = b.y - c.y; b = b.hasZ && c.hasZ ? b.z - c.z : 0; return e * e + d * d + b * b }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/geometry/support/webMercatorUtils": function () {
  1707. define("exports ../../core/lang ../../core/maybe ../SpatialReference ./Ellipsoid ./spatialReferenceUtils".split(" "),
  1708. function (a, b, c, e, d, l) {
  1709. function r(p, t, n, u, f) {
  1710. f.spatialReference = n; if ("x" in p && "x" in f) [f.x, f.y] = t(p.x, p.y, g, u); else if ("xmin" in p && "xmin" in f) [f.xmin, f.ymin] = t(p.xmin, p.ymin, g, u), [f.xmax, f.ymax] = t(p.xmax, p.ymax, g, u); else if ("paths" in p && "paths" in f || "rings" in p && "rings" in f) {
  1711. p = "paths" in p ? p.paths : p.rings; n = []; for (let v = 0; v < p.length; v++) { const y = p[v]; var h = []; n.push(h); for (let B = 0; B < y.length; B++)h.push(t(y[B][0], y[B][1], [0, 0], u)), 2 < y[B].length && h[B].push(y[B][2]), 3 < y[B].length && h[B].push(y[B][3]) } "paths" in
  1712. f ? f.paths = n : f.rings = n
  1713. } else if ("points" in p && "points" in f) { p = p.points; n = []; for (h = 0; h < p.length; h++)n[h] = t(p[h][0], p[h][1], [0, 0], u), 2 < p[h].length && n[h].push(p[h][2]), 3 < p[h].length && n[h].push(p[h][3]); f.points = n } return f
  1714. } function q(p, t) { const n = p && (null != p.wkid || null != p.wkt ? p : p.spatialReference), u = t && (null != t.wkid || null != t.wkt ? t : t.spatialReference); return p && "type" in p && "mesh" === p.type || t && "type" in t && "mesh" === t.type || !n || !u ? !1 : l.equals(u, n) ? !0 : l.isWebMercator(u) && l.isWGS84(n) || l.isWebMercator(n) && l.isWGS84(u) }
  1715. function k(p, t, n = [0, 0]) { 89.99999 < t ? t = 89.99999 : -89.99999 > t && (t = -89.99999); t *= .017453292519943; n[0] = .017453292519943 * p * d.earth.radius; n[1] = d.earth.halfSemiMajorAxis * Math.log((1 + Math.sin(t)) / (1 - Math.sin(t))); return n } function m(p, t, n = [0, 0], u = !1) { p = p / d.earth.radius * 57.29577951308232; n[0] = u ? p : p - 360 * Math.floor((p + 180) / 360); n[1] = 57.29577951308232 * (Math.PI / 2 - 2 * Math.atan(Math.exp(-t / d.earth.radius))); return n } const g = [0, 0]; a.canProject = q; a.geographicToWebMercator = function (p, t = !1, n = b.clone(p)) {
  1716. return r(p, k,
  1717. e.WebMercator, t, n)
  1718. }; a.lngLatToXY = k; a.project = function (p, t) { if (c.isNone(p)) return null; const n = p.spatialReference; t = t && (null != t.wkid || null != t.wkt ? t : t.spatialReference); return q(n, t) ? l.equals(n, t) ? b.clone(p) : l.isWebMercator(t) ? r(p, k, e.WebMercator, !1, b.clone(p)) : l.isWGS84(t) ? r(p, m, e.WGS84, !1, b.clone(p)) : null : null }; a.webMercatorToGeographic = function (p, t = !1, n = b.clone(p)) { return r(p, m, e.WGS84, t, n) }; a.x2lon = function (p) { return p / d.earth.radius }; a.xyToLngLat = m; a.y2lat = function (p) {
  1719. return Math.PI / 2 - 2 * Math.atan(Math.exp(-p /
  1720. d.earth.radius))
  1721. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1722. })
  1723. }, "esri/geometry/support/Ellipsoid": function () {
  1724. define(["exports", "../../chunks/_rollupPluginBabelHelpers"], function (a, b) {
  1725. let c = function () {
  1726. function r(q, k, m, g) {
  1727. this.semiMajorAxis = q; this.flattening = k; this.outerAtmosphereRimWidth = m; this.semiMinorAxis = this.semiMajorAxis * (1 - this.flattening); this.halfSemiMajorAxis = this.semiMajorAxis / 2; this.halfCircumference = Math.PI * this.semiMajorAxis; this.metersPerDegree =
  1728. this.halfCircumference / 180; this.inverseFlattening = 1 / (1 - this.flattening) - 1; this.eccentricitySquared = g ? g : 2 * this.flattening - this.flattening * this.flattening; this.meanRadiusSemiAxes = (2 * this.semiMajorAxis + this.semiMinorAxis) / 3
  1729. } b._createClass(r, [{ key: "radius", get: function () { return this.semiMajorAxis } }]); return r
  1730. }(); const e = new c(6378137, 1 / 298.257223563, 3E5, .006694379990137799), d = new c(3396190, .005886007555525457, 23E4), l = new c(1737400, 0, 0); a.Ellipsoid = c; a.earth = e; a.mars = d; a.moon = l; Object.defineProperties(a,
  1731. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1732. })
  1733. }, "esri/geometry/support/contains": function () {
  1734. define(["exports", "../../core/maybe"], function (a, b) {
  1735. function c(k, m) { return e(k, m[0], m[1]) } function e(k, m, g, p) { return m >= k.xmin && m <= k.xmax && g >= k.ymin && g <= k.ymax ? null != p && k.hasZ ? p >= k.zmin && p <= k.zmax : !0 : !1 } function d(k, m) { return l(k.rings, m) } function l(k, m) { if (!k) return !1; if (!Array.isArray(k[0][0])) return r(!1, k, m); let g = !1; for (let p = 0, t = k.length; p < t; p++)g = r(g, k[p], m); return g } function r(k, m,
  1736. g) { const [p, t] = g; g = 0; for (let n = 0, u = m.length; n < u; n++) { g++; g === u && (g = 0); const [f, h] = m[n], [v, y] = m[g]; (h < t && y >= t || y < t && h >= t) && f + (t - h) / (y - h) * (v - f) < p && (k = !k) } return k } const q = [0, 0]; a.extentContainsCoords2D = c; a.extentContainsCoords3D = function (k, m) { return e(k, m[0], m[1], m[2]) }; a.extentContainsExtent = function (k, m) {
  1737. const { xmin: g, ymin: p, zmin: t, xmax: n, ymax: u, zmax: f } = m; return k.hasZ && m.hasZ ? e(k, g, p, t) && e(k, g, u, t) && e(k, n, u, t) && e(k, n, p, t) && e(k, g, p, f) && e(k, g, u, f) && e(k, n, u, f) && e(k, n, p, f) : e(k, g, p) && e(k, g, u) && e(k, n,
  1738. u) && e(k, n, p)
  1739. }; a.extentContainsMultipoint = function (k, m) { if (!m.points || m.points.length) return !1; for (const g of m.points) if (!c(k, g)) return !1; return !0 }; a.extentContainsPoint = function (k, m) { return b.isSome(m) ? e(k, m.x, m.y, m.z) : !1 }; a.extentContainsXYZ = e; a.polygonContainsCoords = d; a.polygonContainsPoint = function (k, m) { q[1] = m.y; q[0] = m.x; return d(k, q) }; a.ringsContainsCoords = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1740. })
  1741. }, "esri/geometry/support/intersectsBase": function () {
  1742. define(["exports",
  1743. "./contains"], function (a, b) {
  1744. function c(v, y) { return b.extentContainsPoint(v, y) } function e(v, y) { var B = v.hasZ && y.hasZ; if (v.xmin <= y.xmin) { var w = y.xmin; if (v.xmax < w) return !1 } else if (w = v.xmin, y.xmax < w) return !1; if (v.ymin <= y.ymin) { if (w = y.ymin, v.ymax < w) return !1 } else if (w = v.ymin, y.ymax < w) return !1; if (B && y.hasZ) if (v.zmin <= y.zmin) { if (B = y.zmin, v.zmax < B) return !1 } else if (B = v.zmin, y.zmax < B) return !1; return !0 } function d(v, y) {
  1745. const { points: B, hasZ: w } = y; y = w ? b.extentContainsCoords3D : b.extentContainsCoords2D; for (const x of B) if (y(v,
  1746. x)) return !0; return !1
  1747. } function l(v, y) { return r(v, y.rings) } function r(v, y) { g[0] = v.xmin; g[1] = v.ymax; p[0] = v.xmax; p[1] = v.ymax; t[0] = v.xmin; t[1] = v.ymin; n[0] = v.xmax; n[1] = v.ymin; for (var B of u) if (b.ringsContainsCoords(y, B)) return !0; for (const w of y) if (w.length) { y = w[0]; if (b.extentContainsCoords2D(v, y)) return !0; for (B = 1; B < w.length; B++) { const x = w[B]; if (b.extentContainsCoords2D(v, x) || k(y, x, f)) return !0; y = x } } return !1 } function q(v, y) {
  1748. g[0] = v.xmin; g[1] = v.ymax; p[0] = v.xmax; p[1] = v.ymax; t[0] = v.xmin; t[1] = v.ymin; n[0] = v.xmax;
  1749. n[1] = v.ymin; y = y.paths; for (const B of y) { if (!y.length) continue; let w = B[0]; if (b.extentContainsCoords2D(v, w)) return !0; for (let x = 1; x < B.length; x++) { const z = B[x]; if (b.extentContainsCoords2D(v, z) || k(w, z, f)) return !0; w = z } } return !1
  1750. } function k(v, y, B) { for (let w = 0; w < B.length; w++)if (m(v, y, B[w][0], B[w][1])) return !0; return !1 } function m(v, y, B, w, x) {
  1751. const [z, C] = v, [A, D] = y, [F, J] = B, [M, N] = w; var E = M - F; v = z - F; y = A - z; const G = N - J; B = C - J; w = D - C; const H = G * y - E * w; if (0 === H) return !1; E = (E * B - G * v) / H; v = (y * B - w * v) / H; return 0 <= E && 1 >= E && 0 <=
  1752. v && 1 >= v ? (x && (x[0] = z + E * (A - z), x[1] = C + E * (D - C)), !0) : !1
  1753. } const g = [0, 0], p = [0, 0], t = [0, 0], n = [0, 0], u = [g, p, t, n], f = [[t, g], [g, p], [p, n], [n, t]], h = [0, 0]; a.extentIntersectsExtent = e; a.extentIntersectsMultipoint = d; a.extentIntersectsPoint = c; a.extentIntersectsPolygon = l; a.extentIntersectsPolyline = q; a.extentIntersectsRings = r; a.getFeatureExtentIntersector = function (v) {
  1754. switch (v) {
  1755. case "esriGeometryEnvelope": case "extent": return e; case "esriGeometryMultipoint": case "multipoint": return d; case "esriGeometryPoint": case "point": return c;
  1756. case "esriGeometryPolygon": case "polygon": return l; case "esriGeometryPolyline": case "polyline": return q
  1757. }
  1758. }; a.isSelfIntersecting = function (v) {
  1759. for (let D = 0; D < v.length; D++) {
  1760. const F = v[D]; for (var y = 0; y < F.length - 1; y++) { var B = F[y], w = F[y + 1]; for (var x = D + 1; x < v.length; x++)for (var z = 0; z < v[x].length - 1; z++) { var C = v[x][z], A = v[x][z + 1]; if (m(B, w, C, A, h) && !(h[0] === B[0] && h[1] === B[1] || h[0] === C[0] && h[1] === C[1] || h[0] === w[0] && h[1] === w[1] || h[0] === A[0] && h[1] === A[1])) return !0 } } y = F.length; if (!(4 >= y)) for (B = 0; B < y - 3; B++)for (w = y - 1,
  1761. 0 === B && (w = y - 2), x = F[B], z = F[B + 1], C = B + 2; C < w; C++) { A = F[C]; const J = F[C + 1]; if (m(x, z, A, J, h) && !(h[0] === x[0] && h[1] === x[1] || h[0] === A[0] && h[1] === A[1] || h[0] === z[0] && h[1] === z[1] || h[0] === J[0] && h[1] === J[1])) return !0 }
  1762. } return !1
  1763. }; a.segmentIntersects = m; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1764. })
  1765. }, "esri/intl/locale": function () {
  1766. define(["exports"], function (a) {
  1767. function b() { var u, f; return null != (u = null != g ? g : null == (f = globalThis.navigator) ? void 0 : f.language) ? u : "en" } function c() {
  1768. void 0 ===
  1769. m && (m = b()); return m
  1770. } function e(u = c()) { u = /^([a-zA-Z]{2,3})(?:[_\-]\w+)*$/.exec(u); return null == u ? void 0 : u[1].toLowerCase() } function d() { var u; const f = null != (u = k) ? u : b(); m !== f && (m = f, [...n].forEach(h => { h.call(null, f) }), [...t].forEach(h => { h.call(null, f) })) } var l, r, q; let k = void 0, m = void 0; const g = null != (l = null == (r = globalThis.esriConfig) ? void 0 : r.locale) ? l : null == (q = globalThis.dojoConfig) ? void 0 : q.locale, p = { he: !0, ar: !0 }, t = [], n = []; null == globalThis.addEventListener ? void 0 : globalThis.addEventListener("languagechange",
  1771. d); a.beforeLocaleChange = function (u) { n.push(u); return { remove() { t.splice(n.indexOf(u), 1) } } }; a.getDefaultLocale = b; a.getLanguage = e; a.getLocale = c; a.onLocaleChange = function (u) { t.push(u); return { remove() { t.splice(t.indexOf(u), 1) } } }; a.prefersRTL = function (u = c()) { u = e(u); return void 0 !== u && (p[u] || !1) }; a.setLocale = function (u) { k = u ? u : void 0; d() }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1772. })
  1773. }, "esri/portal/PortalQueryParams": function () {
  1774. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/jsonMap ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../geometry/Extent ../geometry/SpatialReference ../geometry/support/webMercatorUtils".split(" "),
  1775. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  1776. var t; const n = new e.JSONMap({ avgRating: "avg-rating", numRatings: "num-ratings", numComments: "num-comments", numViews: "num-views" }); c = t = function (u) {
  1777. function f(v) { v = u.call(this, v) || this; v.categories = null; v.disableExtraQuery = !1; v.extent = null; v.filter = null; v.num = 10; v.query = null; v.sortField = null; v.start = 1; return v } a._inheritsLoose(f, u); var h = f.prototype; h.clone = function () {
  1778. return new t({
  1779. categories: this.categories ? d.clone(this.categories) : null, disableExtraQuery: this.disableExtraQuery,
  1780. extent: this.extent ? this.extent.clone() : null, filter: this.filter, num: this.num, query: this.query, sortField: this.sortField, sortOrder: this.sortOrder, start: this.start
  1781. })
  1782. }; h.toRequestOptions = function (v, y) {
  1783. let B; this.categories && (B = this.categories.map(z => Array.isArray(z) ? JSON.stringify(z) : z)); let w; if (this.extent) { var x = p.project(this.extent, g.WGS84); l.isSome(x) && (w = `${x.xmin},${x.ymin},${x.xmax},${x.ymax}`) } x = this.query; !this.disableExtraQuery && v.extraQuery && (x = "(" + x + ")" + v.extraQuery); v = {
  1784. categories: B, bbox: w,
  1785. q: x, filter: this.filter, num: this.num, sortField: null, sortOrder: null, start: this.start
  1786. }; this.sortField && (v.sortField = this.sortField.split(",").map(z => n.toJSON(z.trim())).join(","), v.sortOrder = this.sortOrder); return { query: { ...y, ...v } }
  1787. }; a._createClass(f, [{ key: "sortOrder", get: function () { return this._get("sortOrder") || "asc" }, set: function (v) { "asc" !== v && "desc" !== v || this._set("sortOrder", v) } }]); return f
  1788. }(c); b.__decorate([r.property()], c.prototype, "categories", void 0); b.__decorate([r.property()], c.prototype,
  1789. "disableExtraQuery", void 0); b.__decorate([r.property({ type: m })], c.prototype, "extent", void 0); b.__decorate([r.property()], c.prototype, "filter", void 0); b.__decorate([r.property()], c.prototype, "num", void 0); b.__decorate([r.property()], c.prototype, "query", void 0); b.__decorate([r.property()], c.prototype, "sortField", void 0); b.__decorate([r.property()], c.prototype, "sortOrder", null); b.__decorate([r.property()], c.prototype, "start", void 0); return c = t = b.__decorate([k.subclass("esri.portal.PortalQueryParams")],
  1790. c)
  1791. })
  1792. }, "esri/core/jsonMap": function () {
  1793. define(["exports", "./object"], function (a, b) {
  1794. let c = function () {
  1795. function e(l, r = { ignoreUnknown: !1, useNumericKeys: !1 }) { this.jsonToAPI = l; this.options = r; this.apiValues = []; this.jsonValues = []; this.apiToJSON = this._invertMap(l); this.apiValues = this._getKeysSorted(this.apiToJSON); this.jsonValues = this._getKeysSorted(this.jsonToAPI); this.read = q => this.fromJSON(q); this.write = (q, k, m) => { q = this.toJSON(q); void 0 !== q && b.setDeepValue(m, q, k) }; this.write.isJSONMapWriter = !0 } var d = e.prototype;
  1796. d.toJSON = function (l) { return this.apiToJSON.hasOwnProperty(l) ? (l = this.apiToJSON[l], this.options.useNumericKeys ? +l : l) : this.options.ignoreUnknown ? void 0 : l }; d.fromJSON = function (l) { return this.jsonToAPI.hasOwnProperty(l) ? this.jsonToAPI[l] : this.options.ignoreUnknown ? void 0 : l }; d._invertMap = function (l) { const r = {}; for (const q in l) r[l[q]] = q; return r }; d._getKeysSorted = function (l) { const r = []; for (const q in l) r.push(q); r.sort(); return r }; return e
  1797. }(); a.JSONMap = c; a.strict = function () {
  1798. return function (e, d) {
  1799. return new c(e,
  1800. { ignoreUnknown: !0, ...d })
  1801. }
  1802. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  1803. })
  1804. }, "esri/portal/PortalQueryResult": function () {
  1805. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  1806. c = function (k) {
  1807. function m(g) {
  1808. g = k.call(this, g) || this; g.nextQueryParams =
  1809. null; g.queryParams = null; g.results = null; g.total = null; return g
  1810. } a._inheritsLoose(m, k); return m
  1811. }(c); b.__decorate([e.property()], c.prototype, "nextQueryParams", void 0); b.__decorate([e.property()], c.prototype, "queryParams", void 0); b.__decorate([e.property()], c.prototype, "results", void 0); b.__decorate([e.property()], c.prototype, "total", void 0); return c = b.__decorate([q.subclass("esri.portal.PortalQueryResult")], c)
  1812. })
  1813. }, "esri/portal/PortalUser": function () {
  1814. define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./PortalFolder ./PortalGroup".split(" "),
  1815. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  1816. var t; d = t = function (n) {
  1817. function u(...h) { h = n.call(this, ...h) || this; h.access = null; h.created = null; h.culture = null; h.description = null; h.email = null; h.fullName = null; h.modified = null; h.orgId = null; h.portal = null; h.preferredView = null; h.privileges = null; h.region = null; h.role = null; h.roleId = null; h.sourceJSON = null; h.units = null; h.username = null; h.userType = null; return h } b._inheritsLoose(u, n); var f = u.prototype; f.addItem = function (h) {
  1818. const v = h && h.item; var y = h && h.data; h = h && h.folder; const B =
  1819. { method: "post" }; v && (B.query = v.createPostQuery(), null != y && ("string" === typeof y ? B.query.text = y : "object" === typeof y && (B.query.text = JSON.stringify(y)))); y = this.userContentUrl; h && (y += "/" + ("string" === typeof h ? h : h.id)); return this.portal._request(y + "/addItem", B).then(w => { v.id = w.id; v.portal = this.portal; return v.loaded ? v.reload() : v.load() })
  1820. }; f.deleteItem = function (h) {
  1821. let v = this.userContentUrl; h.ownerFolder && (v += "/" + h.ownerFolder); return this.portal._request(v + `/items/${h.id}/delete`, { method: "post" }).then(() => { h.id = null; h.portal = null })
  1822. }; f.deleteItems = function (h) { const v = this.userContentUrl + "/deleteItems"; var y = h.map(B => B.id); return y.length ? (y = { method: "post", query: { items: y.join(",") } }, this.portal._request(v, y).then(() => { h.forEach(B => { B.id = null; B.portal = null }) })) : Promise.resolve(void 0) }; f.fetchFolders = function () { return this.portal._request(this.userContentUrl, { query: { num: 1 } }).then(h => h && h.folders ? h.folders.map(v => { v = g.fromJSON(v); v.portal = this.portal; return v }) : []) }; f.fetchGroups = function () {
  1823. return this.portal._request(this.url).then(h =>
  1824. h && h.groups ? h.groups.map(v => { v = p.fromJSON(v); v.portal = this.portal; return v }) : [])
  1825. }; f.fetchItems = function (h) {
  1826. h || (h = {}); let v = this.userContentUrl; h.folder && (v += "/" + h.folder.id); let y; return (new Promise((B, w) => a(["./PortalItem"], x => B(Object.freeze(Object.defineProperty({ __proto__: null, default: x }, Symbol.toStringTag, { value: "Module" }))), w))).then(({ default: B }) => { y = B; return this.portal._request(v, { query: { folders: !1, num: h.num || 10, start: h.start || 1, sortField: h.sortField || "created", sortOrder: h.sortOrder || "asc" } }) }).then(B => { let w; return B && B.items ? (w = B.items.map(x => { x = y.fromJSON(x); x.portal = this.portal; return x }), Promise.all(w.map(x => x.load())).catch(x => x).then(() => ({ items: w, nextStart: B.nextStart, total: B.total }))) : { items: [], nextStart: -1, total: 0 } })
  1827. }; f.fetchTags = function () { return this.portal._request(this.url + "/tags").then(h => h.tags) }; f.getThumbnailUrl = function (h) { let v = this.thumbnailUrl; v && h && (v += `&w=${h}`); return v }; f.queryFavorites = function (h) {
  1828. return this.favGroupId ? (this._favGroup || (this._favGroup = new p({
  1829. id: this.favGroupId,
  1830. portal: this.portal
  1831. })), this._favGroup.queryItems(h)) : Promise.reject(new e("internal:unknown", "Unknown internal error", { internalError: "Unknown favGroupId" }))
  1832. }; f.toJSON = function () { throw new e("internal:not-yet-implemented", "PortalGroup.toJSON is not yet implemented"); }; u.fromJSON = function (h) { if (!h) return null; if (h.declaredClass) throw Error("JSON object is already hydrated"); const v = new t; v.sourceJSON = h; v.read(h); return v }; b._createClass(u, [{
  1833. key: "thumbnailUrl", get: function () {
  1834. const h = this.url, v = this.thumbnail;
  1835. return h && v ? this.portal._normalizeUrl(`${h}/info/${v}?f=json`) : null
  1836. }
  1837. }, { key: "userContentUrl", get: function () { const h = this.get("portal.restUrl"); return h ? `${h}/content/users/${this.username}` : null } }, { key: "url", get: function () { const h = this.get("portal.restUrl"); return h ? `${h}/community/users/${this.username}` : null } }]); return u
  1838. }(d.JSONSupport); c.__decorate([l.property()], d.prototype, "access", void 0); c.__decorate([l.property({ type: Date })], d.prototype, "created", void 0); c.__decorate([l.property()], d.prototype,
  1839. "culture", void 0); c.__decorate([l.property()], d.prototype, "description", void 0); c.__decorate([l.property()], d.prototype, "email", void 0); c.__decorate([l.property()], d.prototype, "favGroupId", void 0); c.__decorate([l.property()], d.prototype, "fullName", void 0); c.__decorate([l.property({ type: Date })], d.prototype, "modified", void 0); c.__decorate([l.property()], d.prototype, "orgId", void 0); c.__decorate([l.property()], d.prototype, "portal", void 0); c.__decorate([l.property()], d.prototype, "preferredView", void 0);
  1840. c.__decorate([l.property()], d.prototype, "privileges", void 0); c.__decorate([l.property()], d.prototype, "region", void 0); c.__decorate([l.property()], d.prototype, "role", void 0); c.__decorate([l.property()], d.prototype, "roleId", void 0); c.__decorate([l.property()], d.prototype, "sourceJSON", void 0); c.__decorate([l.property()], d.prototype, "thumbnail", void 0); c.__decorate([l.property({ readOnly: !0 })], d.prototype, "thumbnailUrl", null); c.__decorate([l.property()], d.prototype, "units", void 0); c.__decorate([l.property({ readOnly: !0 })],
  1841. d.prototype, "userContentUrl", null); c.__decorate([l.property({ readOnly: !0 })], d.prototype, "url", null); c.__decorate([l.property()], d.prototype, "username", void 0); c.__decorate([l.property()], d.prototype, "userType", void 0); return d = t = c.__decorate([m.subclass("esri.portal.PortalUser")], d)
  1842. })
  1843. }, "esri/portal/PortalFolder": function () {
  1844. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  1845. function (a, b, c, e, d, l, r, q, k) {
  1846. e = function (m) { function g(p) { p = m.call(this, p) || this; p.created = null; p.id = null; p.portal = null; p.title = null; p.username = null; return p } a._inheritsLoose(g, m); g.prototype.toJSON = function () { throw new c("internal:not-yet-implemented", "PortalFolder.toJSON is not yet implemented"); }; a._createClass(g, [{ key: "url", get: function () { const p = this.get("portal.restUrl"); return p ? `${p}/content/users/${this.username}/${this.id}` : null } }]); return g }(e.JSONSupport); b.__decorate([d.property({ type: Date })],
  1847. e.prototype, "created", void 0); b.__decorate([d.property()], e.prototype, "id", void 0); b.__decorate([d.property()], e.prototype, "portal", void 0); b.__decorate([d.property()], e.prototype, "title", void 0); b.__decorate([d.property({ readOnly: !0 })], e.prototype, "url", null); b.__decorate([d.property()], e.prototype, "username", void 0); return e = b.__decorate([k.subclass("esri.portal.PortalFolder")], e)
  1848. })
  1849. }, "esri/portal/PortalGroup": function () {
  1850. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./PortalQueryParams".split(" "),
  1851. function (a, b, c, e, d, l, r, q, k, m) {
  1852. e = function (g) {
  1853. function p(n) { n = g.call(this, n) || this; n.access = null; n.created = null; n.description = null; n.id = null; n.isInvitationOnly = !1; n.modified = null; n.owner = null; n.portal = null; n.snippet = null; n.sortField = null; n.sortOrder = null; n.tags = null; n.title = null; return n } a._inheritsLoose(p, g); var t = p.prototype; t.fetchCategorySchema = function (n) {
  1854. return this.portal._request(this.url + "/categorySchema", n).then(u => {
  1855. u = u.categorySchema || []; return u.some(f => "contentCategorySetsGroupQuery.LivingAtlas" ===
  1856. f.source) ? this._fetchCategorySchemaSet("LivingAtlas", n) : u
  1857. })
  1858. }; t.fetchMembers = function (n) { return this.portal._request(this.url + "/users", n) }; t.getThumbnailUrl = function (n) { let u = this.thumbnailUrl; u && n && (u += `&w=${n}`); return u }; t.toJSON = function () { throw new c("internal:not-yet-implemented", "PortalGroup.toJSON is not yet implemented"); }; t.queryItems = function (n, u) {
  1859. n = q.ensureType(m, n); if (5 < parseFloat(this.portal.currentVersion)) return n = n || new m, this.portal._queryPortal(`/content/groups/${this.id}/search`,
  1860. n, "PortalItem", u); n = n ? n.clone() : new m; n.query = "group:" + this.id + (n.query ? " " + n.query : ""); return this.portal.queryItems(n, u)
  1861. }; t._fetchCategorySchemaSet = function (n, u) {
  1862. return this.portal._fetchSelf(this.portal.authMode, !0, u).then(f => { if (f = f.contentCategorySetsGroupQuery) { const h = new m; h.disableExtraQuery = !0; h.num = 1; h.query = f; return this.portal.queryGroups(h, u) } throw new c("portal-group:fetchCategorySchema", "contentCategorySetsGroupQuery value not found"); }).then(f => {
  1863. if (f.total) {
  1864. f = f.results[0]; const h =
  1865. new m; h.num = 1; h.query = `typekeywords:"${n}"`; return f.queryItems(h, u)
  1866. } throw new c("portal-group:fetchCategorySchema", "contentCategorySetsGroupQuery group not found");
  1867. }).then(f => f.total ? f.results[0].fetchData("json", u).then(h => (h = h && h.categorySchema) && h.length ? h : []) : [])
  1868. }; a._createClass(p, [{ key: "thumbnailUrl", get: function () { const n = this.url, u = this.thumbnail; return n && u ? this.portal._normalizeUrl(`${n}/info/${u}?f=json`) : null } }, {
  1869. key: "url", get: function () {
  1870. const n = this.get("portal.restUrl"); return n ? n + "/community/groups/" +
  1871. this.id : null
  1872. }
  1873. }]); return p
  1874. }(e.JSONSupport); b.__decorate([d.property()], e.prototype, "access", void 0); b.__decorate([d.property({ type: Date })], e.prototype, "created", void 0); b.__decorate([d.property()], e.prototype, "description", void 0); b.__decorate([d.property()], e.prototype, "id", void 0); b.__decorate([d.property()], e.prototype, "isInvitationOnly", void 0); b.__decorate([d.property({ type: Date })], e.prototype, "modified", void 0); b.__decorate([d.property()], e.prototype, "owner", void 0); b.__decorate([d.property()],
  1875. e.prototype, "portal", void 0); b.__decorate([d.property()], e.prototype, "snippet", void 0); b.__decorate([d.property()], e.prototype, "sortField", void 0); b.__decorate([d.property()], e.prototype, "sortOrder", void 0); b.__decorate([d.property()], e.prototype, "tags", void 0); b.__decorate([d.property()], e.prototype, "thumbnail", void 0); b.__decorate([d.property({ readOnly: !0 })], e.prototype, "thumbnailUrl", null); b.__decorate([d.property()], e.prototype, "title", void 0); b.__decorate([d.property({ readOnly: !0 })], e.prototype,
  1876. "url", null); return e = b.__decorate([k.subclass("esri.portal.PortalGroup")], e)
  1877. })
  1878. }, "esri/portal/PortalItem": function () {
  1879. define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../assets ../core/Error ../core/JSONSupport ../core/lang ../core/Loadable ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../geometry/Extent ./Portal ./PortalItemResource ./PortalRating".split(" "),
  1880. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v) {
  1881. var y; l = y = function (B) {
  1882. function w(z) {
  1883. z = B.call(this, z) || this; z.access = null; z.accessInformation = null; z.apiKey = null; z.applicationProxies = null; z.avgRating = null; z.categories = null; z.created = null; z.culture = null; z.description = null; z.extent = null; z.groupCategories = null; z.id = null; z.itemControl = null; z.licenseInfo = null; z.modified = null; z.name = null; z.numComments = null; z.numRatings = null; z.numViews = null; z.owner = null; z.ownerFolder = null; z.portal = null; z.screenshots = null; z.size =
  1884. null; z.snippet = null; z.sourceJSON = null; z.spatialReference = null; z.tags = null; z.title = null; z.type = null; z.typeKeywords = null; z.url = null; return z
  1885. } b._inheritsLoose(w, B); w.from = function (z) { return p.ensureClass(y, z) }; var x = w.prototype; x.destroy = function () { this.portal = null }; x.readExtent = function (z) { return z && z.length ? new u(z[0][0], z[0][1], z[1][0], z[1][1]) : null }; x.load = function (z) {
  1886. this.portal || (this.portal = f.getDefault()); const C = this.portal.load(z).then(() => this.sourceJSON ? this.sourceJSON : this.id && this.itemUrl ?
  1887. this.portal._request(this.itemUrl, { signal: k.isSome(z) ? z.signal : null, query: { token: this.apiKey } }) : {}).then(A => { this.sourceJSON = A; this.read(A) }); this.addResolvingPromise(C); return Promise.resolve(this)
  1888. }; x.addRating = function (z) { const C = { method: "post", query: {} }; z instanceof v && (z = z.rating); isNaN(z) || "number" !== typeof z || (C.query.rating = z); return this.portal._request(this.itemUrl + "/addRating", C).then(() => new v({ rating: z, created: new Date })) }; x.clone = function () {
  1889. const z = {
  1890. access: this.access, accessInformation: this.accessInformation,
  1891. applicationProxies: r.clone(this.applicationProxies), avgRating: this.avgRating, categories: r.clone(this.categories), created: r.clone(this.created), culture: this.culture, description: this.description, extent: r.clone(this.extent), groupCategories: r.clone(this.groupCategories), id: this.id, itemControl: this.itemControl, licenseInfo: this.licenseInfo, modified: r.clone(this.modified), name: this.name, numComments: this.numComments, numRatings: this.numRatings, numViews: this.numViews, owner: this.owner, ownerFolder: this.ownerFolder,
  1892. portal: this.portal, screenshots: r.clone(this.screenshots), size: this.size, snippet: this.snippet, spatialReference: this.spatialReference, tags: r.clone(this.tags), thumbnail: this.thumbnail, title: this.title, type: this.type, typeKeywords: r.clone(this.typeKeywords), url: this.url
  1893. }; this.loaded && (z.loadStatus = "loaded"); return (new y({ sourceJSON: this.sourceJSON })).set(z)
  1894. }; x.createPostQuery = function () {
  1895. const z = this.toJSON(); for (var C of ["tags", "typeKeywords", "categories"]) z[C] && (z[C] = z[C].join(", ")); ({ extent: C } = z); C &&
  1896. (z.extent = JSON.stringify(C)); return z
  1897. }; x.deleteRating = function () { return this.portal._request(this.itemUrl + "/deleteRating", { method: "post" }).then(() => { }) }; x.fetchData = function (z = "json", C) { return this.portal._request(this.itemUrl + "/data", { responseType: z, ...C, query: { token: this.apiKey } }) }; x.fetchRating = function (z) { return this.portal._request(this.itemUrl + "/rating", { query: { token: this.apiKey }, ...z }).then(C => null != C.rating ? (C.created = new Date(C.created), new v(C)) : null) }; x.fetchRelatedItems = function (z, C) {
  1898. return this.portal._requestToTypedArray(this.itemUrl +
  1899. "/relatedItems", { query: { ...z, token: this.apiKey }, ...C }, y)
  1900. }; x.getThumbnailUrl = function (z) { let C = this.thumbnailUrl; C && z && (C += `&w=${z}`); return C }; x.reload = function () { return this.portal._request(this.itemUrl, { cacheBust: !0, query: { token: this.apiKey } }).then(z => { this.sourceJSON = z; this.read(z); return this }) }; x.update = function (z) {
  1901. return this.id ? this.load().then(() => this.portal._signIn()).then(() => {
  1902. const C = z && z.data, A = { method: "post" }; A.query = this.createPostQuery(); for (const D in A.query) null === A.query[D] && (A.query[D] =
  1903. ""); A.query.clearEmptyFields = !0; null != C && ("string" === typeof C ? A.query.text = C : "object" === typeof C && (A.query.text = JSON.stringify(C))); return this.portal._request(`${this.userItemUrl}/update`, A).then(() => this.reload())
  1904. }) : Promise.reject(new d("portal:item-does-not-exist", "The item does not exist yet and cannot be updated"))
  1905. }; x.updateThumbnail = function (z) {
  1906. return this.id ? this.load().then(() => this.portal._signIn()).then(() => {
  1907. const C = z.thumbnail, A = z.filename, D = { method: "post" }; if ("string" === typeof C) m.isDataProtocol(C) ?
  1908. D.query = { data: C } : D.query = { url: m.makeAbsolute(C) }, k.isSome(A) && (D.query.filename = A); else { const F = new FormData; k.isSome(A) ? F.append("file", C, A) : F.append("file", C); D.body = F } return this.portal._request(`${this.userItemUrl}/updateThumbnail`, D).then(() => this.reload())
  1909. }) : Promise.reject(new d("portal:item-does-not-exist", "The item does not exist yet and cannot be updated"))
  1910. }; x.fetchResources = function () {
  1911. var z = b._asyncToGenerator(function* (C = {}, A) {
  1912. return (yield new Promise((D, F) => a(["./support/resourceUtils"],
  1913. D, F))).fetchResources(this, C, A)
  1914. }); return function () { return z.apply(this, arguments) }
  1915. }(); x.addResource = function () { var z = b._asyncToGenerator(function* (C, A, D) { const F = yield new Promise((J, M) => a(["./support/resourceUtils"], J, M)); C.portalItem = this; return F.addOrUpdateResource(C, "add", A, D) }); return function (C, A, D) { return z.apply(this, arguments) } }(); x.removeResource = function () {
  1916. var z = b._asyncToGenerator(function* (C, A) {
  1917. const D = yield new Promise((F, J) => a(["./support/resourceUtils"], F, J)); if (C.portalItem && C.portalItem.itemUrl !==
  1918. this.itemUrl) throw new d("removeresource:portal-item-mismatch", "The portal item associated with the provided resource does not match the item"); return D.removeResource(this, C, A)
  1919. }); return function (C, A) { return z.apply(this, arguments) }
  1920. }(); x.removeAllResources = function () { var z = b._asyncToGenerator(function* (C) { return (yield new Promise((A, D) => a(["./support/resourceUtils"], A, D))).removeAllResources(this, C) }); return function (C) { return z.apply(this, arguments) } }(); x.resourceFromPath = function (z) {
  1921. return new h({
  1922. portalItem: this,
  1923. path: z
  1924. })
  1925. }; x.toJSON = function () {
  1926. var z = this.extent; z = {
  1927. accessInformation: this.accessInformation, categories: r.clone(this.categories), created: this.created && this.created.getTime(), description: this.description, extent: z && [[z.xmin, z.ymin], [z.xmax, z.ymax]], id: this.id, licenseInfo: this.licenseInfo, modified: this.modified && this.modified.getTime(), name: this.name, owner: this.owner, ownerFolder: this.ownerFolder, snippet: this.snippet, spatialReference: this.spatialReference, tags: r.clone(this.tags), thumbnail: this.thumbnail,
  1928. title: this.title, type: this.type, typeKeywords: r.clone(this.typeKeywords), url: this.url
  1929. }; return r.fixJson(z)
  1930. }; w.fromJSON = function (z) { if (!z) return null; if (z.declaredClass) throw Error("JSON object is already hydrated"); return new y({ sourceJSON: z }) }; x._getPostQuery = function () { const z = this.toJSON(); for (const C in z) "tags" === C && null !== z[C] && (z[C] = z[C].join(", ")), "typeKeywords" === C && null !== z[C] && (z[C] = z[C].join(", ")), "extent" === C && z[C] && (z[C] = JSON.stringify(z[C])); return z }; b._createClass(w, [{
  1931. key: "displayName",
  1932. get: function () {
  1933. const z = this.type, C = this.typeKeywords || []; let A = z; "Feature Service" === z || "Feature Collection" === z ? A = C.includes("Table") ? "Table" : C.includes("Route Layer") ? "Route Layer" : C.includes("Markup") ? "Markup" : "Feature Layer" : "Image Service" === z ? A = C.includes("Elevation 3D Layer") ? "Elevation Layer" : C.includes("Tiled Imagery") ? "Tiled Imagery Layer" : "Imagery Layer" : "Scene Service" === z ? A = "Scene Layer" : "Video Service" === z ? A = "Video Layer" : "Scene Package" === z ? A = "Scene Layer Package" : "Stream Service" ===
  1934. z ? A = "Feature Layer" : "Geoprocessing Service" === z && this.portal && this.portal.isPortal ? A = C.includes("Web Tool") ? "Tool" : "Geoprocessing Service" : "Geocoding Service" === z ? A = "Locator" : "Geoenrichment Service" === z ? A = "GeoEnrichment Service" : "Microsoft Powerpoint" === z ? A = "Microsoft PowerPoint" : "GeoJson" === z ? A = "GeoJSON" : "Globe Service" === z ? A = "Globe Layer" : "Vector Tile Service" === z ? A = "Tile Layer" : "netCDF" === z ? A = "NetCDF" : "Map Service" === z ? A = C.includes("Spatiotemporal") || !C.includes("Hosted Service") && !C.includes("Tiled") ||
  1935. C.includes("Relational") ? "Map Image Layer" : "Tile Layer" : z && z.toLowerCase().includes("add in") ? A = z.replace(/(add in)/gi, "Add-In") : "datastore catalog service" === z ? A = "Big Data File Share" : "Compact Tile Package" === z ? A = "Tile Package (tpkx)" : "OGCFeatureServer" === z ? A = "OGC Feature Layer" : "web mapping application" === z && C.includes("configurableApp") && (A = "Instant App"); return A
  1936. }
  1937. }, {
  1938. key: "iconUrl", get: function () {
  1939. var z = this.type && this.type.toLowerCase() || ""; const C = this.typeKeywords || []; let A = !1, D = !1, F = !1, J = !1,
  1940. M = !1, N = !1; 0 < z.indexOf("service") || "feature collection" === z || "kml" === z || "wms" === z || "wmts" === z || "wfs" === z ? (A = C.includes("Hosted Service"), "feature service" === z || "feature collection" === z || "kml" === z || "wfs" === z ? (D = C.includes("Table"), F = C.includes("Route Layer"), J = C.includes("Markup"), M = C.includes("Spatiotemporal"), N = C.includes("UtilityNetwork"), z = M && D ? "spatiotemporaltable" : D ? "table" : F ? "routelayer" : J ? "markup" : M ? "spatiotemporal" : A ? "featureshosted" : N ? "utilitynetwork" : "features") : z = "map service" === z || "wms" ===
  1941. z || "wmts" === z ? A || C.includes("Tiled") || "wmts" === z ? "maptiles" : "mapimages" : "scene service" === z ? C.includes("Line") ? "sceneweblayerline" : C.includes("3DObject") ? "sceneweblayermultipatch" : C.includes("Point") ? "sceneweblayerpoint" : C.includes("IntegratedMesh") ? "sceneweblayermesh" : C.includes("PointCloud") ? "sceneweblayerpointcloud" : C.includes("Polygon") ? "sceneweblayerpolygon" : C.includes("Building") ? "sceneweblayerbuilding" : C.includes("Voxel") ? "sceneweblayervoxel" : "sceneweblayer" : "image service" === z ? C.includes("Elevation 3D Layer") ?
  1942. "elevationlayer" : C.includes("Tiled Imagery") ? "tiledimagerylayer" : "imagery" : "stream service" === z ? "streamlayer" : "video service" === z ? "mediaservice" : "vector tile service" === z ? "vectortile" : "datastore catalog service" === z ? "datastorecollection" : "geocoding service" === z ? "geocodeservice" : "geoprocessing service" === z ? C.includes("Web Tool") && this.portal && this.portal.isPortal ? "tool" : "layers" : "geodata service" === z ? "geodataservice" : "layers") : z = "web map" === z || "cityengine web scene" === z ? "maps" : "web scene" === z ? C.includes("ViewingMode-Local") ?
  1943. "webscenelocal" : "websceneglobal" : "web mapping application" === z && C.includes("configurableApp") ? "instantapps" : "web mapping application" === z || "mobile application" === z || "application" === z || "operation view" === z || "desktop application" === z ? "apps" : "map document" === z || "map package" === z || "published map" === z || "scene document" === z || "globe document" === z || "basemap package" === z || "mobile basemap package" === z || "mobile map package" === z || "project package" === z || "project template" === z || "pro map" === z || "layout" === z || "layer" ===
  1944. z && C.includes("ArcGIS Pro") || "explorer map" === z && C.indexOf("Explorer Document") ? "mapsgray" : "service definition" === z || "csv" === z || "shapefile" === z || "cad drawing" === z || "geojson" === z || "360 vr experience" === z || "netcdf" === z || "administrative report" === z ? "datafiles" : "explorer add in" === z || "desktop add in" === z || "windows viewer add in" === z || "windows viewer configuration" === z ? "appsgray" : "arcgis pro add in" === z || "arcgis pro configuration" === z ? "addindesktop" : "rule package" === z || "file geodatabase" === z || "sqlite geodatabase" ===
  1945. z || "csv collection" === z || "kml collection" === z || "windows mobile package" === z || "map template" === z || "desktop application template" === z || "gml" === z || "arcpad package" === z || "code sample" === z || "form" === z || "document link" === z || "earth configuration" === z || "operations dashboard add in" === z || "rules package" === z || "image" === z || "workflow manager package" === z || "explorer map" === z && C.includes("Explorer Mapping Application") || C.includes("Document") ? "datafilesgray" : "network analysis service" === z || "geoprocessing service" ===
  1946. z || "geodata service" === z || "geometry service" === z || "geoprocessing package" === z || "locator package" === z || "geoprocessing sample" === z || "workflow manager service" === z ? "toolsgray" : "layer" === z || "layer package" === z || "explorer layer" === z ? "layersgray" : "scene package" === z ? "scenepackage" : "mobile scene package" === z ? "mobilescenepackage" : "tile package" === z || "compact tile package" === z ? "tilepackage" : "task file" === z ? "taskfile" : "report template" === z ? "report-template" : "statistical data collection" === z ? "statisticaldatacollection" :
  1947. "insights workbook" === z ? "workbook" : "insights model" === z ? "insightsmodel" : "insights page" === z ? "insightspage" : "insights theme" === z ? "insightstheme" : "hub initiative" === z ? "hubinitiative" : "hubpage" === z ? "hubpage" : "hub event" === z ? "hubevent" : "hub site application" === z ? "hubsite" : "hub project" === z ? "hubproject" : "relational database connection" === z ? "relationaldatabaseconnection" : "big data file share" === z ? "datastorecollection" : "image collection" === z ? "imagecollection" : "style" === z ? "style" : "desktop style" === z ? "desktopstyle" :
  1948. "dashboard" === z ? "dashboard" : "raster function template" === z ? "rasterprocessingtemplate" : "vector tile package" === z ? "vectortilepackage" : "ortho mapping project" === z ? "orthomappingproject" : "ortho mapping template" === z ? "orthomappingtemplate" : "solution" === z ? "solutions" : "geopackage" === z ? "geopackage" : "deep learning package" === z ? "deeplearningpackage" : "real time analytic" === z ? "realtimeanalytics" : "big data analytic" === z ? "bigdataanalytics" : "feed" === z ? "feed" : "excalibur imagery project" === z ? "excaliburimageryproject" :
  1949. "notebook" === z ? "notebook" : "storymap" === z ? "storymap" : "survey123 add in" === z ? "survey123addin" : "mission" === z ? "mission" : "mission report" === z ? "missionreport" : "quickcapture project" === z ? "quickcaptureproject" : "pro report" === z ? "proreport" : "urban model" === z ? "urbanmodel" : "web experience" === z ? "experiencebuilder" : "web experience template" === z ? "webexperiencetemplate" : "experience builder widget" === z ? "experiencebuilderwidget" : "experience builder widget package" === z ? "experiencebuilderwidgetpackage" : "workflow" ===
  1950. z ? "workflow" : "insights script" === z ? "insightsscript" : "kernel gateway connection" === z ? "kernelgatewayconnection" : "hub initiative template" === z ? "hubinitiativetemplate" : "storymap theme" === z ? "storymaptheme" : "knowledge graph" === z ? "knowledgegraph" : "native application" === z ? "nativeapp" : "native application installer" === z ? "nativeappinstaller" : "link chart" === z ? "linkchart" : "investigation" === z ? "investigation" : "ogcfeatureserver" === z ? "features" : "pro project" === z ? "proproject" : "insights workbook package" === z ? "insightsworkbookpackage" :
  1951. "apache parquet" === z ? "apacheparquet" : "notebook code snippets" === z ? "notebookcodesnippets" : "suitability model" === z ? "suitabilitymodel" : "esri classifier definition" === z ? "classifierdefinition" : "esri classification schema" === z ? "classificationschema" : "insights data engineering workbook" === z ? "dataengineeringworkbook" : "insights data engineering model" === z ? "dataengineeringmodel" : "deep learning studio project" === z ? "deeplearningproject" : "maps"; return z ? e.getAssetUrl("esri/images/portal/" + z + "16.png") : null
  1952. }
  1953. }, {
  1954. key: "isLayer",
  1955. get: function () { return "Map Service;Feature Service;Feature Collection;Scene Service;Image Service;Stream Service;Vector Tile Service;WMTS;WMS".split(";").includes(this.type) }
  1956. }, { key: "itemUrl", get: function () { const z = this.get("portal.restUrl"); return z && this.id ? `${z}/content/items/${this.id}` : null } }, { key: "thumbnailUrl", get: function () { const z = this.itemUrl, C = this.thumbnail; return z && C ? this.portal._normalizeUrl(`${z}/info/${C}?f=json`) : null } }, {
  1957. key: "userItemUrl", get: function () {
  1958. const z = this.get("portal.restUrl");
  1959. if (!z) return null; const C = this.owner || this.get("portal.user.username"); return C ? `${z}/content/users/${this.ownerFolder ? `${C}/${this.ownerFolder}` : C}/items/${this.id}` : null
  1960. }
  1961. }]); return w
  1962. }(l.JSONSupportMixin(q)); c.__decorate([g.property({ type: ["private", "shared", "org", "public"] })], l.prototype, "access", void 0); c.__decorate([g.property()], l.prototype, "accessInformation", void 0); c.__decorate([g.property({ type: String })], l.prototype, "apiKey", void 0); c.__decorate([g.property({ json: { read: { source: "appProxies" } } })],
  1963. l.prototype, "applicationProxies", void 0); c.__decorate([g.property()], l.prototype, "avgRating", void 0); c.__decorate([g.property()], l.prototype, "categories", void 0); c.__decorate([g.property({ type: Date })], l.prototype, "created", void 0); c.__decorate([g.property()], l.prototype, "culture", void 0); c.__decorate([g.property()], l.prototype, "description", void 0); c.__decorate([g.property({ readOnly: !0 })], l.prototype, "displayName", null); c.__decorate([g.property({ type: u })], l.prototype, "extent", void 0); c.__decorate([t.reader("extent")],
  1964. l.prototype, "readExtent", null); c.__decorate([g.property()], l.prototype, "groupCategories", void 0); c.__decorate([g.property({ readOnly: !0 })], l.prototype, "iconUrl", null); c.__decorate([g.property()], l.prototype, "id", void 0); c.__decorate([g.property({ readOnly: !0 })], l.prototype, "isLayer", null); c.__decorate([g.property()], l.prototype, "itemControl", void 0); c.__decorate([g.property({ readOnly: !0 })], l.prototype, "itemUrl", null); c.__decorate([g.property()], l.prototype, "licenseInfo", void 0); c.__decorate([g.property({ type: Date })],
  1965. l.prototype, "modified", void 0); c.__decorate([g.property()], l.prototype, "name", void 0); c.__decorate([g.property()], l.prototype, "numComments", void 0); c.__decorate([g.property()], l.prototype, "numRatings", void 0); c.__decorate([g.property()], l.prototype, "numViews", void 0); c.__decorate([g.property()], l.prototype, "owner", void 0); c.__decorate([g.property()], l.prototype, "ownerFolder", void 0); c.__decorate([g.property({ type: f })], l.prototype, "portal", void 0); c.__decorate([g.property()], l.prototype, "screenshots",
  1966. void 0); c.__decorate([g.property()], l.prototype, "size", void 0); c.__decorate([g.property()], l.prototype, "snippet", void 0); c.__decorate([g.property()], l.prototype, "sourceJSON", void 0); c.__decorate([g.property({ type: String })], l.prototype, "spatialReference", void 0); c.__decorate([g.property()], l.prototype, "tags", void 0); c.__decorate([g.property()], l.prototype, "thumbnail", void 0); c.__decorate([g.property({ readOnly: !0 })], l.prototype, "thumbnailUrl", null); c.__decorate([g.property()], l.prototype, "title", void 0);
  1967. c.__decorate([g.property()], l.prototype, "type", void 0); c.__decorate([g.property()], l.prototype, "typeKeywords", void 0); c.__decorate([g.property({ type: String, json: { read(B, w) { var x; if ("KML" !== w.type) return B; w = null == (x = this.portal) ? void 0 : x.restUrl; B || (B = w && this.id ? `${w}/content/items/${this.id}/data` : null); return B } } })], l.prototype, "url", void 0); c.__decorate([g.property({ readOnly: !0 })], l.prototype, "userItemUrl", null); return l = y = c.__decorate([n.subclass("esri.portal.PortalItem")], l)
  1968. })
  1969. }, "esri/assets": function () {
  1970. define("exports ./config ./request ./core/Error ./core/Logger ./core/urlUtils".split(" "),
  1971. function (a, b, c, e, d, l) { function r(k) { if (!b.assetsPath) throw q.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"), new e("assets:path-not-set", "config.assetsPath is not set"); return l.join(b.assetsPath, k) } const q = d.getLogger("esri.assets"); a.fetchAsset = function (k, m) { return c(r(k), m) }; a.getAssetUrl = r; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  1972. }, "esri/portal/PortalItemResource": function () {
  1973. define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Error ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/subclass".split(" "),
  1974. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  1975. const n = l.getLogger("esri.portal.PortalItemResource"); e = function (u) {
  1976. function f(v) { v = u.call(this, v) || this; v.portalItem = null; return v } b._inheritsLoose(f, u); var h = f.prototype; h.normalizeCtorArgs = function (v) { return v && v.portalItem && v.path ? { ...v, path: this._normalizePath(v.path, v.portalItem) } : v }; h._castPath = function (v) { return this._normalizePath(v, this.portalItem) }; h.fetch = function (v = "json", y) {
  1977. const B = this.url; if (r.isNone(B)) throw new d("portal-item-resource:fetch", "Portal item resource does not refer to a valid item or path");
  1978. return this.portalItem.portal._request(B, { responseType: v, query: { token: this.portalItem.apiKey }, signal: r.get(y, "signal") })
  1979. }; h.update = function () { var v = b._asyncToGenerator(function* (y, B) { return (yield new Promise((w, x) => a(["./support/resourceUtils"], w, x))).addOrUpdateResource(this, "update", y, B) }); return function (y, B) { return v.apply(this, arguments) } }(); h.hasPath = function () { return r.isSome(this.path) }; h._normalizePath = function (v, y) {
  1980. if (r.isNone(v)) return v; v = v.replace(/^\/+/, ""); r.isSome(y) && q.isAbsolute(v) &&
  1981. (v = q.makeRelative(v, y.itemUrl)); return v.replace(/^\/+/, "").replace(/^(\.\/)?resources\//, "")
  1982. }; b._createClass(f, [{ key: "path", set: function (v) { r.isSome(v) && q.isAbsolute(v) ? n.error("portalitemresource:invalid-path", "A portal item resource path must be relative") : this._set("path", v) } }, { key: "url", get: function () { return this.portalItem && this.path ? `${this.portalItem.itemUrl}/resources/${this.path}` : null } }, { key: "itemRelativeUrl", get: function () { return this.portalItem && this.path ? `./resources/${this.path}` : null } }]);
  1983. return f
  1984. }(e); c.__decorate([k.property()], e.prototype, "portalItem", void 0); c.__decorate([k.property({ type: String, value: null })], e.prototype, "path", null); c.__decorate([p.cast("path")], e.prototype, "_castPath", null); c.__decorate([k.property({ type: String, readOnly: !0 })], e.prototype, "url", null); c.__decorate([k.property({ type: String, readOnly: !0 })], e.prototype, "itemRelativeUrl", null); return e = c.__decorate([t.subclass("esri.portal.PortalItemResource")], e)
  1985. })
  1986. }, "esri/portal/PortalRating": function () {
  1987. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  1988. function (a, b, c, e, d, l, r, q) { c = function (k) { function m(g) { g = k.call(this, g) || this; g.created = null; g.rating = null; return g } a._inheritsLoose(m, k); return m }(c); b.__decorate([e.property()], c.prototype, "created", void 0); b.__decorate([e.property()], c.prototype, "rating", void 0); return c = b.__decorate([q.subclass("esri.portal.PortalRating")], c) })
  1989. }, "esri/support/basemapDefinitions": function () {
  1990. define(["exports", "../chunks/_rollupPluginBabelHelpers", "../assets", "../intl/messages"], function (a, b, c, e) {
  1991. function d() {
  1992. d = b._asyncToGenerator(function* (l) {
  1993. if (l) {
  1994. var r =
  1995. l.includes("-vector") ? l.slice(0, l.indexOf("-vector")) : l, q = yield e.fetchMessageBundle("esri/t9n/basemaps"); return q[l] || q[r]
  1996. }
  1997. }); return d.apply(this, arguments)
  1998. } a.esriBasemapDefinitions = {
  1999. streets: {
  2000. id: "streets", classic: !0, deprecated: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets.jpg") }, baseMapLayers: [{
  2001. id: "streets-base-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Street Map", showLegend: !1,
  2002. visibility: !0, opacity: 1
  2003. }]
  2004. }, satellite: { id: "satellite", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/satellite.jpg") }, baseMapLayers: [{ id: "satellite-base-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Imagery", showLegend: !1, visibility: !0, opacity: 1 }] }, hybrid: {
  2005. id: "hybrid", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/hybrid.jpg") }, baseMapLayers: [{
  2006. id: "hybrid-base-layer",
  2007. url: "//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Imagery", showLegend: !1, visibility: !0, opacity: 1
  2008. }, { id: "hybrid-reference-layer", styleUrl: "https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json", layerType: "VectorTileLayer", title: "Hybrid Reference Layer", isReference: !0, showLegend: !1, visibility: !0, opacity: 1 }]
  2009. }, terrain: {
  2010. id: "terrain", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/terrain.jpg") },
  2011. baseMapLayers: [{ id: "terrain-base-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Terrain Base", showLegend: !1, visibility: !0, opacity: 1 }, { id: "terrain-reference-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Reference Overlay", isReference: !0, showLegend: !1, visibility: !0, opacity: 1 }]
  2012. }, topo: {
  2013. id: "topo",
  2014. classic: !0, deprecated: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/topo.jpg") }, baseMapLayers: [{ id: "topo-base-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Topo Map", showLegend: !1, visibility: !0, opacity: 1 }]
  2015. }, gray: {
  2016. id: "gray", classic: !0, deprecated: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/gray.jpg") }, baseMapLayers: [{
  2017. id: "gray-base-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer",
  2018. layerType: "ArcGISTiledMapServiceLayer", title: "World Light Gray Base", showLegend: !1, visibility: !0, opacity: 1
  2019. }, { id: "gray-reference-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Light Gray Reference", isReference: !0, showLegend: !1, visibility: !0, opacity: 1 }]
  2020. }, "dark-gray": {
  2021. id: "dark-gray", classic: !0, deprecated: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/dark-gray.jpg") }, baseMapLayers: [{
  2022. id: "dark-gray-base-layer",
  2023. url: "//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Dark Gray Base", showLegend: !1, visibility: !0, opacity: 1
  2024. }, { id: "dark-gray-reference-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Dark Gray Reference", isReference: !0, showLegend: !1, visibility: !0, opacity: 1 }]
  2025. }, oceans: {
  2026. id: "oceans", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/oceans.jpg") },
  2027. baseMapLayers: [{ id: "oceans-base-layer", url: "//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Ocean Base", showLegend: !1, visibility: !0, opacity: 1 }, { id: "oceans-reference-layer", url: "//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Ocean Reference", isReference: !0, showLegend: !1, visibility: !0, opacity: 1 }]
  2028. }, "national-geographic": {
  2029. id: "national-geographic",
  2030. classic: !0, deprecated: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/national-geographic.jpg") }, baseMapLayers: [{ id: "national-geographic-base-layer", url: "//services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer", title: "NatGeo World Map", showLegend: !1, layerType: "ArcGISTiledMapServiceLayer", visibility: !0, opacity: 1 }]
  2031. }, osm: {
  2032. id: "osm", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/osm.jpg") }, baseMapLayers: [{
  2033. id: "osm-base-layer", layerType: "OpenStreetMap",
  2034. title: "Open Street Map", showLegend: !1, visibility: !0, opacity: 1
  2035. }]
  2036. }, "dark-gray-vector": {
  2037. id: "dark-gray-vector", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/dark-gray-vector.jpg") }, baseMapLayers: [{ id: "dark-gray-base-layer", styleUrl: "https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json", layerType: "VectorTileLayer", title: "Dark Gray Base", visibility: !0, opacity: 1 }, {
  2038. id: "dark-gray-reference-layer", styleUrl: "https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",
  2039. layerType: "VectorTileLayer", title: "Dark Gray Reference", isReference: !0, visibility: !0, opacity: 1
  2040. }]
  2041. }, "gray-vector": {
  2042. id: "gray-vector", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/gray-vector.jpg") }, baseMapLayers: [{ id: "gray-base-layer", styleUrl: "https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json", layerType: "VectorTileLayer", title: "Light Gray Base", visibility: !0, opacity: 1 }, {
  2043. id: "gray-reference-layer", styleUrl: "https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",
  2044. layerType: "VectorTileLayer", title: "Light Gray Reference", isReference: !0, visibility: !0, opacity: 1
  2045. }]
  2046. }, "streets-vector": { id: "streets-vector", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-vector.jpg") }, baseMapLayers: [{ id: "streets-vector-base-layer", styleUrl: "//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json", layerType: "VectorTileLayer", title: "World Streets", visibility: !0, opacity: 1 }] }, "topo-vector": {
  2047. id: "topo-vector",
  2048. classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/topo-vector.jpg") }, baseMapLayers: [{ id: "world-hillshade-layer", url: "//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Hillshade", showLegend: !1, visibility: !0, opacity: 1 }, {
  2049. id: "topo-vector-base-layer", styleUrl: "//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json", layerType: "VectorTileLayer", title: "World Topo",
  2050. visibility: !0, opacity: 1
  2051. }]
  2052. }, "streets-night-vector": { id: "streets-night-vector", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-night.jpg") }, baseMapLayers: [{ id: "streets-night-vector-base-layer", styleUrl: "//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json", layerType: "VectorTileLayer", title: "World Streets Night", visibility: !0, opacity: 1 }] }, "streets-relief-vector": {
  2053. id: "streets-relief-vector", classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-relief.jpg") },
  2054. baseMapLayers: [{ id: "world-hillshade-layer", url: "//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer", layerType: "ArcGISTiledMapServiceLayer", title: "World Hillshade", showLegend: !1, visibility: !0, opacity: 1 }, { id: "streets-relief-vector-base-layer", styleUrl: "//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json", title: "World Streets Relief", layerType: "VectorTileLayer", visibility: !0, opacity: 1 }]
  2055. }, "streets-navigation-vector": {
  2056. id: "streets-navigation-vector",
  2057. classic: !0, get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-navigation.jpg") }, baseMapLayers: [{ id: "streets-navigation-vector-base-layer", styleUrl: "//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json", layerType: "VectorTileLayer", title: "World Streets Navigation", visibility: !0, opacity: 1 }]
  2058. }, "arcgis-imagery": {
  2059. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/hybrid.jpg") }, title: "Imagery Hybrid", baseMapLayers: [{
  2060. layerType: "ArcGISTiledMapServiceLayer",
  2061. showLegend: !1, title: "World Imagery", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"
  2062. }, { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels", title: "Hybrid Reference Layer", isReference: !0 }]
  2063. }, "arcgis-imagery-standard": {
  2064. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/satellite.jpg") }, title: "Imagery", baseMapLayers: [{
  2065. layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Imagery",
  2066. url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"
  2067. }]
  2068. }, "arcgis-imagery-labels": { title: "Hybrid [Reference]", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels", title: "Hybrid Reference Layer", isReference: !0 }] }, "arcgis-light-gray": {
  2069. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/gray-vector.jpg") }, title: "Light Gray Canvas", baseMapLayers: [{
  2070. layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",
  2071. title: "Light Gray Canvas Base"
  2072. }, { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels", title: "Light Gray Canvas Labels", isReference: !0 }]
  2073. }, "arcgis-dark-gray": {
  2074. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/dark-gray.jpg") }, title: "Dark Gray Canvas", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base", title: "Dark Gray Canvas Base" }, {
  2075. layerType: "VectorTileLayer",
  2076. styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels", title: "Dark Gray Canvas Labels", isReference: !0
  2077. }]
  2078. }, "arcgis-navigation": { get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-navigation.jpg") }, title: "Navigation", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation", title: "World Navigation Map" }] }, "arcgis-navigation-night": {
  2079. title: "Navigation (Dark Mode)", baseMapLayers: [{
  2080. layerType: "VectorTileLayer",
  2081. styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight", title: "World Navigation Map (Dark Mode)"
  2082. }]
  2083. }, "arcgis-streets": { get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-vector.jpg") }, title: "Streets", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets", title: "World Street Map" }] }, "arcgis-streets-night": {
  2084. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-night.jpg") },
  2085. title: "Streets (Night)", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight", title: "World Street Map (Night)" }]
  2086. }, "arcgis-streets-relief": {
  2087. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/streets-relief.jpg") }, title: "Streets (with Relief)", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer" },
  2088. { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base", title: "World Street Map (with Relief)" }]
  2089. }, "arcgis-topographic": {
  2090. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/topo.jpg") }, title: "Topographic", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer" }, {
  2091. layerType: "VectorTileLayer",
  2092. styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base", title: "World Topographic Map"
  2093. }]
  2094. }, "arcgis-oceans": {
  2095. get thumbnailUrl() { return c.getAssetUrl("esri/images/basemap/oceans.jpg") }, title: "Oceans", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Ocean Base", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer" }, {
  2096. layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",
  2097. title: "World Ocean Reference", isReference: !0
  2098. }]
  2099. }, "osm-standard": { title: "OpenStreetMap", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard", title: "OpenStreetMap" }] }, "osm-standard-relief": {
  2100. title: "OpenStreetMap (with relief)", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer" }, {
  2101. styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",
  2102. layerType: "VectorTileLayer", title: "OpenStreetMap Relief Base"
  2103. }]
  2104. }, "osm-streets": { title: "OpenStreetMap (Streets)", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets", title: "OpenStreetMap (Streets)" }] }, "osm-streets-relief": {
  2105. title: "OpenStreetMap (Streets with relief)", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer" },
  2106. { styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base", layerType: "VectorTileLayer", title: "OpenStreetMap Relief Base" }]
  2107. }, "osm-light-gray": {
  2108. title: "OpenStreetMap (Light Gray Canvas)", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base", title: "OSM (Light Gray Base)" }, {
  2109. layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",
  2110. title: "OSM (Light Gray Reference)", isReference: !0
  2111. }]
  2112. }, "osm-dark-gray": { title: "OpenStreetMap (Dark Gray Canvas)", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base", title: "OSM (Dark Gray Base)" }, { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels", title: "OSM (Dark Gray Reference)", isReference: !0 }] }, "arcgis-terrain": {
  2113. title: "Terrain with Labels", baseMapLayers: [{
  2114. layerType: "ArcGISTiledMapServiceLayer",
  2115. showLegend: !1, title: "World Hillshade", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"
  2116. }, { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base", title: "World Terrain Base" }, { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail", title: "World Terrain Reference", isReference: !0 }]
  2117. }, "arcgis-community": {
  2118. title: "Community", baseMapLayers: [{
  2119. layerType: "VectorTileLayer",
  2120. styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community", title: "Community"
  2121. }]
  2122. }, "arcgis-charted-territory": { title: "Charted Territory", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer" }, { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base", title: "Charted Territory" }] },
  2123. "arcgis-colored-pencil": { title: "Colored Pencil", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil", title: "Colored Pencil" }] }, "arcgis-nova": { title: "Nova", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova", title: "Nova" }] }, "arcgis-modern-antique": {
  2124. title: "Modern Antique", baseMapLayers: [{
  2125. layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade",
  2126. url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"
  2127. }, { layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base", title: "Modern Antique" }]
  2128. }, "arcgis-midcentury": { title: "Mid-Century", baseMapLayers: [{ layerType: "VectorTileLayer", styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury", title: "Mid-Century" }] }, "arcgis-newspaper": {
  2129. title: "Newspaper", baseMapLayers: [{
  2130. layerType: "VectorTileLayer",
  2131. styleUrl: "https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper", title: "Newspaper"
  2132. }]
  2133. }, "arcgis-hillshade-light": { title: "Hillshade", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer" }] }, "arcgis-hillshade-dark": { title: "Hillshade (Dark)", baseMapLayers: [{ layerType: "ArcGISTiledMapServiceLayer", showLegend: !1, title: "World Hillshade (Dark)", url: "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer" }] }
  2134. };
  2135. a.getBasemapTitle = function (l) { return d.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2136. })
  2137. }, "esri/intl/messages": function () {
  2138. define(["exports", "../chunks/_rollupPluginBabelHelpers", "../core/Error", "../core/promiseUtils", "./locale"], function (a, b, c, e, d) {
  2139. function l(v) { var y; return null != (y = t[v]) ? y : !1 } function r(v) { for (const y of u.keys()) g(v.pattern, y) && u.delete(y) } function q() {
  2140. q = b._asyncToGenerator(function* (v) {
  2141. const y = d.getLocale(); u.has(v) ||
  2142. u.set(v, k(v, y)); v = u.get(v); yield f.add(v); return v
  2143. }); return q.apply(this, arguments)
  2144. } function k(v, y) { return m.apply(this, arguments) } function m() {
  2145. m = b._asyncToGenerator(function* (v, y) { const B = []; for (const w of n) if (g(w.pattern, v)) try { return yield w.fetchMessageBundle(v, y) } catch (x) { B.push(x) } if (B.length) throw new c("intl:message-bundle-error", `Errors occurred while loading "${v}"`, { errors: B }); throw new c("intl:no-message-bundle-loader", `No loader found for message bundle "${v}"`); }); return m.apply(this,
  2146. arguments)
  2147. } function g(v, y) { return "string" === typeof v ? y.startsWith(v) : v.test(y) } const p = /^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/, t = { ar: !0, bg: !0, bs: !0, ca: !0, cs: !0, da: !0, de: !0, el: !0, en: !0, es: !0, et: !0, fi: !0, fr: !0, he: !0, hr: !0, hu: !0, id: !0, it: !0, ja: !0, ko: !0, lt: !0, lv: !0, nb: !0, nl: !0, pl: !0, "pt-BR": !0, "pt-PT": !0, ro: !0, ru: !0, sk: !0, sl: !0, sr: !0, sv: !0, th: !0, tr: !0, uk: !0, vi: !0, "zh-CN": !0, "zh-HK": !0, "zh-TW": !0 }, n = [], u = new Map; d.beforeLocaleChange(() => { u.clear() }); const f = new (function () {
  2148. function v() { this._numLoading = 0 }
  2149. var y = v.prototype; y.waitForAll = function () { var B = b._asyncToGenerator(function* () { this._dfd && (yield this._dfd.promise) }); return function () { return B.apply(this, arguments) } }(); y.add = function (B) { this._increase(); B.then(() => this._decrease(), () => this._decrease()); return this.waitForAll() }; y._increase = function () { this._numLoading++; this._dfd || (this._dfd = e.createDeferred()) }; y._decrease = function () {
  2150. this._numLoading = Math.max(this._numLoading - 1, 0); this._dfd && 0 === this._numLoading && (this._dfd.resolve(), this._dfd =
  2151. null)
  2152. }; return v
  2153. }()), h = { cache: u, loaders: n }; a.fetchMessageBundle = function (v) { return q.apply(this, arguments) }; a.normalizeMessageBundleLocale = function (v) { if (!p.test(v)) return null; const [, y, B] = p.exec(v); v = y + (B ? "-" + B.toUpperCase() : ""); return l(v) ? v : l(y) ? y : null }; a.registerMessageBundleLoader = function (v) { n.includes(v) || (r(v), n.unshift(v)); return { remove() { const y = n.indexOf(v); -1 < y && (n.splice(y, 1), r(v)) } } }; a.test = h; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2154. })
  2155. },
  2156. "esri/webdoc/support/writeUtils": function () {
  2157. define("exports ../../core/Error ../../core/lang ../../core/maybe ../../core/object ../../core/accessorSupport/extensions/serializableProperty/writer ../../layers/support/layerUtils".split(" "), function (a, b, c, e, d, l, r) {
  2158. function q(g, p) { "maxScale" in g && (p.maxScale = l.numberToJSON(g.maxScale)); "minScale" in g && (p.minScale = l.numberToJSON(g.minScale)) } const k = new Set("bing-maps imagery imagery-tile map-image open-street-map tile unknown unsupported vector-tile web-tile wms wmts".split(" ")),
  2159. m = new Set("csv feature geo-rss geojson group imagery imagery-tile kml map-image map-notes ogc-feature route tile unknown unsupported vector-tile web-tile wfs wms wmts".split(" ")); a.disableRestrictedWriting = function (g) { k.add(g); m.add(g) }; a.enableRestrictedWriting = function (g) { k.delete(g); m.delete(g) }; a.getLayerJSON = function (g, p, t) {
  2160. if (!("write" in g && g.write)) return t && t.messages && t.messages.push(new b("layer:unsupported", `Layers (${g.title}, ${g.id}) of type '${g.declaredClass}' cannot be persisted`,
  2161. { layer: g })), null; if (t.restrictedWebMapWriting) { var n = "basemap" === t.layerContainerType ? k : "operational-layers" === t.layerContainerType ? m : null; n = e.isSome(n) ? n.has(g.type) && !r.isFeatureCollectionLayer(g) : !0 } else n = !0; if (n) return p = {}, g.write(p, t) ? p : null; if (e.isSome(p) && (t = p = c.clone(p), r.isFeatureCollectionLayer(g) ? (n = (n = d.getDeepValue("featureCollection.layers", t)) && n[0] && n[0].layerDefinition) && q(g, n) : "stream" === g.type ? (n = t.layerDefinition = t.layerDefinition || {}, q(g, n)) : "group" !== g.type && q(g, t), "blendMode" in
  2162. g && (t.blendMode = g.blendMode, "normal" === t.blendMode && delete t.blendMode), t.opacity = l.numberToJSON(g.opacity), t.title = g.title || "Layer", t.visibility = g.visible, "legendEnabled" in g && "wmts" !== g.type)) if (r.isFeatureCollectionLayer(g)) { if (t = t.featureCollection) t.showLegend = g.legendEnabled } else t.showLegend = g.legendEnabled; return p
  2163. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2164. })
  2165. }, "esri/layers/support/layerUtils": function () {
  2166. define(["exports"], function (a) {
  2167. a.areLabelsVisible =
  2168. function (b) { return !0 === b.labelsVisible && null != b.labelingInfo && 0 < b.labelingInfo.length }; a.getLayersForScale = function (b, c) { const e = []; if (0 < b && c) for (let d = 0; d < c.length; d++)if (!(0 <= c[d].parentLayerId && !e.includes(c[d].parentLayerId) && c.some(l => l.id === c[d].parentLayerId)) && 0 <= c[d].id) { let l = !0; const r = c[d].maxScale, q = c[d].minScale; if (0 < r || 0 < q) 0 < r && 0 < q ? l = r <= b && b <= q : 0 < r ? l = r <= b : 0 < q && (l = b <= q); l && e.push(c[d].id) } return e }; a.getTileMaxtrixSetFromActiveLayer = function (b) {
  2169. if (b.activeLayer) {
  2170. const c = b.activeLayer.tileMatrixSet;
  2171. if (c) return c; if (b = b.activeLayer.tileMatrixSets) return b
  2172. } return null
  2173. }; a.isBaseLayer = function (b) { var c; return "esri.Basemap" === (null == (c = b.parent) ? void 0 : c.declaredClass) && b.parent.baseLayers.includes(b) }; a.isBasemapSupportedLayer = function (b) { b = null == b ? void 0 : b.type; return "imagery-tile" === b || "tile" === b || "open-street-map" === b || "vector-tile" === b || "web-tile" === b || "wmts" === b }; a.isFeatureCollectionLayer = function (b) {
  2174. var c; return "feature" === (null == b ? void 0 : b.type) && !b.url && "memory" === (null == (c = b.source) ? void 0 :
  2175. c.type)
  2176. }; a.isFeatureServiceLayer = function (b) { var c; return "feature" === (null == b ? void 0 : b.type) && "feature-layer" === (null == (c = b.source) ? void 0 : c.type) }; a.isImageryTileLayer = function (b) { return "imagery-tile" === (null == b ? void 0 : b.type) }; a.isTiledLayer = function (b) { b = null == b ? void 0 : b.type; return "base-tile" === b || "tile" === b || "elevation" === b || "imagery-tile" === b || "base-elevation" === b || "open-street-map" === b || "wcs" === b || "web-tile" === b || "wmts" === b || "vector-tile" === b }; a.isVoxelLayer = function (b) {
  2177. return "voxel" === (null ==
  2178. b ? void 0 : b.type)
  2179. }; a.serializeLayerDefinitions = function (b) { const c = /[:;]/, e = []; let d = !1; if (b && (b.forEach((l, r) => { e.push([r, l]); !d && c.test(l) && (d = !0) }), 0 < e.length)) { if (d) { const l = {}; e.forEach(r => { l[r[0]] = r[1] }); b = JSON.stringify(l) } else { const l = []; e.forEach(r => { l.push(r[0] + ":" + r[1]) }); b = l.join(";") } return b } return null }; a.serializeTimeOptions = function (b) { if (b) { var c = []; b.forEach((e, d) => { c.push('"' + d + '":' + JSON.stringify(e)) }); if (c.length) return "{" + c.join(",") + "}" } }; Object.defineProperties(a, {
  2180. __esModule: { value: !0 },
  2181. [Symbol.toStringTag]: { value: "Module" }
  2182. })
  2183. })
  2184. }, "esri/Ground": function () {
  2185. define("require ./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Color ./core/Collection ./core/collectionUtils ./core/compilerUtils ./core/Error ./core/JSONSupport ./core/lang ./core/Loadable ./core/loadAll ./core/Logger ./core/promiseUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./ground/NavigationConstraint ./webdoc/support/opacityUtils".split(" "),
  2186. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B) {
  2187. function w(C) { return "elevation" === C.type || C && "createElevationSampler" in C } var x; const z = t.getLogger("esri.Ground"); k = x = function (C) {
  2188. function A(F) {
  2189. var J = C.call(this, F) || this; J.opacity = 1; J.surfaceColor = null; J.navigationConstraint = null; J.layers = new d; J.layers.on("after-add", M => {
  2190. M = M.item; M.parent && M.parent !== b._assertThisInitialized(J) && "remove" in M.parent && M.parent.remove(M); M.parent = b._assertThisInitialized(J); "elevation" !== M.type && "base-elevation" !==
  2191. M.type && z.error(`Layer '${M.title}, id:${M.id}' of type '${M.type}' is not supported as a ground layer and will therefore be ignored. Only layers of type 'elevation' are supported.`)
  2192. }); J.layers.on("after-remove", M => { M.item.parent = null }); return J
  2193. } b._inheritsLoose(A, C); var D = A.prototype; D.initialize = function () { this.when().catch(F => { z.error("#load()", "Failed to load ground", F) }); this.resourceInfo && this.read(this.resourceInfo.data, this.resourceInfo.context) }; D.destroy = function () {
  2194. const F = this.layers.removeAll();
  2195. for (const J of F) J.destroy(); this.layers.destroy()
  2196. }; D.normalizeCtorArgs = function (F) { F && "resourceInfo" in F && (this._set("resourceInfo", F.resourceInfo), F = { ...F }, delete F.resourceInfo); return F }; D.writeLayers = function (F, J, M, N) {
  2197. const E = []; F && (N = { ...N, layerContainerType: "ground" }, F.forEach(G => {
  2198. if ("write" in G) { const H = {}; r.typeCast(G)().write(H, N) && E.push(H) } else N && N.messages && N.messages.push(new q("layer:unsupported", `Layers (${G.title}, ${G.id}) of type '${G.declaredClass}' cannot be persisted in the ground`,
  2199. { layer: G }))
  2200. })); J.layers = E
  2201. }; D.load = function (F) { this.addResolvingPromise(this._loadFromSource(F)); return Promise.resolve(this) }; D.loadAll = function () { return p.loadAll(this, F => { F(this.layers) }) }; D.queryElevation = function () {
  2202. var F = b._asyncToGenerator(function* (J, M) { yield this.load({ signal: null == M ? void 0 : M.signal }); var { ElevationQuery: N } = yield new Promise((G, H) => a(["./layers/support/ElevationQuery"], G, H)); n.throwIfAborted(M); N = new N; const E = this.layers.filter(w).toArray(); return N.queryAll(E, J, M) }); return function (J,
  2203. M) { return F.apply(this, arguments) }
  2204. }(); D.createElevationSampler = function () { var F = b._asyncToGenerator(function* (J, M) { yield this.load({ signal: null == M ? void 0 : M.signal }); var { ElevationQuery: N } = yield new Promise((G, H) => a(["./layers/support/ElevationQuery"], G, H)); n.throwIfAborted(M); N = new N; const E = this.layers.filter(w).toArray(); return N.createSamplerAll(E, J, M) }); return function (J, M) { return F.apply(this, arguments) } }(); D.clone = function () {
  2205. const F = {
  2206. opacity: this.opacity, surfaceColor: m.clone(this.surfaceColor),
  2207. navigationConstraint: m.clone(this.navigationConstraint), layers: this.layers.slice()
  2208. }; this.loaded && (F.loadStatus = "loaded"); return (new x({ resourceInfo: this.resourceInfo })).set(F)
  2209. }; D.read = function (F, J) { this.resourceInfo || this._set("resourceInfo", { data: F, context: J }); C.prototype.read.call(this, F, J) }; D._loadFromSource = function (F) { const J = this.resourceInfo; return J ? this._loadLayersFromJSON(J.data, J.context, F) : Promise.resolve(null) }; D._loadLayersFromJSON = function (F, J, M) {
  2210. const N = J && J.origin || "web-scene", E =
  2211. J && J.portal || null, G = J && J.url || null; return (new Promise((H, K) => a(["./layers/support/layersCreator"], H, K))).then(({ populateOperationalLayers: H }) => { n.throwIfAborted(M); const K = []; F.layers && Array.isArray(F.layers) && K.push(H(this.layers, F.layers, { context: { origin: N, url: G, portal: E, layerContainerType: "ground" }, defaultLayerType: "ArcGISTiledElevationServiceLayer" })); return n.eachAlways(K) }).then(() => { })
  2212. }; b._createClass(A, [{ key: "layers", set: function (F) { this._set("layers", l.referenceSetter(F, this._get("layers"))) } }]);
  2213. return A
  2214. }(k.JSONSupportMixin(g)); c.__decorate([u.property({ json: { read: !1 } })], k.prototype, "layers", null); c.__decorate([v.writer("layers")], k.prototype, "writeLayers", null); c.__decorate([u.property({ readOnly: !0 })], k.prototype, "resourceInfo", void 0); c.__decorate([u.property({ type: Number, nonNullable: !0, range: { min: 0, max: 1 }, json: { type: f.Integer, read: { reader: B.transparencyToOpacity, source: "transparency" }, write: { writer: (C, A) => { A.transparency = B.opacityToTransparency(C) }, target: "transparency" } } })], k.prototype,
  2215. "opacity", void 0); c.__decorate([u.property({ type: e, json: { type: [f.Integer], write: (C, A) => { A.surfaceColor = C.toJSON().slice(0, 3) } } })], k.prototype, "surfaceColor", void 0); c.__decorate([u.property({ type: y.NavigationConstraint, json: { write: !0 } })], k.prototype, "navigationConstraint", void 0); return k = x = c.__decorate([h.subclass("esri.Ground")], k)
  2216. })
  2217. }, "esri/Color": function () {
  2218. define(["./chunks/_rollupPluginBabelHelpers", "./colorUtils", "./core/mathUtils", "./core/maybe", "./core/accessorSupport/ensureType"], function (a,
  2219. b, c, e, d) {
  2220. function l(k) { return c.clamp(d.ensureInteger(k), 0, 255) } function r(k, m, g) { k = Number(k); return isNaN(k) ? g : k < m ? m : k > g ? g : k } let q = function () {
  2221. function k(g) { this.b = this.g = this.r = 255; this.a = 1; g && this.setColor(g) } k.blendColors = function (g, p, t, n = new k) { n.r = Math.round(g.r + (p.r - g.r) * t); n.g = Math.round(g.g + (p.g - g.g) * t); n.b = Math.round(g.b + (p.b - g.b) * t); n.a = g.a + (p.a - g.a) * t; return n._sanitize() }; k.fromRgb = function (g, p) {
  2222. var t = g.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/); if (t) {
  2223. g = t[2].split(/\s*,\s*/);
  2224. t = t[1]; if ("rgb" === t && 3 === g.length || "rgba" === t && 4 === g.length) return t = g[0], "%" === t.charAt(t.length - 1) ? (t = g.map(n => 2.56 * parseFloat(n)), 4 === g.length && (t[3] = parseFloat(g[3])), k.fromArray(t, p)) : k.fromArray(g.map(n => parseFloat(n)), p); if ("hsl" === t && 3 === g.length || "hsla" === t && 4 === g.length) return k.fromArray(b.hsla2rgba(parseFloat(g[0]), parseFloat(g[1]) / 100, parseFloat(g[2]) / 100, parseFloat(g[3])), p)
  2225. } return null
  2226. }; k.fromHex = function (g, p = new k) {
  2227. if (4 !== g.length && 7 !== g.length || "#" !== g[0]) return null; const t = 4 ===
  2228. g.length ? 4 : 8, n = (1 << t) - 1; let u = Number("0x" + g.substr(1)); if (isNaN(u)) return null;["b", "g", "r"].forEach(f => { const h = u & n; u >>= t; p[f] = 4 === t ? 17 * h : h }); p.a = 1; return p
  2229. }; k.fromArray = function (g, p = new k) { p._set(Number(g[0]), Number(g[1]), Number(g[2]), Number(g[3])); isNaN(p.a) && (p.a = 1); return p._sanitize() }; k.fromString = function (g, p) { const t = b.isNamedColor(g) ? b.getNamedColor(g) : null; return t && k.fromArray(t, p) || k.fromRgb(g, p) || k.fromHex(g, p) }; k.fromJSON = function (g) { return g && new k([g[0], g[1], g[2], g[3] / 255]) }; k.toUnitRGB =
  2230. function (g) { return e.isSome(g) ? [g.r / 255, g.g / 255, g.b / 255] : null }; k.toUnitRGBA = function (g) { return e.isSome(g) ? [g.r / 255, g.g / 255, g.b / 255, null != g.a ? g.a : 1] : null }; var m = k.prototype; m.setColor = function (g) { if ("string" === typeof g) k.fromString(g, this); else if (Array.isArray(g)) k.fromArray(g, this); else { var p, t, n, u; this._set(null != (p = g.r) ? p : 0, null != (t = g.g) ? t : 0, null != (n = g.b) ? n : 0, null != (u = g.a) ? u : 1); g instanceof k || this._sanitize() } return this }; m.toRgb = function () { return [this.r, this.g, this.b] }; m.toRgba = function () {
  2231. return [this.r,
  2232. this.g, this.b, this.a]
  2233. }; m.toHex = function () { const g = this.r.toString(16), p = this.g.toString(16), t = this.b.toString(16); return `#${2 > g.length ? "0" + g : g}${2 > p.length ? "0" + p : p}${2 > t.length ? "0" + t : t}` }; m.toCss = function (g = !1) { const p = this.r + ", " + this.g + ", " + this.b; return g ? `rgba(${p}, ${this.a})` : `rgb(${p})` }; m.toString = function () { return this.toCss(!0) }; m.toJSON = function () { return this.toArray() }; m.toArray = function (g = k.AlphaMode.ALWAYS) {
  2234. const p = l(this.r), t = l(this.g), n = l(this.b); return g === k.AlphaMode.ALWAYS || 1 !==
  2235. this.a ? [p, t, n, l(255 * this.a)] : [p, t, n]
  2236. }; m.clone = function () { return new k(this.toRgba()) }; m.hash = function () { return this.r << 24 | this.g << 16 | this.b << 8 | 255 * this.a }; m.equals = function (g) { return e.isSome(g) && g.r === this.r && g.g === this.g && g.b === this.b && g.a === this.a }; m._sanitize = function () { this.r = Math.round(r(this.r, 0, 255)); this.g = Math.round(r(this.g, 0, 255)); this.b = Math.round(r(this.b, 0, 255)); this.a = r(this.a, 0, 1); return this }; m._set = function (g, p, t, n) { this.r = g; this.g = p; this.b = t; this.a = n }; a._createClass(k, [{
  2237. key: "isBright",
  2238. get: function () { return 127 <= .299 * this.r + .587 * this.g + .114 * this.b }
  2239. }]); return k
  2240. }(); q.prototype.declaredClass = "esri.Color"; (function (k) { k = k.AlphaMode || (k.AlphaMode = {}); k[k.ALWAYS = 0] = "ALWAYS"; k[k.UNLESS_OPAQUE = 1] = "UNLESS_OPAQUE" })(q || (q = {})); return q
  2241. })
  2242. }, "esri/colorUtils": function () {
  2243. define(["exports"], function (a) {
  2244. function b(d) { var l; return null != (l = e[d]) ? l : e[d.toLowerCase()] } function c(d, l, r) { 0 > r && ++r; 1 < r && --r; const q = 6 * r; return 1 > q ? d + (l - d) * q : 1 > 2 * r ? l : 2 > 3 * r ? d + (l - d) * (2 / 3 - r) * 6 : d } const e = {
  2245. transparent: [0, 0, 0,
  2246. 0], black: [0, 0, 0, 1], silver: [192, 192, 192, 1], gray: [128, 128, 128, 1], white: [255, 255, 255, 1], maroon: [128, 0, 0, 1], red: [255, 0, 0, 1], purple: [128, 0, 128, 1], fuchsia: [255, 0, 255, 1], green: [0, 128, 0, 1], lime: [0, 255, 0, 1], olive: [128, 128, 0, 1], yellow: [255, 255, 0, 1], navy: [0, 0, 128, 1], blue: [0, 0, 255, 1], teal: [0, 128, 128, 1], aqua: [0, 255, 255, 1], aliceblue: [240, 248, 255, 1], antiquewhite: [250, 235, 215, 1], aquamarine: [127, 255, 212, 1], azure: [240, 255, 255, 1], beige: [245, 245, 220, 1], bisque: [255, 228, 196, 1], blanchedalmond: [255, 235, 205, 1], blueviolet: [138,
  2247. 43, 226, 1], brown: [165, 42, 42, 1], burlywood: [222, 184, 135, 1], cadetblue: [95, 158, 160, 1], chartreuse: [127, 255, 0, 1], chocolate: [210, 105, 30, 1], coral: [255, 127, 80, 1], cornflowerblue: [100, 149, 237, 1], cornsilk: [255, 248, 220, 1], crimson: [220, 20, 60, 1], cyan: [0, 255, 255, 1], darkblue: [0, 0, 139, 1], darkcyan: [0, 139, 139, 1], darkgoldenrod: [184, 134, 11, 1], darkgray: [169, 169, 169, 1], darkgreen: [0, 100, 0, 1], darkgrey: [169, 169, 169, 1], darkkhaki: [189, 183, 107, 1], darkmagenta: [139, 0, 139, 1], darkolivegreen: [85, 107, 47, 1], darkorange: [255, 140, 0, 1], darkorchid: [153,
  2248. 50, 204, 1], darkred: [139, 0, 0, 1], darksalmon: [233, 150, 122, 1], darkseagreen: [143, 188, 143, 1], darkslateblue: [72, 61, 139, 1], darkslategray: [47, 79, 79, 1], darkslategrey: [47, 79, 79, 1], darkturquoise: [0, 206, 209, 1], darkviolet: [148, 0, 211, 1], deeppink: [255, 20, 147, 1], deepskyblue: [0, 191, 255, 1], dimgray: [105, 105, 105, 1], dimgrey: [105, 105, 105, 1], dodgerblue: [30, 144, 255, 1], firebrick: [178, 34, 34, 1], floralwhite: [255, 250, 240, 1], forestgreen: [34, 139, 34, 1], gainsboro: [220, 220, 220, 1], ghostwhite: [248, 248, 255, 1], gold: [255, 215, 0, 1], goldenrod: [218,
  2249. 165, 32, 1], greenyellow: [173, 255, 47, 1], grey: [128, 128, 128, 1], honeydew: [240, 255, 240, 1], hotpink: [255, 105, 180, 1], indianred: [205, 92, 92, 1], indigo: [75, 0, 130, 1], ivory: [255, 255, 240, 1], khaki: [240, 230, 140, 1], lavender: [230, 230, 250, 1], lavenderblush: [255, 240, 245, 1], lawngreen: [124, 252, 0, 1], lemonchiffon: [255, 250, 205, 1], lightblue: [173, 216, 230, 1], lightcoral: [240, 128, 128, 1], lightcyan: [224, 255, 255, 1], lightgoldenrodyellow: [250, 250, 210, 1], lightgray: [211, 211, 211, 1], lightgreen: [144, 238, 144, 1], lightgrey: [211, 211, 211, 1], lightpink: [255,
  2250. 182, 193, 1], lightsalmon: [255, 160, 122, 1], lightseagreen: [32, 178, 170, 1], lightskyblue: [135, 206, 250, 1], lightslategray: [119, 136, 153, 1], lightslategrey: [119, 136, 153, 1], lightsteelblue: [176, 196, 222, 1], lightyellow: [255, 255, 224, 1], limegreen: [50, 205, 50, 1], linen: [250, 240, 230, 1], magenta: [255, 0, 255, 1], mediumaquamarine: [102, 205, 170, 1], mediumblue: [0, 0, 205, 1], mediumorchid: [186, 85, 211, 1], mediumpurple: [147, 112, 219, 1], mediumseagreen: [60, 179, 113, 1], mediumslateblue: [123, 104, 238, 1], mediumspringgreen: [0, 250, 154, 1], mediumturquoise: [72,
  2251. 209, 204, 1], mediumvioletred: [199, 21, 133, 1], midnightblue: [25, 25, 112, 1], mintcream: [245, 255, 250, 1], mistyrose: [255, 228, 225, 1], moccasin: [255, 228, 181, 1], navajowhite: [255, 222, 173, 1], oldlace: [253, 245, 230, 1], olivedrab: [107, 142, 35, 1], orange: [255, 165, 0, 1], orangered: [255, 69, 0, 1], orchid: [218, 112, 214, 1], palegoldenrod: [238, 232, 170, 1], palegreen: [152, 251, 152, 1], paleturquoise: [175, 238, 238, 1], palevioletred: [219, 112, 147, 1], papayawhip: [255, 239, 213, 1], peachpuff: [255, 218, 185, 1], peru: [205, 133, 63, 1], pink: [255, 192, 203, 1], plum: [221,
  2252. 160, 221, 1], powderblue: [176, 224, 230, 1], rebeccapurple: [102, 51, 153, 1], rosybrown: [188, 143, 143, 1], royalblue: [65, 105, 225, 1], saddlebrown: [139, 69, 19, 1], salmon: [250, 128, 114, 1], sandybrown: [244, 164, 96, 1], seagreen: [46, 139, 87, 1], seashell: [255, 245, 238, 1], sienna: [160, 82, 45, 1], skyblue: [135, 206, 235, 1], slateblue: [106, 90, 205, 1], slategray: [112, 128, 144, 1], slategrey: [112, 128, 144, 1], snow: [255, 250, 250, 1], springgreen: [0, 255, 127, 1], steelblue: [70, 130, 180, 1], tan: [210, 180, 140, 1], thistle: [216, 191, 216, 1], tomato: [255, 99, 71, 1], turquoise: [64,
  2253. 224, 208, 1], violet: [238, 130, 238, 1], wheat: [245, 222, 179, 1], whitesmoke: [245, 245, 245, 1], yellowgreen: [154, 205, 50, 1]
  2254. }; a.getNamedColor = b; a.getNamedColorCopy = function (d) { return [...b(d)] }; a.hex2rgba = function (d) { var l = 5 < d.length; const r = l ? 8 : 4, q = (1 << r) - 1, k = l ? 1 : 17; l = l ? 9 === d.length : 5 === d.length; d = Number("0x" + d.substr(1)); if (isNaN(d)) return null; const m = [0, 0, 0, 1]; l && (l = d & q, d >>= r, m[3] = k * l / 255); l = d & q; d >>= r; m[2] = k * l; l = d & q; d >>= r; m[1] = k * l; l = d & q; d >>= r; m[0] = k * l; return m }; a.hsla2rgba = function (d, l, r, q = 1) {
  2255. d = (d % 360 + 360) % 360 /
  2256. 360; l = .5 >= r ? r * (l + 1) : r + l - r * l; r = 2 * r - l; return [Math.round(255 * c(r, l, d + 1 / 3)), Math.round(255 * c(r, l, d)), Math.round(255 * c(r, l, d - 1 / 3)), q]
  2257. }; a.isNamedColor = function (d) { return e[d] || e[d.toLowerCase()] }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2258. })
  2259. }, "esri/core/mathUtils": function () {
  2260. define(["exports", "../chunks/vec3", "../chunks/vec4"], function (a, b, c) {
  2261. function e(g, p, t) { return Math.min(Math.max(g, p), t) } function d(g, p, t) { return g + (p - g) * t } function l(g) {
  2262. return Math.asin(e(g,
  2263. -1, 1))
  2264. } function r(g, p, t = 1E-6) { return isNaN(g) || isNaN(p) ? !1 : (g > p ? g - p : p - g) <= t } function q(g) { k[0] = g; return k[0] } const k = new Float32Array(1), m = q(3.4028234663852886E38); a.NUMBER_MAX_FLOAT32 = m; a.acosClamped = function (g) { return Math.acos(e(g, -1, 1)) }; a.applyOpacity = function (g, p, t) { return c.set(g, p[0], p[1], p[2], p[3] * t) }; a.asinClamped = l; a.cartesianToSpherical = function (g, p) { const t = b.length(g), n = l(g[2] / t); b.set(p, t, n, Math.atan2(g[1] / t, g[0] / t)); return p }; a.clamp = e; a.clampFloat32 = function (g) {
  2265. return q(Math.max(-m,
  2266. Math.min(g, m)))
  2267. }; a.deg2rad = function (g) { return g * Math.PI / 180 }; a.floatEqualAbsolute = r; a.floatEqualRelative = function (g, p, t = 1E-6) { if (isNaN(g) || isNaN(p)) return !1; if (g === p) return !0; const n = Math.abs(g - p), u = Math.abs(g), f = Math.abs(p); if (0 === g || 0 === p || 1E-12 > u && 1E-12 > f) { if (n > .01 * t) return !1 } else if (n / (u + f) > t) return !1; return !0 }; a.hasScaling = function (g) { const p = g[3] * g[3] + g[4] * g[4] + g[5] * g[5], t = g[6] * g[6] + g[7] * g[7] + g[8] * g[8]; return !(r(g[0] * g[0] + g[1] * g[1] + g[2] * g[2], 1) && r(p, 1) && r(t, 1)) }; a.isPowerOfTwo = function (g) {
  2268. return 0 ===
  2269. (g & g - 1)
  2270. }; a.lerp = d; a.nextHighestPowerOfTen = function (g) { return 10 ** Math.ceil(Math.LOG10E * Math.log(g)) }; a.nextHighestPowerOfTwo = function (g) { --g; for (let p = 1; 32 > p; p <<= 1)g |= g >> p; return g + 1 }; a.nextPowerOfTwo = function (g) { g--; g |= g >> 1; g |= g >> 2; g |= g >> 4; g |= g >> 8; g |= g >> 16; g++; return g }; a.rad2deg = function (g) { return 180 * g / Math.PI }; a.reciprocalClamped = function (g, p = 1E-6) { return (0 > g ? -1 : 1) / Math.max(Math.abs(g), p) }; a.roundToNearest = function (g, p) { return 0 === p ? 0 : Math.round(g / p) * p }; a.scale = function (g, p, t, n, u) {
  2271. return d(n,
  2272. u, (g - p) / (t - p))
  2273. }; a.smoothstep = function (g, p, t) { g = e((t - g) / (p - g), 0, 1); return g * g * (3 - 2 * g) }; a.sphericalToCartesian = function (g, p) { const t = g[0], n = g[1]; g = g[2]; const u = Math.cos(n); b.set(p, t * u * Math.cos(g), t * u * Math.sin(g), t * Math.sin(n)) }; a.step = function (g, p) { return p < g ? 0 : 1 }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2274. })
  2275. }, "esri/chunks/vec3": function () {
  2276. define(["exports", "./vec3f64", "./common"], function (a, b, c) {
  2277. function e(W) {
  2278. const oa = W[0], ya = W[1]; W = W[2]; return Math.sqrt(oa *
  2279. oa + ya * ya + W * W)
  2280. } function d(W, oa) { W[0] = oa[0]; W[1] = oa[1]; W[2] = oa[2]; return W } function l(W, oa, ya, I) { W[0] = oa; W[1] = ya; W[2] = I; return W } function r(W, oa, ya) { W[0] = oa[0] + ya[0]; W[1] = oa[1] + ya[1]; W[2] = oa[2] + ya[2]; return W } function q(W, oa, ya) { W[0] = oa[0] - ya[0]; W[1] = oa[1] - ya[1]; W[2] = oa[2] - ya[2]; return W } function k(W, oa, ya) { W[0] = oa[0] * ya[0]; W[1] = oa[1] * ya[1]; W[2] = oa[2] * ya[2]; return W } function m(W, oa, ya) { W[0] = oa[0] / ya[0]; W[1] = oa[1] / ya[1]; W[2] = oa[2] / ya[2]; return W } function g(W, oa) {
  2281. W[0] = Math.ceil(oa[0]); W[1] = Math.ceil(oa[1]);
  2282. W[2] = Math.ceil(oa[2]); return W
  2283. } function p(W, oa) { W[0] = Math.floor(oa[0]); W[1] = Math.floor(oa[1]); W[2] = Math.floor(oa[2]); return W } function t(W, oa) { W[0] = Math.abs(oa[0]); W[1] = Math.abs(oa[1]); W[2] = Math.abs(oa[2]); return W } function n(W, oa) { W[0] = Math.sign(oa[0]); W[1] = Math.sign(oa[1]); W[2] = Math.sign(oa[2]); return W } function u(W, oa, ya) { W[0] = Math.min(oa[0], ya[0]); W[1] = Math.min(oa[1], ya[1]); W[2] = Math.min(oa[2], ya[2]); return W } function f(W, oa, ya) {
  2284. W[0] = Math.max(oa[0], ya[0]); W[1] = Math.max(oa[1], ya[1]); W[2] = Math.max(oa[2],
  2285. ya[2]); return W
  2286. } function h(W, oa) { W[0] = Math.round(oa[0]); W[1] = Math.round(oa[1]); W[2] = Math.round(oa[2]); return W } function v(W, oa, ya) { W[0] = oa[0] * ya; W[1] = oa[1] * ya; W[2] = oa[2] * ya; return W } function y(W, oa, ya, I) { W[0] = oa[0] + ya[0] * I; W[1] = oa[1] + ya[1] * I; W[2] = oa[2] + ya[2] * I; return W } function B(W, oa) { const ya = oa[0] - W[0], I = oa[1] - W[1]; W = oa[2] - W[2]; return Math.sqrt(ya * ya + I * I + W * W) } function w(W, oa) { const ya = oa[0] - W[0], I = oa[1] - W[1]; W = oa[2] - W[2]; return ya * ya + I * I + W * W } function x(W) {
  2287. const oa = W[0], ya = W[1]; W = W[2]; return oa *
  2288. oa + ya * ya + W * W
  2289. } function z(W, oa) { W[0] = -oa[0]; W[1] = -oa[1]; W[2] = -oa[2]; return W } function C(W, oa) { W[0] = 1 / oa[0]; W[1] = 1 / oa[1]; W[2] = 1 / oa[2]; return W } function A(W, oa) { var ya = oa[0]; const I = oa[1], P = oa[2]; ya = ya * ya + I * I + P * P; 0 < ya && (ya = 1 / Math.sqrt(ya), W[0] = oa[0] * ya, W[1] = oa[1] * ya, W[2] = oa[2] * ya); return W } function D(W, oa) { return W[0] * oa[0] + W[1] * oa[1] + W[2] * oa[2] } function F(W, oa, ya) { const I = oa[0], P = oa[1]; oa = oa[2]; const Z = ya[0], Q = ya[1]; ya = ya[2]; W[0] = P * ya - oa * Q; W[1] = oa * Z - I * ya; W[2] = I * Q - P * Z; return W } function J(W, oa, ya, I) {
  2290. const P =
  2291. oa[0], Z = oa[1]; oa = oa[2]; W[0] = P + I * (ya[0] - P); W[1] = Z + I * (ya[1] - Z); W[2] = oa + I * (ya[2] - oa); return W
  2292. } function M(W, oa, ya, I, P, Z) { const Q = Z * Z, V = Q * (2 * Z - 3) + 1, da = Q * (Z - 2) + Z, ea = Q * (Z - 1); Z = Q * (3 - 2 * Z); W[0] = oa[0] * V + ya[0] * da + I[0] * ea + P[0] * Z; W[1] = oa[1] * V + ya[1] * da + I[1] * ea + P[1] * Z; W[2] = oa[2] * V + ya[2] * da + I[2] * ea + P[2] * Z; return W } function N(W, oa, ya, I, P, Z) { var Q = 1 - Z, V = Q * Q; const da = Z * Z, ea = V * Q; V *= 3 * Z; Q *= 3 * da; Z *= da; W[0] = oa[0] * ea + ya[0] * V + I[0] * Q + P[0] * Z; W[1] = oa[1] * ea + ya[1] * V + I[1] * Q + P[1] * Z; W[2] = oa[2] * ea + ya[2] * V + I[2] * Q + P[2] * Z; return W } function E(W,
  2293. oa) { oa = oa || 1; const ya = 2 * c.RANDOM() * Math.PI, I = 2 * c.RANDOM() - 1, P = Math.sqrt(1 - I * I) * oa; W[0] = Math.cos(ya) * P; W[1] = Math.sin(ya) * P; W[2] = I * oa; return W } function G(W, oa, ya) { const I = oa[0], P = oa[1]; oa = oa[2]; W[0] = ya[0] * I + ya[4] * P + ya[8] * oa + ya[12]; W[1] = ya[1] * I + ya[5] * P + ya[9] * oa + ya[13]; W[2] = ya[2] * I + ya[6] * P + ya[10] * oa + ya[14]; return W } function H(W, oa, ya) { const I = oa[0], P = oa[1]; oa = oa[2]; W[0] = I * ya[0] + P * ya[3] + oa * ya[6]; W[1] = I * ya[1] + P * ya[4] + oa * ya[7]; W[2] = I * ya[2] + P * ya[5] + oa * ya[8]; return W } function K(W, oa, ya) {
  2294. const I = ya[0], P = ya[1],
  2295. Z = ya[2], Q = oa[0], V = oa[1]; oa = oa[2]; let da = P * oa - Z * V, ea = Z * Q - I * oa, pa = I * V - P * Q; ya = 2 * ya[3]; W[0] = Q + da * ya + 2 * (P * pa - Z * ea); W[1] = V + ea * ya + 2 * (Z * da - I * pa); W[2] = oa + pa * ya + 2 * (I * ea - P * da); return W
  2296. } function S(W, oa, ya, I) { const P = [], Z = []; P[0] = oa[0] - ya[0]; P[1] = oa[1] - ya[1]; P[2] = oa[2] - ya[2]; Z[0] = P[0]; Z[1] = P[1] * Math.cos(I) - P[2] * Math.sin(I); Z[2] = P[1] * Math.sin(I) + P[2] * Math.cos(I); W[0] = Z[0] + ya[0]; W[1] = Z[1] + ya[1]; W[2] = Z[2] + ya[2]; return W } function fa(W, oa, ya, I) {
  2297. const P = [], Z = []; P[0] = oa[0] - ya[0]; P[1] = oa[1] - ya[1]; P[2] = oa[2] - ya[2]; Z[0] =
  2298. P[2] * Math.sin(I) + P[0] * Math.cos(I); Z[1] = P[1]; Z[2] = P[2] * Math.cos(I) - P[0] * Math.sin(I); W[0] = Z[0] + ya[0]; W[1] = Z[1] + ya[1]; W[2] = Z[2] + ya[2]; return W
  2299. } function ha(W, oa, ya, I) { const P = [], Z = []; P[0] = oa[0] - ya[0]; P[1] = oa[1] - ya[1]; P[2] = oa[2] - ya[2]; Z[0] = P[0] * Math.cos(I) - P[1] * Math.sin(I); Z[1] = P[0] * Math.sin(I) + P[1] * Math.cos(I); Z[2] = P[2]; W[0] = Z[0] + ya[0]; W[1] = Z[1] + ya[1]; W[2] = Z[2] + ya[2]; return W } function ba(W, oa) { d(Ka, W); d(sa, oa); A(Ka, Ka); A(sa, sa); W = D(Ka, sa); return 1 < W ? 0 : -1 > W ? Math.PI : Math.acos(W) } function O(W) {
  2300. return "vec3(" +
  2301. W[0] + ", " + W[1] + ", " + W[2] + ")"
  2302. } function na(W, oa) { return W[0] === oa[0] && W[1] === oa[1] && W[2] === oa[2] } function ra(W, oa) { if (W === oa) return !0; const ya = W[0], I = W[1]; W = W[2]; const P = oa[0], Z = oa[1]; oa = oa[2]; return Math.abs(ya - P) <= c.EPSILON * Math.max(1, Math.abs(ya), Math.abs(P)) && Math.abs(I - Z) <= c.EPSILON * Math.max(1, Math.abs(I), Math.abs(Z)) && Math.abs(W - oa) <= c.EPSILON * Math.max(1, Math.abs(W), Math.abs(oa)) } function Da(W, oa, ya) {
  2303. const I = ya[0] - oa[0], P = ya[1] - oa[1]; oa = ya[2] - oa[2]; ya = I * I + P * P + oa * oa; if (0 < ya) return ya = 1 / Math.sqrt(ya),
  2304. W[0] = I * ya, W[1] = P * ya, W[2] = oa * ya, W; W[0] = 0; W[1] = 0; W[2] = 0; return W
  2305. } const Ka = b.create(), sa = b.create(); b = Object.freeze(Object.defineProperty({
  2306. __proto__: null, length: e, copy: d, set: l, add: r, subtract: q, multiply: k, divide: m, ceil: g, floor: p, abs: t, sign: n, min: u, max: f, round: h, scale: v, scaleAndAdd: y, distance: B, squaredDistance: w, squaredLength: x, negate: z, inverse: C, normalize: A, dot: D, cross: F, lerp: J, hermite: M, bezier: N, random: E, transformMat4: G, transformMat3: H, transformQuat: K, rotateX: S, rotateY: fa, rotateZ: ha, angle: ba, str: O, exactEquals: na,
  2307. equals: ra, direction: Da, sub: q, mul: k, div: m, dist: B, sqrDist: w, len: e, sqrLen: x
  2308. }, Symbol.toStringTag, { value: "Module" })); a.abs = t; a.add = r; a.angle = ba; a.bezier = N; a.ceil = g; a.copy = d; a.cross = F; a.direction = Da; a.dist = B; a.distance = B; a.div = m; a.divide = m; a.dot = D; a.equals = ra; a.exactEquals = na; a.floor = p; a.hermite = M; a.inverse = C; a.len = e; a.length = e; a.lerp = J; a.max = f; a.min = u; a.mul = k; a.multiply = k; a.negate = z; a.normalize = A; a.random = E; a.rotateX = S; a.rotateY = fa; a.rotateZ = ha; a.round = h; a.scale = v; a.scaleAndAdd = y; a.set = l; a.sign = n; a.sqrDist =
  2309. w; a.sqrLen = x; a.squaredDistance = w; a.squaredLength = x; a.str = O; a.sub = q; a.subtract = q; a.transformMat3 = H; a.transformMat4 = G; a.transformQuat = K; a.vec3 = b
  2310. })
  2311. }, "esri/chunks/vec3f64": function () {
  2312. define(["exports"], function (a) {
  2313. function b() { return [0, 0, 0] } function c(v) { return [v[0], v[1], v[2]] } function e(v, y, B) { return [v, y, B] } function d(v) { const y = b(), B = Math.min(3, v.length); for (let w = 0; w < B; ++w)y[w] = v[w]; return y } function l(v, y) { return new Float64Array(v, y, 3) } function r() { return b() } function q() { return [1, 1, 1] } function k() {
  2314. return [1,
  2315. 0, 0]
  2316. } function m() { return [0, 1, 0] } function g() { return [0, 0, 1] } const p = b(), t = q(), n = k(), u = m(), f = g(), h = Object.freeze(Object.defineProperty({ __proto__: null, create: b, clone: c, fromValues: e, fromArray: d, createView: l, zeros: r, ones: q, unitX: k, unitY: m, unitZ: g, ZEROS: p, ONES: t, UNIT_X: n, UNIT_Y: u, UNIT_Z: f }, Symbol.toStringTag, { value: "Module" })); a.ONES = t; a.UNIT_X = n; a.UNIT_Y = u; a.UNIT_Z = f; a.ZEROS = p; a.clone = c; a.create = b; a.createView = l; a.fromArray = d; a.fromValues = e; a.ones = q; a.unitX = k; a.unitY = m; a.unitZ = g; a.vec3f64 = h; a.zeros = r
  2317. })
  2318. },
  2319. "esri/chunks/common": function () { define(["exports"], function (a) { function b(k) { return k * l } function c(k) { return k * r } function e(k, m) { return Math.abs(k - m) <= 1E-6 * Math.max(1, Math.abs(k), Math.abs(m)) } const d = Math.random, l = Math.PI / 180, r = 180 / Math.PI, q = Object.freeze(Object.defineProperty({ __proto__: null, EPSILON: 1E-6, RANDOM: d, toRadian: b, toDegree: c, equals: e }, Symbol.toStringTag, { value: "Module" })); a.EPSILON = 1E-6; a.RANDOM = d; a.common = q; a.equals = e; a.toDegree = c; a.toRadian = b }) }, "esri/chunks/vec4": function () {
  2320. define(["exports",
  2321. "./common"], function (a, b) {
  2322. function c(G, H) { G[0] = H[0]; G[1] = H[1]; G[2] = H[2]; G[3] = H[3]; return G } function e(G, H, K, S, fa) { G[0] = H; G[1] = K; G[2] = S; G[3] = fa; return G } function d(G, H, K) { G[0] = H[0] + K[0]; G[1] = H[1] + K[1]; G[2] = H[2] + K[2]; G[3] = H[3] + K[3]; return G } function l(G, H, K) { G[0] = H[0] - K[0]; G[1] = H[1] - K[1]; G[2] = H[2] - K[2]; G[3] = H[3] - K[3]; return G } function r(G, H, K) { G[0] = H[0] * K[0]; G[1] = H[1] * K[1]; G[2] = H[2] * K[2]; G[3] = H[3] * K[3]; return G } function q(G, H, K) { G[0] = H[0] / K[0]; G[1] = H[1] / K[1]; G[2] = H[2] / K[2]; G[3] = H[3] / K[3]; return G } function k(G,
  2323. H) { G[0] = Math.ceil(H[0]); G[1] = Math.ceil(H[1]); G[2] = Math.ceil(H[2]); G[3] = Math.ceil(H[3]); return G } function m(G, H) { G[0] = Math.floor(H[0]); G[1] = Math.floor(H[1]); G[2] = Math.floor(H[2]); G[3] = Math.floor(H[3]); return G } function g(G, H, K) { G[0] = Math.min(H[0], K[0]); G[1] = Math.min(H[1], K[1]); G[2] = Math.min(H[2], K[2]); G[3] = Math.min(H[3], K[3]); return G } function p(G, H, K) { G[0] = Math.max(H[0], K[0]); G[1] = Math.max(H[1], K[1]); G[2] = Math.max(H[2], K[2]); G[3] = Math.max(H[3], K[3]); return G } function t(G, H) {
  2324. G[0] = Math.round(H[0]);
  2325. G[1] = Math.round(H[1]); G[2] = Math.round(H[2]); G[3] = Math.round(H[3]); return G
  2326. } function n(G, H, K) { G[0] = H[0] * K; G[1] = H[1] * K; G[2] = H[2] * K; G[3] = H[3] * K; return G } function u(G, H, K, S) { G[0] = H[0] + K[0] * S; G[1] = H[1] + K[1] * S; G[2] = H[2] + K[2] * S; G[3] = H[3] + K[3] * S; return G } function f(G, H) { const K = H[0] - G[0], S = H[1] - G[1], fa = H[2] - G[2]; G = H[3] - G[3]; return Math.sqrt(K * K + S * S + fa * fa + G * G) } function h(G, H) { const K = H[0] - G[0], S = H[1] - G[1], fa = H[2] - G[2]; G = H[3] - G[3]; return K * K + S * S + fa * fa + G * G } function v(G) {
  2327. const H = G[0], K = G[1], S = G[2]; G = G[3]; return Math.sqrt(H *
  2328. H + K * K + S * S + G * G)
  2329. } function y(G) { const H = G[0], K = G[1], S = G[2]; G = G[3]; return H * H + K * K + S * S + G * G } function B(G, H) { G[0] = -H[0]; G[1] = -H[1]; G[2] = -H[2]; G[3] = -H[3]; return G } function w(G, H) { G[0] = 1 / H[0]; G[1] = 1 / H[1]; G[2] = 1 / H[2]; G[3] = 1 / H[3]; return G } function x(G, H) { const K = H[0], S = H[1], fa = H[2]; H = H[3]; let ha = K * K + S * S + fa * fa + H * H; 0 < ha && (ha = 1 / Math.sqrt(ha), G[0] = K * ha, G[1] = S * ha, G[2] = fa * ha, G[3] = H * ha); return G } function z(G, H) { return G[0] * H[0] + G[1] * H[1] + G[2] * H[2] + G[3] * H[3] } function C(G, H, K, S) {
  2330. const fa = H[0], ha = H[1], ba = H[2]; H = H[3];
  2331. G[0] = fa + S * (K[0] - fa); G[1] = ha + S * (K[1] - ha); G[2] = ba + S * (K[2] - ba); G[3] = H + S * (K[3] - H); return G
  2332. } function A(G, H) { H = H || 1; let K, S, fa, ha; let ba; do { K = 2 * b.RANDOM() - 1; S = 2 * b.RANDOM() - 1; var O = K * K + S * S } while (1 <= O); do fa = 2 * b.RANDOM() - 1, ha = 2 * b.RANDOM() - 1, ba = fa * fa + ha * ha; while (1 <= ba); O = Math.sqrt((1 - O) / ba); G[0] = H * K; G[1] = H * S; G[2] = H * fa * O; G[3] = H * ha * O; return G } function D(G, H, K) {
  2333. const S = H[0], fa = H[1], ha = H[2]; H = H[3]; G[0] = K[0] * S + K[4] * fa + K[8] * ha + K[12] * H; G[1] = K[1] * S + K[5] * fa + K[9] * ha + K[13] * H; G[2] = K[2] * S + K[6] * fa + K[10] * ha + K[14] * H; G[3] =
  2334. K[3] * S + K[7] * fa + K[11] * ha + K[15] * H; return G
  2335. } function F(G, H, K) { var S = H[0]; const fa = H[1], ha = H[2], ba = K[0], O = K[1], na = K[2]; K = K[3]; const ra = K * S + O * ha - na * fa, Da = K * fa + na * S - ba * ha, Ka = K * ha + ba * fa - O * S; S = -ba * S - O * fa - na * ha; G[0] = ra * K + S * -ba + Da * -na - Ka * -O; G[1] = Da * K + S * -O + Ka * -ba - ra * -na; G[2] = Ka * K + S * -na + ra * -O - Da * -ba; G[3] = H[3]; return G } function J(G) { return "vec4(" + G[0] + ", " + G[1] + ", " + G[2] + ", " + G[3] + ")" } function M(G, H) { return G[0] === H[0] && G[1] === H[1] && G[2] === H[2] && G[3] === H[3] } function N(G, H) {
  2336. const K = G[0], S = G[1], fa = G[2]; G = G[3]; const ha =
  2337. H[0], ba = H[1], O = H[2]; H = H[3]; return Math.abs(K - ha) <= b.EPSILON * Math.max(1, Math.abs(K), Math.abs(ha)) && Math.abs(S - ba) <= b.EPSILON * Math.max(1, Math.abs(S), Math.abs(ba)) && Math.abs(fa - O) <= b.EPSILON * Math.max(1, Math.abs(fa), Math.abs(O)) && Math.abs(G - H) <= b.EPSILON * Math.max(1, Math.abs(G), Math.abs(H))
  2338. } const E = Object.freeze(Object.defineProperty({
  2339. __proto__: null, copy: c, set: e, add: d, subtract: l, multiply: r, divide: q, ceil: k, floor: m, min: g, max: p, round: t, scale: n, scaleAndAdd: u, distance: f, squaredDistance: h, length: v, squaredLength: y,
  2340. negate: B, inverse: w, normalize: x, dot: z, lerp: C, random: A, transformMat4: D, transformQuat: F, str: J, exactEquals: M, equals: N, sub: l, mul: r, div: q, dist: f, sqrDist: h, len: v, sqrLen: y
  2341. }, Symbol.toStringTag, { value: "Module" })); a.add = d; a.ceil = k; a.copy = c; a.dist = f; a.distance = f; a.div = q; a.divide = q; a.dot = z; a.equals = N; a.exactEquals = M; a.floor = m; a.inverse = w; a.len = v; a.length = v; a.lerp = C; a.max = p; a.min = g; a.mul = r; a.multiply = r; a.negate = B; a.normalize = x; a.random = A; a.round = t; a.scale = n; a.scaleAndAdd = u; a.set = e; a.sqrDist = h; a.sqrLen = y; a.squaredDistance =
  2342. h; a.squaredLength = y; a.str = J; a.sub = l; a.subtract = l; a.transformMat4 = D; a.transformQuat = F; a.vec4 = E
  2343. })
  2344. }, "esri/core/compilerUtils": function () { define(["exports", "./has"], function (a, b) { a.neverReached = function (c) { }; a.neverReachedSilent = function (c) { }; a.tuple = (...c) => c; a.typeCast = function (c) { return () => c }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/ground/NavigationConstraint": function () {
  2345. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/Logger ../core/accessorSupport/ensureType ../core/arrayUtils ../core/has ../core/accessorSupport/set ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass".split(" "),
  2346. function (a, b, c, e, d, l, r, q, k, m, g) {
  2347. var p; a.NavigationConstraint = p = function (t) { function n(u) { u = t.call(this, u) || this; u.type = "none"; return u } b._inheritsLoose(n, t); n.prototype.clone = function () { return new p({ type: this.type }) }; return n }(e.JSONSupport); c.__decorate([m.enumeration({ none: "none", stayAbove: "stay-above" })], a.NavigationConstraint.prototype, "type", void 0); a.NavigationConstraint = p = c.__decorate([g.subclass("esri.ground.NavigationConstraint")], a.NavigationConstraint); Object.defineProperties(a, {
  2348. __esModule: { value: !0 },
  2349. [Symbol.toStringTag]: { value: "Module" }
  2350. })
  2351. })
  2352. }, "esri/core/accessorSupport/decorators/enumeration": function () {
  2353. define(["exports", "../../jsonMap", "./property"], function (a, b, c) {
  2354. a.enumeration = function (e, d = {}) {
  2355. var l; e = e instanceof b.JSONMap ? e : new b.JSONMap(e, d); e = { type: (null != (l = null == d ? void 0 : d.ignoreUnknown) ? l : 1) ? e.apiValues : String, json: { type: e.jsonValues, read: null != d && d.readOnly ? !1 : { reader: e.read }, write: { writer: e.write } } }; void 0 !== (null == d ? void 0 : d.readOnly) && (e.readOnly = !!d.readOnly); void 0 !== (null == d ?
  2356. void 0 : d.default) && (e.json.default = d.default); void 0 !== (null == d ? void 0 : d.name) && (e.json.name = d.name); return c.property(e)
  2357. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2358. })
  2359. }, "esri/webdoc/support/opacityUtils": function () {
  2360. define(["exports", "../../core/accessorSupport/ensureType"], function (a, b) {
  2361. a.opacityToTransparency = function (c) { c = b.ensureInteger(100 * (1 - c)); return Math.max(0, Math.min(c, 100)) }; a.transparencyToOpacity = function (c) {
  2362. return Math.max(0, Math.min(1 - c /
  2363. 100, 1))
  2364. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2365. })
  2366. }, "esri/core/CollectionFlattener": function () {
  2367. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Collection ./HandleOwner ./maybe ./has ./Error ./Logger ./accessorSupport/watch ./accessorSupport/trackingUtils ./accessorSupport/decorators/property ./arrayUtils ./accessorSupport/ensureType ./accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  2368. e = function (u) {
  2369. function f(v) {
  2370. v =
  2371. u.call(this, v) || this; v.getCollections = null; return v
  2372. } a._inheritsLoose(f, u); var h = f.prototype; h.initialize = function () { this.handles.add(m.autorun(() => this._refresh())) }; h.destroy = function () { this.getCollections = null }; h._refresh = function () { const v = d.isSome(this.getCollections) ? this.getCollections() : null; if (d.isNone(v)) this.removeAll(); else { var y = 0; for (const B of v) d.isSome(B) && (y = this._processCollection(y, B)); this.splice(y, this.length) } }; h._createNewInstance = function (v) { return new c(v) }; h._processCollection =
  2373. function (v, y) { if (!y) return v; const B = this.itemFilterFunction ? this.itemFilterFunction : w => !!w; for (const w of y) if (w && (B(w) && (y = this.indexOf(w, v), 0 <= y ? y !== v && this.reorder(w, v) : this.add(w, v), ++v), this.getChildrenFunction)) if (y = this.getChildrenFunction(w), Array.isArray(y)) for (const x of y) v = this._processCollection(v, x); else v = this._processCollection(v, y); return v }; return f
  2374. }(e.HandleOwnerMixin(c)); b.__decorate([g.property()], e.prototype, "getCollections", void 0); b.__decorate([g.property()], e.prototype, "getChildrenFunction",
  2375. void 0); b.__decorate([g.property()], e.prototype, "itemFilterFunction", void 0); return e = b.__decorate([n.subclass("esri.core.CollectionFlattener")], e)
  2376. })
  2377. }, "esri/core/HandleOwner": function () {
  2378. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./Handles ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass ./support/WatchUpdatingTracking".split(" "), function (a, b, c, e, d, l, r, q) {
  2379. const k = m => {
  2380. m = function (g) {
  2381. function p() { return g.apply(this, arguments) || this }
  2382. b._inheritsLoose(p, g); p.prototype.destroy = function () { var t, n; this.destroyed || (null == (t = this._get("handles")) ? void 0 : t.destroy(), null == (n = this._get("updatingHandles")) ? void 0 : n.destroy()) }; b._createClass(p, [{ key: "handles", get: function () { return this._get("handles") || new d } }, { key: "updatingHandles", get: function () { return this._get("updatingHandles") || new q.WatchUpdatingTracking } }]); return p
  2383. }(m); c.__decorate([l.property({ readOnly: !0 })], m.prototype, "handles", null); c.__decorate([l.property({ readOnly: !0 })],
  2384. m.prototype, "updatingHandles", null); return m = c.__decorate([r.subclass("esri.core.HandleOwner")], m)
  2385. }; a.HandleOwner = function (m) { function g() { return m.apply(this, arguments) || this } b._inheritsLoose(g, m); return g }(k(e)); a.HandleOwner = c.__decorate([r.subclass("esri.core.HandleOwner")], a.HandleOwner); a.HandleOwnerMixin = k; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2386. })
  2387. }, "esri/core/Handles": function () {
  2388. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./Collection ./maybe ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),
  2389. function (a, b, c, e, d, l, r) {
  2390. c = function (q) {
  2391. function k(g) { g = q.call(this, g) || this; g._groups = new Map; return g } a._inheritsLoose(k, q); var m = k.prototype; m.destroy = function () { this.removeAll() }; m.add = function (g, p) { if (!this._isHandle(g) && !Array.isArray(g) && !e.isCollection(g)) return this; const t = this._getOrCreateGroup(p); Array.isArray(g) || e.isCollection(g) ? g.forEach(n => this._isHandle(n) && t.push(n)) : t.push(g); this.notifyChange("size"); return this }; m.forEach = function (g, p) {
  2392. if ("function" === typeof g) this._groups.forEach(t =>
  2393. t.forEach(g)); else { const t = this._getGroup(g); t && p && t.forEach(p) }
  2394. }; m.has = function (g) { return this._groups.has(this._ensureGroupKey(g)) }; m.remove = function (g) { if (Array.isArray(g) || e.isCollection(g)) return g.forEach(this.remove, this), this; if (!this.has(g)) return this; const p = this._getGroup(g); for (let t = 0; t < p.length; t++)p[t].remove(); this._deleteGroup(g); this.notifyChange("size"); return this }; m.removeAll = function () {
  2395. this._groups.forEach(g => { for (let p = 0; p < g.length; p++)g[p].remove() }); this._groups.clear();
  2396. this.notifyChange("size"); return this
  2397. }; m._isHandle = function (g) { return g && !!g.remove }; m._getOrCreateGroup = function (g) { if (this.has(g)) return this._getGroup(g); const p = []; this._groups.set(this._ensureGroupKey(g), p); return p }; m._getGroup = function (g) { return d.assumeNonNull(this._groups.get(this._ensureGroupKey(g))) }; m._deleteGroup = function (g) { return this._groups.delete(this._ensureGroupKey(g)) }; m._ensureGroupKey = function (g) { return g || "_default_" }; a._createClass(k, [{
  2398. key: "size", get: function () {
  2399. let g = 0; this._groups.forEach(p => { g += p.length }); return g
  2400. }
  2401. }]); return k
  2402. }(c); b.__decorate([l.property({ readOnly: !0 })], c.prototype, "size", null); return c = b.__decorate([r.subclass("esri.core.Handles")], c)
  2403. })
  2404. }, "esri/core/support/WatchUpdatingTracking": function () {
  2405. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../Accessor ../Handles ../maybe ../reactiveUtils ../scheduling ../accessorSupport/decorators/property ../accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  2406. a.WatchUpdatingTracking =
  2407. function (g) {
  2408. function p() { var n = g.apply(this, arguments) || this; n.updating = !1; n.handleId = 0; n.handles = new d; n.scheduleHandleId = 0; n.pendingPromises = new Set; return n } b._inheritsLoose(p, g); var t = p.prototype; t.destroy = function () { this.removeAll(); this.handles.destroy() }; t.add = function (n, u, f = {}) { return this._installWatch(n, u, f, r.watch) }; t.addWhen = function (n, u, f = {}) { return this._installWatch(n, u, f, r.when) }; t.addOnCollectionChange = function (n, u, { initial: f = !1, final: h = !1 } = {}) {
  2409. const v = ++this.handleId; this.handles.add([r.on(n,
  2410. "after-changes", this._createSyncUpdatingCallback(), r.sync), r.on(n, "change", u, { onListenerAdd: f ? y => u({ added: y.toArray(), removed: [] }) : void 0, onListenerRemove: h ? y => u({ added: [], removed: y.toArray() }) : void 0 })], v); return { remove: () => this.handles.remove(v) }
  2411. }; t.addPromise = function (n) {
  2412. if (l.isNone(n)) return n; const u = ++this.handleId; this.handles.add({ remove: () => { this.pendingPromises.delete(n) && (0 !== this.pendingPromises.size || this.handles.has(-42) || this._set("updating", !1)) } }, u); this.pendingPromises.add(n); this._set("updating",
  2413. !0); const f = () => this.handles.remove(u); n.then(f, f); return n
  2414. }; t.removeAll = function () { this.pendingPromises.clear(); this.handles.removeAll(); this._set("updating", !1) }; t._installWatch = function (n, u, f = {}, h) { const v = ++this.handleId; f.sync || this._installSyncUpdatingWatch(n, v); n = h(n, u, f); this.handles.add(n, v); return { remove: () => this.handles.remove(v) } }; t._installSyncUpdatingWatch = function (n, u) { const f = this._createSyncUpdatingCallback(); n = r.watch(n, f, { sync: !0, equals: () => !1 }); this.handles.add(n, u); return n };
  2415. t._createSyncUpdatingCallback = function () { return () => { this.handles.remove(-42); ++this.scheduleHandleId; const n = this.scheduleHandleId; this._get("updating") || this._set("updating", !0); this.handles.add(q.schedule(() => { n === this.scheduleHandleId && (this._set("updating", 0 < this.pendingPromises.size), this.handles.remove(-42)) }), -42) } }; return p
  2416. }(e); c.__decorate([k.property({ readOnly: !0 })], a.WatchUpdatingTracking.prototype, "updating", void 0); a.WatchUpdatingTracking = c.__decorate([m.subclass("esri.core.support.WatchUpdatingTracking")],
  2417. a.WatchUpdatingTracking); a.WatchFlags = void 0; (function (g) { g[g.NONE = 0] = "NONE"; g[g.SYNC = 1] = "SYNC"; g[g.INIT = 2] = "INIT" })(a.WatchFlags || (a.WatchFlags = {})); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2418. })
  2419. }, "esri/core/reactiveUtils": function () {
  2420. define("exports ./events ./handleUtils ./maybe ./promiseUtils ./accessorSupport/watch ./accessorSupport/trackingUtils".split(" "), function (a, b, c, e, d, l, r) {
  2421. function q(t, n, u = {}) { return k(t, n, u, g) } function k(t, n, u = {}, f) {
  2422. let h =
  2423. null; const v = u.once ? (y, B) => { f(y) && (e.removeMaybe(h), n(y, B)) } : (y, B) => { f(y) && n(y, B) }; h = l.watchTracked(t, v, u.sync, u.equals); u.initial && (t = t(), v(t, t)); return h
  2424. } function m(t, n, u) { if (d.isAborted(u)) return Promise.reject(d.createAbortError()); const f = t(); if (null != n && n(f)) return Promise.resolve(f); let h = null; return new Promise((v, y) => { h = c.handlesGroup([d.onAbort(u, () => { h = e.removeMaybe(h); y(d.createAbortError()) }), k(t, B => { h = e.removeMaybe(h); v(B) }, { sync: !1, once: !0 }, null != n ? n : g)]) }) } function g(t) { return !0 } function p(t) { return !!t }
  2425. a.autorun = r.autorun; a.initial = { initial: !0 }; a.on = function (t, n, u, f = {}) { function h() { y && B && (B.remove(), null == f.onListenerRemove ? void 0 : f.onListenerRemove(y), B = y = null) } function v(z) { f.once && f.once && e.removeMaybe(w); u(z) } let y = null, B = null, w = null; const x = q(t, (z, C) => { h(); b.isEventTarget(z) && (y = z, B = b.on(z, n, v), null == f.onListenerAdd ? void 0 : f.onListenerAdd(z)) }, { sync: f.sync, initial: !0 }); return w = c.makeHandle(() => { x.remove(); h() }) }; a.once = function (t, n) { return m(t, null, n) }; a.pausable = function (t, n, u = {}) {
  2426. let f =
  2427. !1; const h = q(t, (v, y) => { f || n(v, y) }, u); return { remove() { h.remove() }, pause() { f = !0 }, resume() { f = !1 } }
  2428. }; a.sync = { sync: !0 }; a.syncAndInitial = { sync: !0, initial: !0 }; a.watch = q; a.when = function (t, n, u = {}) { return k(t, n, u, p) }; a.whenOnce = function (t, n) { return m(t, p, n) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2429. })
  2430. }, "esri/layers/support/editableLayers": function () {
  2431. define(["exports"], function (a) {
  2432. a.isEditableLayer = function (b) {
  2433. var c; return !(b && b.loaded && "capabilities" in b && null !=
  2434. b && null != (c = b.capabilities) && c.operations && "supportsEditing" in b.capabilities.operations) || !0 !== b.capabilities.operations.supportsEditing || "editingEnabled" in b && !b.editingEnabled ? !1 : !0
  2435. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2436. })
  2437. }, "esri/support/basemapUtils": function () {
  2438. define("exports ../Basemap ../config ../core/Collection ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/ensureType ./basemapDefinitions".split(" "), function (a, b, c,
  2439. e, d, l, r, q, k) {
  2440. function m(A, D) {
  2441. var F; let J; if ("string" === typeof A) { if (!(A in k.esriBasemapDefinitions)) return D = Object.entries(k.esriBasemapDefinitions).filter(([, M]) => c.apiKey && !M.classic || !c.apiKey && M.classic && !M.deprecated).map(([M]) => `"${M}"`).join(", "), z.warn(`Unable to find basemap definition for: ${A}. Try one of these: ${D}`), null; D && (J = D[A]); J || (J = b.fromId(A), D && (D[A] = J)) } else J = q.ensureType(b, A); null != (F = J) && F.destroyed && (z.warn("The provided basemap is already destroyed", { basemap: J }), J =
  2442. null); return J
  2443. } function g(A, D) { const F = new e; A.forEach(J => { const M = D.find(N => w(f(J), f(N))) || J; F.includes(M) ? F.push(J) : F.push(M) }); return F } function p(A) { if (t(A.url)) return !0; if ("vector-tile" === A.type) for (const D in A.sourceNameToSource) { const F = A.sourceNameToSource[D]; if (t(null == F ? void 0 : F.sourceUrl)) return !0 } return !1 } function t(A) { if (!A) return !1; A = new r.Url(r.makeAbsolute(A)); return C.test(A.authority) } function n(A) {
  2444. return A ? !A.loaded && A.resourceInfo ? h(A.resourceInfo.data) : {
  2445. baseLayers: u(A.baseLayers),
  2446. referenceLayers: u(A.referenceLayers)
  2447. } : null
  2448. } function u(A) { return (e.isCollection(A) ? A.toArray() : A).map(f) } function f(A) {
  2449. var D, F; return {
  2450. type: A.type, url: x("urlTemplate" in A && A.urlTemplate || A.url || "styleUrl" in A && A.styleUrl), minScale: "minScale" in A && null != A.minScale ? A.minScale : 0, maxScale: "maxScale" in A && null != A.maxScale ? A.maxScale : 0, opacity: null != A.opacity ? A.opacity : 1, visible: null != A.visible ? !!A.visible : !0, sublayers: "map-image" !== A.type && "wms" !== A.type || !l.isSome(A.sublayers) ? void 0 : null == (D = A.sublayers) ?
  2451. void 0 : D.map(J => ({ id: J.id, visible: J.visible })), activeLayerId: "wmts" === A.type ? null == (F = A.activeLayer) ? void 0 : F.id : void 0
  2452. }
  2453. } function h(A) { return A ? { baseLayers: v(A.baseMapLayers.filter(D => !D.isReference)), referenceLayers: v(A.baseMapLayers.filter(D => D.isReference)) } : null } function v(A) {
  2454. return A.map(D => {
  2455. {
  2456. let F; switch (D.layerType) { case "VectorTileLayer": F = "vector-tile"; break; case "ArcGISTiledMapServiceLayer": F = "tile"; break; default: F = "unknown" }D = {
  2457. type: F, url: x(D.templateUrl || D.urlTemplate || D.styleUrl || D.url),
  2458. minScale: null != D.minScale ? D.minScale : 0, maxScale: null != D.maxScale ? D.maxScale : 0, opacity: null != D.opacity ? D.opacity : 1, visible: null != D.visibility ? !!D.visibility : !0, sublayers: void 0, activeLayerId: void 0
  2459. }
  2460. } return D
  2461. })
  2462. } function y(A, D, F) { return null != A !== (null != D) ? "not-equal" : A ? B(A.baseLayers, D.baseLayers) ? B(A.referenceLayers, D.referenceLayers) ? "equal" : F.mustMatchReferences ? "not-equal" : "base-layers-equal" : "not-equal" : "equal" } function B(A, D) {
  2463. if (A.length !== D.length) return !1; for (let F = 0; F < A.length; F++)if (!w(A[F],
  2464. D[F])) return !1; return !0
  2465. } function w(A, D) {
  2466. if (A.type !== D.type || A.url !== D.url || A.minScale !== D.minScale || A.maxScale !== D.maxScale || A.visible !== D.visible || A.opacity !== D.opacity) return !1; if (l.isSome(A.activeLayerId) || l.isSome(D.activeLayerId)) return A.activeLayerId === D.activeLayerId; if (l.isSome(A.sublayers) || l.isSome(D.sublayers)) {
  2467. if (l.isNone(A.sublayers) || l.isNone(D.sublayers) || A.sublayers.length !== D.sublayers.length) return !1; for (let F = 0; F < A.sublayers.length; F++) {
  2468. const J = A.sublayers.at(F), M = D.sublayers.at(F);
  2469. if (J.id !== M.id || J.visible !== M.visible) return !1
  2470. }
  2471. } return !0
  2472. } function x(A) { return A ? r.normalize(A).replace(/^\s*https?:/i, "").toLowerCase() : "" } const z = d.getLogger("esri.support.basemapUtils"), C = /^(basemaps|ibasemaps).*-api\.arcgis\.com$/i; a.clonePreservingTiledLayers = function (A, D = null) {
  2473. A = m(A); if (!A) return null; const F = new b({ id: A.id, title: A.title, baseLayers: A.baseLayers.slice(), referenceLayers: A.referenceLayers.slice() }); D && (F.baseLayers = g(F.baseLayers, D.baseLayers), F.referenceLayers = g(F.referenceLayers,
  2474. D.referenceLayers)); F.load().catch(() => { }); F.portalItem = A.portalItem; return F
  2475. }; a.contentEquals = function (A, D) { if (A === D) return !0; A = n(A); D = n(D); return "equal" === y(A, D, { mustMatchReferences: !0 }) }; a.createCache = function () { return {} }; a.destroyCache = function (A) { for (const D in A) { const F = A[D]; !1 === (null == F ? void 0 : F.destroyed) && F.destroy(); delete A[D] } }; a.ensureType = m; a.findSpatialReference = function (A, D) {
  2476. var F, J, M; if (l.isNone(D) || l.isNone(A)) return { spatialReference: null, updating: !1 }; if ("not-loaded" === D.loadStatus) return D.load(),
  2477. { spatialReference: null, updating: !0 }; if (D.spatialReference) return { spatialReference: D.spatialReference, updating: !1 }; if (0 === D.baseLayers.length) return { spatialReference: null, updating: !1 }; D = D.baseLayers.getItemAt(0); switch (D.loadStatus) { case "not-loaded": D.load(); case "loading": return { spatialReference: null, updating: !0 }; case "failed": return { spatialReference: null, updating: !1 } }D = (("supportedSpatialReferences" in D ? D.supportedSpatialReferences : null) || ["tileInfo" in D ? null == (F = D.tileInfo) ? void 0 : F.spatialReference :
  2478. D.spatialReference]).filter(Boolean); return A.spatialReference ? { spatialReference: null != (J = null != (M = D.find(N => A.spatialReference.equals(N))) ? M : D[0]) ? J : null, updating: !1 } : { spatialReference: D[0], updating: !1 }
  2479. }; a.getWellKnownBasemapId = function (A) { let D = null; A = n(A); const F = !A.baseLayers.length; for (const M in k.esriBasemapDefinitions) { var J = h(k.esriBasemapDefinitions[M]); J = y(A, J, { mustMatchReferences: F }); if ("equal" === J) { D = M; break } "base-layers-equal" === J && (D = M) } return D }; a.hasDeveloperBasemapLayer = function (A) {
  2480. return !(null ==
  2481. A || !A.baseLayers.concat(A.referenceLayers).some(p))
  2482. }; a.isDeveloperBasemapLayer = p; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2483. })
  2484. }, "esri/support/collectionUtils": function () {
  2485. define(["exports", "../core/CollectionFlattener"], function (a, b) {
  2486. a.createFlattenedTablesCollection = function (c) {
  2487. return new b({
  2488. getCollections: () => [c.tables, c.layers], getChildrenFunction: e => { const d = []; "tables" in e && d.push(e.tables); "layers" in e && d.push(e.layers); return d }, itemFilterFunction: e => { const d = e.parent; return d && "tables" in d && d.tables.includes(e) }
  2489. })
  2490. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2491. })
  2492. }, "esri/support/groundUtils": function () {
  2493. define(["exports", "../Ground", "../core/Logger", "../core/accessorSupport/ensureType"], function (a, b, c, e) {
  2494. const d = c.getLogger("esri.support.groundUtils"), l = {
  2495. "world-elevation": { id: "worldElevation", url: "//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer", layerType: "ArcGISTiledElevationServiceLayer" },
  2496. "world-topobathymetry": { id: "worldTopoBathymetry", url: "//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/TopoBathy3D/ImageServer", layerType: "ArcGISTiledElevationServiceLayer" }
  2497. }; a.ensureType = function (r) { let q = null; "string" === typeof r ? r in l ? q = new b({ resourceInfo: { data: { layers: [l[r]] } } }) : d.warn(`Unable to find ground definition for: ${r}. Try "world-elevation"`) : q = e.ensureType(b, r); return q }; a.groundElevationLayers = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2498. })
  2499. },
  2500. "esri/support/LayersMixin": function () {
  2501. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../layers/Layer".split(" "), function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  2502. function n(f, h, v) {
  2503. if (f) for (let w = 0, x = f.length; w < x; w++) {
  2504. var y; var B = f.getItemAt(w); if (B[h] === v ||
  2505. "group" === (null == (y = B) ? void 0 : y.type) && (B = n(B.layers, h, v))) return B
  2506. }
  2507. } const u = l.getLogger("esri.support.LayersMixin"); a.LayersMixin = f => {
  2508. f = function (h) {
  2509. function v(...B) {
  2510. var w = h.call(this, ...B) || this; w.layers = new e; w.layers.on("before-add", x => { x = x.item; x.parent && "remove" in x.parent && x.parent.remove(x) }); w.layers.on("after-add", x => { x = x.item; x.parent = b._assertThisInitialized(w); w.layerAdded(x); "elevation" !== x.type && "base-elevation" !== x.type || u.error(`Layer 'title:${x.title}, id:${x.id}' of type '${x.type}' is not supported as an operational layer and will therefore be ignored.`) });
  2511. w.layers.on("after-remove", x => { x = x.item; x.parent = null; w.layerRemoved(x) }); return w
  2512. } b._inheritsLoose(v, h); var y = v.prototype; y.destroy = function () { const B = this.layers.removeAll(); for (const w of B) this.layerRemoved(w), w.destroy(); this.layers.destroy() }; y.add = function (B, w) { const x = this.layers; w = x.getNextIndex(w); B instanceof t ? B.parent === this ? this.reorder(B, w) : x.add(B, w) : r.isPromiseLike(B) ? B.then(z => { this.destroyed || this.add(z, w) }) : u.error("#add()", "The item being added is not a Layer or a Promise that resolves to a Layer.") };
  2513. y.addMany = function (B, w) { const x = this.layers; w = x.getNextIndex(w); B.slice().forEach(z => { z.parent === this ? this.reorder(z, w) : (x.add(z, w), w += 1) }) }; y.findLayerById = function (B) { return n(this.layers, "id", B) }; y.findLayerByUid = function (B) { return n(this.layers, "uid", B) }; y.remove = function (B) { return this.layers.remove(B) }; y.removeMany = function (B) { return this.layers.removeMany(B) }; y.removeAll = function () { return this.layers.removeAll() }; y.reorder = function (B, w) { return this.layers.reorder(B, w) }; y.layerAdded = function (B) { };
  2514. y.layerRemoved = function (B) { }; b._createClass(v, [{ key: "layers", set: function (B) { this._set("layers", d.referenceSetter(B, this._get("layers"))) } }]); return v
  2515. }(f); c.__decorate([q.property()], f.prototype, "layers", null); return f = c.__decorate([p.subclass("esri.support.LayersMixin")], f)
  2516. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2517. })
  2518. }, "esri/layers/Layer": function () {
  2519. define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../geometry ../request ../core/Error ../core/Evented ../core/Identifiable ../core/Loadable ../core/Logger ../core/promiseUtils ../core/urlUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/fromPortalItem ../geometry/Extent ../geometry/SpatialReference".split(" "),
  2520. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B) {
  2521. let w = 0; e = function (x) {
  2522. function z() { var A = x.apply(this, arguments) || this; A.attributionDataUrl = null; A.fullExtent = new y(-180, -90, 180, 90, B.WGS84); A.id = Date.now().toString(16) + "-layer-" + w++; A.legendEnabled = !0; A.listMode = "show"; A.opacity = 1; A.parent = null; A.popupEnabled = !0; A.attributionVisible = !0; A.spatialReference = B.WGS84; A.title = null; A.type = null; A.url = null; A.visible = !0; return A } b._inheritsLoose(z, x); z.fromArcGISServerUrl = function () {
  2523. var A = b._asyncToGenerator(function* (D) {
  2524. D =
  2525. "string" === typeof D ? { url: D } : D; return (yield new Promise((F, J) => a(["./support/arcgisLayers"], F, J))).fromUrl(D)
  2526. }); return function (D) { return A.apply(this, arguments) }
  2527. }(); z.fromPortalItem = function (A) { return v.fromPortalItem(A) }; var C = z.prototype; C.initialize = function () { this.when().catch(A => { if (!g.isAbortError(A)) { var D, F; m.getLogger(this.declaredClass).error("#load()", `Failed to load layer (title: '${null != (D = this.title) ? D : "no title"}', id: '${null != (F = this.id) ? F : "no id"}')`, { error: A }) } }) }; C.destroy = function () {
  2528. if (this.parent) {
  2529. const A =
  2530. this.parent; "layers" in A && A.layers.includes(this) ? A.layers.remove(this) : "tables" in A && A.tables.includes(this) ? A.tables.remove(this) : "baseLayers" in A && A.baseLayers.includes(this) ? A.baseLayers.remove(this) : "baseLayers" in A && A.referenceLayers.includes(this) && A.referenceLayers.remove(this)
  2531. }
  2532. }; C.fetchAttributionData = function () {
  2533. var A = b._asyncToGenerator(function* () {
  2534. const D = this.attributionDataUrl; if (this.hasAttributionData && D) return (yield d(D, { query: { f: "json" }, responseType: "json" })).data; throw new l("layer:no-attribution-data",
  2535. "Layer does not have attribution data");
  2536. }); return function () { return A.apply(this, arguments) }
  2537. }(); b._createClass(z, [{ key: "hasAttributionData", get: function () { return null != this.attributionDataUrl } }, { key: "parsedUrl", get: function () { const A = this.url; return A ? p.urlToObject(A) : null } }]); return z
  2538. }(r.EventedMixin(q.IdentifiableMixin(k))); c.__decorate([t.property({ type: String })], e.prototype, "attributionDataUrl", void 0); c.__decorate([t.property({ type: y })], e.prototype, "fullExtent", void 0); c.__decorate([t.property({ readOnly: !0 })],
  2539. e.prototype, "hasAttributionData", null); c.__decorate([t.property({ type: String, clonable: !1 })], e.prototype, "id", void 0); c.__decorate([t.property({ type: Boolean, nonNullable: !0 })], e.prototype, "legendEnabled", void 0); c.__decorate([t.property({ type: ["show", "hide", "hide-children"] })], e.prototype, "listMode", void 0); c.__decorate([t.property({ type: Number, range: { min: 0, max: 1 }, nonNullable: !0 })], e.prototype, "opacity", void 0); c.__decorate([t.property({ clonable: !1 })], e.prototype, "parent", void 0); c.__decorate([t.property({ readOnly: !0 })],
  2540. e.prototype, "parsedUrl", null); c.__decorate([t.property({ type: Boolean })], e.prototype, "popupEnabled", void 0); c.__decorate([t.property({ type: Boolean })], e.prototype, "attributionVisible", void 0); c.__decorate([t.property({ type: B })], e.prototype, "spatialReference", void 0); c.__decorate([t.property({ type: String })], e.prototype, "title", void 0); c.__decorate([t.property({ readOnly: !0, json: { read: !1 } })], e.prototype, "type", void 0); c.__decorate([t.property()], e.prototype, "url", void 0); c.__decorate([t.property({
  2541. type: Boolean,
  2542. nonNullable: !0
  2543. })], e.prototype, "visible", void 0); return e = c.__decorate([h.subclass("esri.layers.Layer")], e)
  2544. })
  2545. }, "esri/geometry": function () {
  2546. define("exports ./core/accessorSupport/ensureType ./geometry/Extent ./geometry/Geometry ./geometry/Multipoint ./geometry/Point ./geometry/Polygon ./geometry/Polyline ./geometry/SpatialReference ./geometry/support/typeUtils ./geometry/support/jsonUtils".split(" "), function (a, b, c, e, d, l, r, q, k, m, g) {
  2547. const p = {
  2548. base: e, key: "type", typeMap: {
  2549. extent: c, multipoint: d, point: l, polyline: q,
  2550. polygon: r
  2551. }
  2552. }; b = b.ensureOneOfType(p); a.Extent = c; a.BaseGeometry = e; a.Multipoint = d; a.Point = l; a.Polygon = r; a.Polyline = q; a.SpatialReference = k; a.featureGeometryTypeKebabDictionary = m.featureGeometryTypeKebabDictionary; a.isFeatureGeometryType = m.isFeatureGeometryType; a.typeKebabDictionary = m.typeKebabDictionary; a.fromJSON = g.fromJSON; a.ensureType = b; a.geometryTypes = p; a.isGeometry = function (t) { return t instanceof e }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2553. })
  2554. }, "esri/geometry/Multipoint": function () {
  2555. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./support/zmUtils".split(" "),
  2556. function (a, b, c, e, d, l, r, q, k, m, g) {
  2557. function p(n) { return (u, f) => null == u ? f : null == f ? u : n(u, f) } var t; d = t = function (n) {
  2558. function u(...h) { h = n.call(this, ...h) || this; h.points = []; h.type = "multipoint"; return h } a._inheritsLoose(u, n); var f = u.prototype; f.normalizeCtorArgs = function (h, v) {
  2559. if (!h && !v) return null; const y = {}; Array.isArray(h) ? (y.points = h, y.spatialReference = v) : !h || "esri.geometry.SpatialReference" !== h.declaredClass && null == h.wkid ? (h.points && (y.points = h.points), h.spatialReference && (y.spatialReference = h.spatialReference),
  2560. h.hasZ && (y.hasZ = h.hasZ), h.hasM && (y.hasM = h.hasM)) : y.spatialReference = h; if (h = y.points && y.points[0]) void 0 === y.hasZ && void 0 === y.hasM ? (y.hasZ = 2 < h.length, y.hasM = !1) : void 0 === y.hasZ ? y.hasZ = 3 < h.length : void 0 === y.hasM && (y.hasM = 3 < h.length); return y
  2561. }; f.writePoints = function (h, v) { v.points = c.clone(this.points) }; f.addPoint = function (h) { g.updateSupportFromPoint(this, h); Array.isArray(h) ? this.points.push(h) : this.points.push(h.toArray()); this.notifyChange("points"); return this }; f.clone = function () {
  2562. const h = {
  2563. points: c.clone(this.points),
  2564. spatialReference: this.spatialReference
  2565. }; this.hasZ && (h.hasZ = !0); this.hasM && (h.hasM = !0); return new t(h)
  2566. }; f.getPoint = function (h) { if (!this._validateInputs(h)) return null; h = this.points[h]; const v = { x: h[0], y: h[1], spatialReference: this.spatialReference }; let y = 2; this.hasZ && (v.z = h[2], y = 3); this.hasM && (v.m = h[y]); return new m(v) }; f.removePoint = function (h) { if (!this._validateInputs(h)) return null; h = new m(this.points.splice(h, 1)[0], this.spatialReference); this.notifyChange("points"); return h }; f.setPoint = function (h,
  2567. v) { if (!this._validateInputs(h)) return this; g.updateSupportFromPoint(this, v); Array.isArray(v) || (v = v.toArray()); this.points[h] = v; this.notifyChange("points"); return this }; f.toJSON = function (h) { return this.write({}, h) }; f._validateInputs = function (h) { return null != h && 0 <= h && h < this.points.length }; a._createClass(u, [{ key: "cache", get: function () { this.commitProperty("points"); this.commitProperty("hasZ"); this.commitProperty("hasM"); this.commitProperty("spatialReference"); return {} } }, {
  2568. key: "extent", get: function () {
  2569. const h =
  2570. this.points; if (!h.length) return null; const v = new q, y = this.hasZ, B = this.hasM, w = y ? 3 : 2; var x = h[0]; const z = p(Math.min), C = p(Math.max); let [A, D] = x, [F, J] = x, M, N, E, G; for (let H = 0, K = h.length; H < K; H++) { x = h[H]; const [S, fa] = x; A = z(A, S); D = z(D, fa); F = C(F, S); J = C(J, fa); if (y && 2 < x.length) { const ha = x[2]; M = z(M, ha); E = C(E, ha) } B && x.length > w && (x = x[w], N = z(N, x), G = C(G, x)) } v.xmin = A; v.ymin = D; v.xmax = F; v.ymax = J; v.spatialReference = this.spatialReference; y ? (v.zmin = M, v.zmax = E) : (v.zmin = null, v.zmax = null); B ? (v.mmin = N, v.mmax = G) : (v.mmin = null,
  2571. v.mmax = null); return v
  2572. }
  2573. }]); return u
  2574. }(k); b.__decorate([e.property({ readOnly: !0 })], d.prototype, "cache", null); b.__decorate([e.property()], d.prototype, "extent", null); b.__decorate([e.property({ type: [[Number]], json: { write: { isRequired: !0 } } })], d.prototype, "points", void 0); b.__decorate([r.writer("points")], d.prototype, "writePoints", null); d = t = b.__decorate([l.subclass("esri.geometry.Multipoint")], d); d.prototype.toJSON.isDefaultToJSON = !0; return d
  2575. })
  2576. }, "esri/geometry/support/zmUtils": function () {
  2577. define(["exports"],
  2578. function (a) { a.updateSupportFromPoint = function (b, c, e = !1) { let { hasM: d, hasZ: l } = b; Array.isArray(c) ? 4 !== c.length || d || l ? 3 === c.length && e && !d ? (l = !0, d = !1) : 3 === c.length && d && l && (l = d = !1) : l = d = !0 : (l = !l && c.hasZ && (!d || c.hasM), d = !d && c.hasM && (!l || c.hasZ)); b.hasZ = l; b.hasM = d }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  2579. }, "esri/geometry/Polygon": function () {
  2580. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/arrayUtils ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./SpatialReference ./support/centroid ./support/contains ./support/coordsUtils ./support/extentUtils ./support/intersectsBase ./support/webMercatorUtils ./support/zmUtils".split(" "),
  2581. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B) {
  2582. var w; r = w = function (x) {
  2583. function z(...A) { A = x.call(this, ...A) || this; A.rings = []; A.type = "polygon"; return A } a._inheritsLoose(z, x); z.fromExtent = function (A) {
  2584. var D = A.clone().normalize(); A = A.spatialReference; let F = !1, J = !1; for (const M of D) M.hasZ && (F = !0), M.hasM && (J = !0); D = {
  2585. rings: D.map(M => {
  2586. const N = [[M.xmin, M.ymin], [M.xmin, M.ymax], [M.xmax, M.ymax], [M.xmax, M.ymin], [M.xmin, M.ymin]]; if (F && M.hasZ) { var E = M.zmin + .5 * (M.zmax - M.zmin); for (let G = 0; G < N.length; G++)N[G].push(E) } if (J &&
  2587. M.hasM) for (M = M.mmin + .5 * (M.mmax - M.mmin), E = 0; E < N.length; E++)N[E].push(M); return N
  2588. }), spatialReference: A
  2589. }; F && (D.hasZ = !0); J && (D.hasM = !0); return new w(D)
  2590. }; var C = z.prototype; C.normalizeCtorArgs = function (A, D) {
  2591. let F = null, J, M, N = null; A && !Array.isArray(A) ? (F = A.rings ? A.rings : null, D || (A.spatialReference ? D = A.spatialReference : A.rings || (D = A)), J = A.hasZ, M = A.hasM) : F = A; F = F || []; D = D || t.WGS84; F.length && F[0] && null != F[0][0] && "number" === typeof F[0][0] && (F = [F]); if (N = F[0] && F[0][0]) void 0 === J && void 0 === M ? (J = 2 < N.length, M = 3 < N.length) :
  2592. void 0 === J ? J = M ? 3 < N.length : 2 < N.length : void 0 === M && (M = J ? 3 < N.length : 2 < N.length); return { rings: F, spatialReference: D, hasZ: J, hasM: M }
  2593. }; C.writeRings = function (A, D) { D.rings = e.clone(this.rings) }; C.addRing = function (A) { if (A) { var D = this.rings, F = D.length; if (Array.isArray(A[0])) D[F] = A.concat(); else { const J = []; for (let M = 0, N = A.length; M < N; M++)J[M] = A[M].toArray(); D[F] = J } this.notifyChange("rings"); return this } }; C.clone = function () {
  2594. const A = new w; A.spatialReference = this.spatialReference; A.rings = e.clone(this.rings); A.hasZ =
  2595. this.hasZ; A.hasM = this.hasM; return A
  2596. }; C.equals = function (A) { if (this === A) return !0; if (d.isNone(A)) return !1; var D = this.spatialReference, F = A.spatialReference; if (d.isSome(D) !== d.isSome(F) || d.isSome(D) && d.isSome(F) && !D.equals(F) || this.rings.length !== A.rings.length) return !1; D = ([J, M, N, E], [G, H, K, S]) => J === G && M === H && (null == N && null == K || N === K) && (null == E && null == S || E === S); for (F = 0; F < this.rings.length; F++)if (!c.equals(this.rings[F], A.rings[F], D)) return !1; return !0 }; C.contains = function (A) {
  2597. if (!A) return !1; const D = y.project(A,
  2598. this.spatialReference); return u.polygonContainsPoint(this, d.isSome(D) ? D : A)
  2599. }; C.isClockwise = function (A) { A = Array.isArray(A[0]) ? A : A.map(D => this.hasZ ? this.hasM ? [D.x, D.y, D.z, D.m] : [D.x, D.y, D.z] : [D.x, D.y]); return f.isClockwise(A, this.hasM, this.hasZ) }; C.getPoint = function (A, D) {
  2600. if (!this._validateInputs(A, D)) return null; A = this.rings[A][D]; D = this.hasZ; const F = this.hasM; return D && !F ? new p(A[0], A[1], A[2], void 0, this.spatialReference) : F && !D ? new p(A[0], A[1], void 0, A[2], this.spatialReference) : D && F ? new p(A[0], A[1],
  2601. A[2], A[3], this.spatialReference) : new p(A[0], A[1], this.spatialReference)
  2602. }; C.insertPoint = function (A, D, F) { if (!this._validateInputs(A, D, !0)) return this; B.updateSupportFromPoint(this, F); Array.isArray(F) || (F = F.toArray()); this.rings[A].splice(D, 0, F); this.notifyChange("rings"); return this }; C.removePoint = function (A, D) { if (!this._validateInputs(A, D)) return null; A = new p(this.rings[A].splice(D, 1)[0], this.spatialReference); this.notifyChange("rings"); return A }; C.removeRing = function (A) {
  2603. if (!this._validateInputs(A,
  2604. null)) return null; A = this.rings.splice(A, 1)[0]; const D = this.spatialReference; A = A.map(F => new p(F, D)); this.notifyChange("rings"); return A
  2605. }; C.setPoint = function (A, D, F) { if (!this._validateInputs(A, D)) return this; B.updateSupportFromPoint(this, F); Array.isArray(F) || (F = F.toArray()); this.rings[A][D] = F; this.notifyChange("rings"); return this }; C._validateInputs = function (A, D, F = !1) { return null == A || 0 > A || A >= this.rings.length || null != D && (A = this.rings[A], F && (0 > D || D > A.length) || !F && (0 > D || D >= A.length)) ? !1 : !0 }; C.toJSON = function (A) {
  2606. return this.write({},
  2607. A)
  2608. }; a._createClass(z, [{ key: "cache", get: function () { this.commitProperty("rings"); this.commitProperty("hasZ"); this.commitProperty("hasM"); this.commitProperty("spatialReference"); return {} } }, { key: "centroid", get: function () { const A = n.polygonCentroid(this); if (!A || isNaN(A[0]) || isNaN(A[1]) || this.hasZ && isNaN(A[2])) return null; const D = new p; D.x = A[0]; D.y = A[1]; D.spatialReference = this.spatialReference; this.hasZ && (D.z = A[2]); return D } }, {
  2609. key: "extent", get: function () {
  2610. const { spatialReference: A } = this; var D = h.getPolygonExtent(this);
  2611. if (!D) return null; D = new m(D); D.spatialReference = A; return D
  2612. }
  2613. }, { key: "isSelfIntersecting", get: function () { return v.isSelfIntersecting(this.rings) } }]); return z
  2614. }(g); b.__decorate([l.property({ readOnly: !0 })], r.prototype, "cache", null); b.__decorate([l.property({ readOnly: !0 })], r.prototype, "centroid", null); b.__decorate([l.property({ readOnly: !0 })], r.prototype, "extent", null); b.__decorate([l.property({ readOnly: !0 })], r.prototype, "isSelfIntersecting", null); b.__decorate([l.property({ type: [[[Number]]], json: { write: { isRequired: !0 } } })],
  2615. r.prototype, "rings", void 0); b.__decorate([k.writer("rings")], r.prototype, "writeRings", null); r = w = b.__decorate([q.subclass("esri.geometry.Polygon")], r); r.prototype.toJSON.isDefaultToJSON = !0; return r
  2616. })
  2617. }, "esri/geometry/support/centroid": function () {
  2618. define(["exports", "./coordsUtils"], function (a, b) {
  2619. function c(l, r) {
  2620. if (!l || !l.length) return null; const q = [], k = [], m = r ? [Infinity, -Infinity, Infinity, -Infinity, Infinity, -Infinity] : [Infinity, -Infinity, Infinity, -Infinity]; for (let g = 0, p = l.length; g < p; g++) {
  2621. const t = e(l[g],
  2622. r, m); t && k.push(t)
  2623. } k.sort((g, p) => { let t = g[2] - p[2]; 0 === t && r && (t = g[4] - p[4]); return t }); k.length && (q[0] = k[0][0], q[1] = k[0][1], r && (q[2] = k[0][3]), q[0] < m[0] || q[0] > m[1] || q[1] < m[2] || q[1] > m[3] || r && (q[2] < m[4] || q[2] > m[5])) && (q.length = 0); if (!q.length) if (l = l[0] && l[0].length ? d(l[0], r) : null) q[0] = l[0], q[1] = l[1], r && 2 < l.length && (q[2] = l[2]); else return null; return q
  2624. } function e(l, r, q) {
  2625. let k = 0, m = 0, g = 0, p = 0, t = 0; const n = l.length ? l[0][0] : 0, u = l.length ? l[0][1] : 0, f = l.length && r ? l[0][2] : 0; for (let v = 0; v < l.length; v++) {
  2626. var h = l[v];
  2627. const y = l[(v + 1) % l.length], [B, w, x] = h, z = B - n, C = w - u, A = r ? x - f : void 0, [D, F, J] = y, M = D - n, N = F - u, E = r ? J - f : void 0, G = z * N - M * C; p += G; k += (z + M) * G; m += (C + N) * G; r && 2 < h.length && 2 < y.length && (h = z * E - M * A, g += (A + E) * h, t += h); B < q[0] && (q[0] = B); B > q[1] && (q[1] = B); w < q[2] && (q[2] = w); w > q[3] && (q[3] = w); r && (x < q[4] && (q[4] = x), x > q[5] && (q[5] = x))
  2628. } 0 < p && (p *= -1); 0 < t && (t *= -1); if (!p) return null; p *= .5; t *= .5; l = [k / (6 * p) + n, m / (6 * p) + u, p]; r && (q[4] === q[5] || 0 === t ? (l[3] = (q[4] + q[5]) / 2, l[4] = 0) : (l[3] = g / (6 * t) + f, l[4] = t)); return l
  2629. } function d(l, r) {
  2630. const q = r ? [0, 0, 0] : [0,
  2631. 0], k = r ? [0, 0, 0] : [0, 0]; let m = 0, g = 0, p = 0, t = 0; for (let u = 0, f = l.length; u < f - 1; u++) { var n = l[u]; const h = l[u + 1]; if (n && h) { q[0] = n[0]; q[1] = n[1]; k[0] = h[0]; k[1] = h[1]; r && 2 < n.length && 2 < h.length && (q[2] = n[2], k[2] = h[2]); const v = b.getLength(q, k); v && (m += v, n = b.getMidpoint(n, h), g += v * n[0], p += v * n[1], r && 2 < n.length && (t += v * n[2])) } } return 0 < m ? r ? [g / m, p / m, t / m] : [g / m, p / m] : l.length ? l[0] : null
  2632. } a.extentCentroid = function (l) { return l ? l.hasZ ? [l.xmax - l.xmin / 2, l.ymax - l.ymin / 2, l.zmax - l.zmin / 2] : [l.xmax - l.xmin / 2, l.ymax - l.ymin / 2] : null }; a.lineCentroid =
  2633. d; a.polygonCentroid = function (l) { return l ? c(l.rings, l.hasZ) : null }; a.ringsCentroid = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2634. })
  2635. }, "esri/geometry/support/coordsUtils": function () {
  2636. define(["exports", "./spatialReferenceUtils"], function (a, b) {
  2637. function c(r, q) { const k = q[0] - r[0], m = q[1] - r[1]; return 2 < r.length && 2 < q.length ? (r = r[2] - q[2], Math.sqrt(k * k + m * m + r * r)) : Math.sqrt(k * k + m * m) } function e(r, q, k) {
  2638. const m = r[0] + k * (q[0] - r[0]), g = r[1] + k * (q[1] - r[1]); return 2 < r.length && 2 < q.length ?
  2639. [m, g, r[2] + k * (q[2] - r[2])] : [m, g]
  2640. } function d(r, q, k) { const m = r.length; let g = 0, p = 0, t = 0; for (let n = 0; n < m; n++) { const u = r[n], f = r[(n + 1) % m]; let h = 2; g += u[0] * f[1] - f[0] * u[1]; 2 < u.length && 2 < f.length && k && (p += u[0] * f[2] - f[0] * u[2], h = 3); u.length > h && f.length > h && q && (t += u[0] * f[h] - f[0] * u[h]) } return 0 >= g && 0 >= p && 0 >= t } function l(r, q) {
  2641. if (q = b.getInfo(q)) {
  2642. var k = q.valid[0], m = q.valid[1], g = m - k; for (const p of r) {
  2643. let t = Infinity, n = -Infinity; p.forEach(u => { let f = u[0]; for (; f < k;)f += g; for (; f > m;)f -= g; t = Math.min(t, f); n = Math.max(n, f); u[0] = f });
  2644. r = n - t; g - r < r && p.forEach(u => { 0 > u[0] && (u[0] += g) })
  2645. }
  2646. }
  2647. } a.closeRings = function (r) { if ("rings" in r) for (const q of r.rings) 3 > q.length || q[0][0] === q[q.length - 1][0] && q[0][1] === q[q.length - 1][1] || q.push([q[0][0], q[0][1]]) }; a.closeRingsAndFixWinding = function (r) { if ("rings" in r) { for (var q of r.rings) 3 > q.length || q[0][0] === q[q.length - 1][0] && q[0][1] === q[q.length - 1][1] || q.push([q[0][0], q[0][1]]); if (0 < r.rings.length && !d(r.rings[0], r.hasM, r.hasZ)) for (q = 0; q < r.rings.length; ++q)r.rings[q] = r.rings[q].reverse() } }; a.computeUnnormalizedVertexPositionsOnDateLineCrossing =
  2648. function (r, q, k, m) { let g = Infinity, p = -Infinity; r.forEach(n => { let u = n.pos[0]; for (; u < q;)u += m; for (; u > k;)u -= m; g = Math.min(g, u); p = Math.max(p, u); n.unnormalizedPos[0] = u; n.unnormalizedPos[1] = n.pos[1]; 2 < n.pos.length && (n.unnormalizedPos[2] = n.pos[2]); 3 < n.pos.length && (n.unnormalizedPos[3] = n.pos[3]) }); const t = p - g; m - t < t && r.forEach(n => { 0 > n.unnormalizedPos[0] && (n.unnormalizedPos[0] += m) }) }; a.geometryToCoordinates = function (r) {
  2649. if (!r) return null; if (Array.isArray(r)) return r; const q = r.hasZ, k = r.hasM; if ("point" === r.type) return k &&
  2650. q ? [r.x, r.y, r.z, r.m] : q ? [r.x, r.y, r.z] : k ? [r.x, r.y, r.m] : [r.x, r.y]; if ("polygon" === r.type) return r.rings.slice(0); if ("polyline" === r.type) return r.paths.slice(0); if ("multipoint" === r.type) return r.points.slice(0); if ("extent" === r.type) {
  2651. r = r.clone().normalize(); if (!r) return null; let m = !1, g = !1; r.forEach(p => { p.hasZ && (m = !0); p.hasM && (g = !0) }); return r.map(p => {
  2652. const t = [[p.xmin, p.ymin], [p.xmin, p.ymax], [p.xmax, p.ymax], [p.xmax, p.ymin], [p.xmin, p.ymin]]; if (m && p.hasZ) { var n = .5 * (p.zmax - p.zmin); for (let u = 0; u < t.length; u++)t[u].push(n) } if (g &&
  2653. p.hasM) for (p = .5 * (p.mmax - p.mmin), n = 0; n < t.length; n++)t[n].push(p); return t
  2654. })
  2655. } return null
  2656. }; a.getLength = c; a.getMidpoint = function (r, q) { return e(r, q, .5) }; a.getPathLength = function (r) { const q = r.length; let k = 0; for (let m = 0; m < q - 1; ++m)k += c(r[m], r[m + 1]); return k }; a.getPointOnPath = function (r, q) { if (0 >= q) return r[0]; const k = r.length; let m = 0; for (let g = 0; g < k - 1; ++g) { const p = c(r[g], r[g + 1]); if (q - m < p) return e(r[g], r[g + 1], (q - m) / p); m += p } return r[k - 1] }; a.getRingArea = function (r) {
  2657. const q = r.length; let k = 0; for (let m = 0; m < q; m++) {
  2658. const g =
  2659. r[m], p = r[(m + 1) % q]; k += g[0] * p[1] - p[0] * g[1]
  2660. } return k
  2661. }; a.isClockwise = d; a.projectPointOnLine = function (r, q, k, m) { const [g, p] = q, [t, n] = k[m], [u, f] = k[m + 1]; q = u - t; k = f - n; m = Math.min(1, Math.max(0, ((g - t) * q + (p - n) * k) / (q * q + k * k))); r[0] = t + q * m; r[1] = n + k * m; return r }; a.unnormalizeGeometryOnDatelineCrossing = function (r) { if ("polygon" !== r.type && "polyline" !== r.type) return r; l("polygon" === r.type ? r.rings : r.paths, r.spatialReference); return r }; a.unnormalizeVerticesOnDatelineCrossing = l; Object.defineProperties(a, {
  2662. __esModule: { value: !0 },
  2663. [Symbol.toStringTag]: { value: "Module" }
  2664. })
  2665. })
  2666. }, "esri/geometry/support/extentUtils": function () {
  2667. define(["exports", "./boundsUtils"], function (a, b) {
  2668. function c(k, m = !1, g = !1) { return m ? g ? { xmin: k[0], ymin: k[1], zmin: k[2], mmin: k[3], xmax: k[4], ymax: k[5], zmax: k[6], mmax: k[7] } : { xmin: k[0], ymin: k[1], zmin: k[2], xmax: k[3], ymax: k[4], zmax: k[5] } : g ? { xmin: k[0], ymin: k[1], mmin: k[2], xmax: k[3], ymax: k[4], mmax: k[5] } : { xmin: k[0], ymin: k[1], xmax: k[2], ymax: k[3] } } function e(k) {
  2669. const { hasZ: m, hasM: g, points: p } = k; return c(b.getPointsBounds(q, p,
  2670. m, g), m, g)
  2671. } function d(k) { const { x: m, y: g, z: p, m: t } = k; k = null != t; return null != p ? k ? { xmin: m, ymin: g, zmin: p, mmin: t, xmax: m, ymax: g, zmax: p, mmax: t } : { xmin: m, ymin: g, zmin: p, xmax: m, ymax: g, zmax: p } : k ? { xmin: m, ymin: g, mmin: t, xmax: m, ymax: g, mmax: t } : { xmin: m, ymin: g, xmax: m, ymax: g } } function l(k) { const { hasZ: m, hasM: g, rings: p } = k; return (k = b.getRingsOrPathsBounds(q, p, m, g)) ? c(k, m, g) : null } function r(k) { const { hasZ: m, hasM: g, paths: p } = k; return (k = b.getRingsOrPathsBounds(q, p, m, g)) ? c(k, m, g) : null } const q = []; a.getGeometryExtent = function (k) {
  2672. return k ?
  2673. void 0 !== k.xmin && void 0 !== k.ymin && void 0 !== k.xmax && void 0 !== k.ymax ? k : void 0 !== k.x && void 0 !== k.y ? d(k) : void 0 !== k.rings ? l(k) : void 0 !== k.paths ? r(k) : void 0 !== k.points ? e(k) : null : null
  2674. }; a.getMultipointExtent = e; a.getPointExtent = d; a.getPolygonExtent = l; a.getPolylineExtent = r; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2675. })
  2676. }, "esri/geometry/support/boundsUtils": function () {
  2677. define(["exports"], function (a) {
  2678. function b(k) {
  2679. return void 0 !== k.xmin && void 0 !== k.ymin && void 0 !== k.xmax &&
  2680. void 0 !== k.ymax
  2681. } function c(k) { return (m, g) => null == m ? g : null == g ? m : k(m, g) } function e(k, m, g, p) {
  2682. const t = g ? 3 : 2; if (!m.length || !m[0].length) return null; let [n, u] = m[0][0], [f, h] = m[0][0], v = void 0, y = void 0, B = void 0; var w = void 0; for (let x = 0; x < m.length; x++) { const z = m[x]; for (let C = 0; C < z.length; C++) { const A = z[C], [D, F] = A; n = r(n, D); u = r(u, F); f = q(f, D); h = q(h, F); if (g && 2 < A.length) { const J = A[2]; v = r(v, J); y = q(y, J) } p && A.length > t && (w = A[t], B = r(v, w), w = q(y, w)) } } if (g) {
  2683. if (p) return k[0] = n, k[1] = u, k[2] = v, k[3] = B, k[4] = f, k[5] = h, k[6] = y, k[7] =
  2684. w, k.length = 8, k; k[0] = n; k[1] = u; k[2] = v; k[3] = f; k[4] = h; k[5] = y; k.length = 6; return k
  2685. } if (p) return k[0] = n, k[1] = u, k[2] = B, k[3] = f, k[4] = h, k[5] = w, k.length = 6, k; k[0] = n; k[1] = u; k[2] = f; k[3] = h; k.length = 4; return k
  2686. } function d(k, m, g, p, t, n) {
  2687. g = m.xmin; p = m.xmax; const u = m.ymin, f = m.ymax; let h = m.zmin, v = m.zmax, y = m.mmin; m = m.mmax; if (t) { h = h || 0; v = v || 0; if (n) return k[0] = g, k[1] = u, k[2] = h, k[3] = y || 0, k[4] = p, k[5] = f, k[6] = v, k[7] = m || 0, k; k[0] = g; k[1] = u; k[2] = h; k[3] = p; k[4] = f; k[5] = v; return k } if (n) return k[0] = g, k[1] = u, k[2] = y || 0, k[3] = p, k[4] = f, k[5] = m ||
  2688. 0, k; k[0] = g; k[1] = u; k[2] = p; k[3] = f; return k
  2689. } function l(k, m, g, p, t, n) {
  2690. const u = g ? 3 : 2; p = p && n; g = g && t; if (!m.length || !m[0].length) return null; let [f, h] = m[0], [v, y] = m[0], B = void 0, w = void 0, x = void 0; var z = void 0; for (let C = 0; C < m.length; C++) { const A = m[C], [D, F] = A; f = r(f, D); h = r(h, F); v = q(v, D); y = q(y, F); if (g && 2 < A.length) { const J = A[2]; B = r(B, J); w = q(w, J) } p && A.length > u && (z = A[u], x = r(B, z), z = q(w, z)) } if (t) {
  2691. B = B || 0; w = w || 0; if (n) return k[0] = f, k[1] = h, k[2] = B, k[3] = x || 0, k[4] = v, k[5] = y, k[6] = w, k[7] = z || 0, k; k[0] = f; k[1] = h; k[2] = B; k[3] = v; k[4] =
  2692. y; k[5] = w; return k
  2693. } if (n) return k[0] = f, k[1] = h, k[2] = x || 0, k[3] = v, k[4] = y, k[5] = z || 0, k; k[0] = f; k[1] = h; k[2] = v; k[3] = y; return k
  2694. } const r = c(Math.min), q = c(Math.max); a.getBoundsXY = function (k, m) { if (void 0 !== m.paths) return e(k, m.paths, !1, !1); if (void 0 !== m.rings) return e(k, m.rings, !1, !1); if (void 0 !== m.points) return l(k, m.points, !1, !1, !1, !1); if (b(m)) return d(k, m); void 0 !== m.x && void 0 !== m.y && (k[0] = m.x, k[1] = m.y, k[2] = m.x, k[3] = m.y); return k }; a.getBoundsXYZ = function (k, m) {
  2695. if (void 0 !== m.paths) return e(k, m.paths, !0, !1); if (void 0 !==
  2696. m.rings) return e(k, m.rings, !0, !1); if (void 0 !== m.points) return l(k, m.points, !0, !1, !0, !1); if (b(m)) return d(k, m, !0, !1, !0, !1); void 0 !== m.x && void 0 !== m.y && (k[0] = m.x, k[1] = m.y, k[2] = m.z, k[3] = m.x, k[4] = m.y, k[5] = m.z); return k
  2697. }; a.getExtentBounds = d; a.getPointsBounds = l; a.getPointsBoundsCenterX = function (k) { if (!k.length || !k[0].length) return null; let [m] = k[0], [g] = k[0]; for (let p = 0; p < k.length; p++) { const [t] = k[p]; m = r(m, t); g = q(g, t) } return m + .5 * (g - m) }; a.getPointsBoundsWidth = function (k) {
  2698. if (!k.length || !k[0].length) return null;
  2699. let [m] = k[0], [g] = k[0]; for (let p = 0; p < k.length; p++) { const [t] = k[p]; m = r(m, t); g = q(g, t) } return g - m
  2700. }; a.getRingsOrPathsBounds = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2701. })
  2702. }, "esri/geometry/Polyline": function () {
  2703. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./SpatialReference ./support/extentUtils ./support/zmUtils".split(" "),
  2704. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  2705. var n; d = n = function (u) {
  2706. function f(...v) { v = u.call(this, ...v) || this; v.paths = []; v.type = "polyline"; return v } a._inheritsLoose(f, u); var h = f.prototype; h.normalizeCtorArgs = function (v, y) {
  2707. let B = null, w, x, z = null; v && !Array.isArray(v) ? (B = v.paths ? v.paths : null, y || (v.spatialReference ? y = v.spatialReference : v.paths || (y = v)), w = v.hasZ, x = v.hasM) : B = v; B = B || []; y = y || g.WGS84; B.length && B[0] && null != B[0][0] && "number" === typeof B[0][0] && (B = [B]); if (z = B[0] && B[0][0]) void 0 === w && void 0 === x ? (w = 2 < z.length,
  2708. x = !1) : void 0 === w ? w = !x && 3 < z.length : void 0 === x && (x = !w && 3 < z.length); return { paths: B, spatialReference: y, hasZ: w, hasM: x }
  2709. }; h.writePaths = function (v, y) { y.paths = c.clone(this.paths) }; h.addPath = function (v) { if (v) { var y = this.paths, B = y.length; if (Array.isArray(v[0])) y[B] = v.concat(); else { const w = []; for (let x = 0, z = v.length; x < z; x++)w[x] = v[x].toArray(); y[B] = w } this.notifyChange("paths"); return this } }; h.clone = function () {
  2710. const v = new n; v.spatialReference = this.spatialReference; v.paths = c.clone(this.paths); v.hasZ = this.hasZ; v.hasM =
  2711. this.hasM; return v
  2712. }; h.getPoint = function (v, y) { if (!this._validateInputs(v, y)) return null; v = this.paths[v][y]; y = this.hasZ; const B = this.hasM; return y && !B ? new m(v[0], v[1], v[2], void 0, this.spatialReference) : B && !y ? new m(v[0], v[1], void 0, v[2], this.spatialReference) : y && B ? new m(v[0], v[1], v[2], v[3], this.spatialReference) : new m(v[0], v[1], this.spatialReference) }; h.insertPoint = function (v, y, B) {
  2713. if (!this._validateInputs(v, y, !0)) return this; t.updateSupportFromPoint(this, B); Array.isArray(B) || (B = B.toArray()); this.paths[v].splice(y,
  2714. 0, B); this.notifyChange("paths"); return this
  2715. }; h.removePath = function (v) { if (!this._validateInputs(v, null)) return null; v = this.paths.splice(v, 1)[0]; const y = this.spatialReference; v = v.map(B => new m(B, y)); this.notifyChange("paths"); return v }; h.removePoint = function (v, y) { if (!this._validateInputs(v, y)) return null; v = new m(this.paths[v].splice(y, 1)[0], this.spatialReference); this.notifyChange("paths"); return v }; h.setPoint = function (v, y, B) {
  2716. if (!this._validateInputs(v, y)) return this; t.updateSupportFromPoint(this, B);
  2717. Array.isArray(B) || (B = B.toArray()); this.paths[v][y] = B; this.notifyChange("paths"); return this
  2718. }; h._validateInputs = function (v, y, B = !1) { return null == v || 0 > v || v >= this.paths.length || null != y && (v = this.paths[v], B && (0 > y || y > v.length) || !B && (0 > y || y >= v.length)) ? !1 : !0 }; h.toJSON = function (v) { return this.write({}, v) }; a._createClass(f, [{ key: "cache", get: function () { this.commitProperty("paths"); this.commitProperty("hasZ"); this.commitProperty("hasM"); this.commitProperty("spatialReference"); return {} } }, {
  2719. key: "extent", get: function () {
  2720. const { spatialReference: v } =
  2721. this; var y = p.getPolylineExtent(this); if (!y) return null; y = new q(y); y.spatialReference = v; return y
  2722. }
  2723. }]); return f
  2724. }(k); b.__decorate([e.property({ readOnly: !0 })], d.prototype, "cache", null); b.__decorate([e.property({ readOnly: !0 })], d.prototype, "extent", null); b.__decorate([e.property({ type: [[[Number]]], json: { write: { isRequired: !0 } } })], d.prototype, "paths", void 0); b.__decorate([r.writer("paths")], d.prototype, "writePaths", null); d = n = b.__decorate([l.subclass("esri.geometry.Polyline")], d); d.prototype.toJSON.isDefaultToJSON =
  2725. !0; return d
  2726. })
  2727. }, "esri/geometry/support/typeUtils": function () {
  2728. define(["exports", "../../core/jsonMap"], function (a, b) {
  2729. const c = b.strict()({ esriGeometryPoint: "point", esriGeometryMultipoint: "multipoint", esriGeometryPolyline: "polyline", esriGeometryPolygon: "polygon" }); b = b.strict()({ esriGeometryPoint: "point", esriGeometryMultipoint: "multipoint", esriGeometryPolyline: "polyline", esriGeometryPolygon: "polygon", esriGeometryEnvelope: "extent", mesh: "mesh" }); a.featureGeometryTypeKebabDictionary = c; a.isFeatureGeometryType =
  2730. function (e) { return "point" === e || "multipoint" === e || "polyline" === e || "polygon" === e }; a.typeKebabDictionary = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2731. })
  2732. }, "esri/geometry/support/jsonUtils": function () {
  2733. define("exports ../../core/maybe ../Extent ../Geometry ../Multipoint ../Point ../Polygon ../Polyline".split(" "), function (a, b, c, e, d, l, r, q) {
  2734. function k(f) { return void 0 !== f.xmin && void 0 !== f.ymin && void 0 !== f.xmax && void 0 !== f.ymax } function m(f) { return void 0 !== f.points }
  2735. function g(f) { return void 0 !== f.x && void 0 !== f.y } function p(f) { return void 0 !== f.paths } function t(f) { return void 0 !== f.rings } function n(f) { return b.isNone(f) ? null : f instanceof e ? f : g(f) ? l.fromJSON(f) : p(f) ? q.fromJSON(f) : t(f) ? r.fromJSON(f) : m(f) ? d.fromJSON(f) : k(f) ? c.fromJSON(f) : null } const u = { esriGeometryPoint: l, esriGeometryPolyline: q, esriGeometryPolygon: r, esriGeometryEnvelope: c, esriGeometryMultipoint: d }; a.fromJSON = n; a.fromJson = function (f) {
  2736. try {
  2737. throw Error("fromJson is deprecated, use fromJSON instead");
  2738. } catch (h) { console.warn(h.stack) } return n(f)
  2739. }; a.getGeometryType = function (f) { return f && u[f] || null }; a.getJsonType = function (f) { return f ? g(f) ? "esriGeometryPoint" : p(f) ? "esriGeometryPolyline" : t(f) ? "esriGeometryPolygon" : k(f) ? "esriGeometryEnvelope" : m(f) ? "esriGeometryMultipoint" : null : null }; a.isExtent = k; a.isMesh = function (f) { return void 0 !== f.vertexAttributes }; a.isMultipoint = m; a.isPoint = g; a.isPolygon = t; a.isPolyline = p; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2740. })
  2741. },
  2742. "esri/core/Identifiable": function () {
  2743. define(["exports", "../chunks/_rollupPluginBabelHelpers", "../chunks/tslib.es6", "./accessorSupport/decorators/subclass"], function (a, b, c, e) {
  2744. let d = 0; const l = r => { r = function (q) { function k(...m) { m = q.call(this, ...m) || this; Object.defineProperty(b._assertThisInitialized(m), "uid", { writable: !1, configurable: !1, value: Date.now().toString(16) + "-object-" + d++ }); return m } b._inheritsLoose(k, q); return k }(r); return r = c.__decorate([e.subclass("esri.core.Identifiable")], r) }; a.Identifiable =
  2745. function (r) { function q() { return r.apply(this, arguments) || this } b._inheritsLoose(q, r); return q }(l(function () { return function () { } }())); a.Identifiable = c.__decorate([e.subclass("esri.core.Identifiable")], a.Identifiable); a.IdentifiableMixin = l; a.NumericIdentifiableMixin = r => {
  2746. r = function (q) { function k(...m) { m = q.call(this, ...m) || this; Object.defineProperty(b._assertThisInitialized(m), "uid", { writable: !1, configurable: !1, value: d++ }); return m } b._inheritsLoose(k, q); return k }(r); return r = c.__decorate([e.subclass("esri.core.NumericIdentifiable")],
  2747. r)
  2748. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2749. })
  2750. }, "esri/layers/support/fromPortalItem": function () {
  2751. define(["require", "exports", "../../chunks/_rollupPluginBabelHelpers", "../../config", "../../core/Logger"], function (a, b, c, e, d) {
  2752. function l() {
  2753. l = c._asyncToGenerator(function* (q) {
  2754. q = "portalItem" in q ? q : { portalItem: q }; const k = yield new Promise((m, g) => a(["../../portal/support/portalLayers"], m, g)); try { return yield k.fromItem(q) } catch (m) {
  2755. throw q = q && q.portalItem, r.error("#fromPortalItem()",
  2756. "Failed to create layer from portal item (portal: '" + (q && q.portal && q.portal.url || e.portalUrl) + "', id: '" + (q && q.id || "unset") + "')", m), m;
  2757. }
  2758. }); return l.apply(this, arguments)
  2759. } const r = d.getLogger("esri.layers.support.fromPortalItem"); b.fromPortalItem = function (q) { return l.apply(this, arguments) }; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2760. })
  2761. }, "esri/support/TablesMixin": function () {
  2762. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  2763. function (a, b, c, e, d, l, r, q, k, m, g) {
  2764. function p(n, u, f) { if (n) for (let v = 0, y = n.length; v < y; v++) { var h = n.getItemAt(v); if (h[u] === f || "group" === (null == h ? void 0 : h.type) && (h = p(h.tables, u, f))) return h } } const t = l.getLogger("esri.support.TablesMixin"); a.TablesMixin = n => {
  2765. n = function (u) {
  2766. function f(...v) {
  2767. var y = u.call(this, ...v) || this; y.tables = new e; y.tables.on("after-add", B => {
  2768. B = B.item; B.parent && B.parent !== b._assertThisInitialized(y) && "tables" in B.parent && B.parent.tables.remove(B); B.parent = b._assertThisInitialized(y); "feature" !==
  2769. B.type && t.error(`Layer 'title:${B.title}, id:${B.id}' of type '${B.type}' is not supported as a table and will therefore be ignored.`)
  2770. }); y.tables.on("after-remove", B => { B.item.parent = null }); return y
  2771. } b._inheritsLoose(f, u); var h = f.prototype; h.destroy = function () { const v = this.tables.removeAll(); for (const y of v) y.destroy(); this.tables.destroy() }; h.findTableById = function (v) { return p(this.tables, "id", v) }; h.findTableByUid = function (v) { return p(this.tables, "uid", v) }; b._createClass(f, [{
  2772. key: "tables", set: function (v) {
  2773. this._set("tables",
  2774. d.referenceSetter(v, this._get("tables")))
  2775. }
  2776. }]); return f
  2777. }(n); c.__decorate([r.property()], n.prototype, "tables", null); return n = c.__decorate([g.subclass("esri.support.TablesMixin")], n)
  2778. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2779. })
  2780. }, "esri/Viewpoint": function () {
  2781. define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Camera ./geometry ./core/JSONSupport ./core/maybe ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/has ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),
  2782. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  2783. function t() { return { enabled: !this.camera } } var n; d = n = function (u) {
  2784. function f(v) { v = u.call(this, v) || this; v.rotation = 0; v.scale = 0; v.targetGeometry = null; v.camera = null; return v } a._inheritsLoose(f, u); var h = f.prototype; h.castRotation = function (v) { v %= 360; 0 > v && (v += 360); return v }; h.clone = function () {
  2785. return new n({
  2786. rotation: this.rotation, scale: this.scale, targetGeometry: l.isSome(this.targetGeometry) ? this.targetGeometry.clone() : null, camera: l.isSome(this.camera) ? this.camera.clone() :
  2787. null
  2788. })
  2789. }; return f
  2790. }(d.JSONSupport); b.__decorate([r.property({ type: Number, json: { write: !0, origins: { "web-map": { default: 0, write: !0 }, "web-scene": { write: { overridePolicy: t } } } } })], d.prototype, "rotation", void 0); b.__decorate([m.cast("rotation")], d.prototype, "castRotation", null); b.__decorate([r.property({ type: Number, json: { write: !0, origins: { "web-map": { default: 0, write: !0 }, "web-scene": { write: { overridePolicy: t } } } } })], d.prototype, "scale", void 0); b.__decorate([r.property({
  2791. types: e.geometryTypes, json: {
  2792. read: p.fromJSON,
  2793. write: !0, origins: { "web-scene": { read: p.fromJSON, write: { overridePolicy: t } } }
  2794. }
  2795. })], d.prototype, "targetGeometry", void 0); b.__decorate([r.property({ type: c, json: { write: !0 } })], d.prototype, "camera", void 0); return d = n = b.__decorate([g.subclass("esri.Viewpoint")], d)
  2796. })
  2797. }, "esri/Camera": function () {
  2798. define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Clonable ./core/Cyclical ./core/JSONSupport ./core/mathUtils ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/has ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./core/accessorSupport/ensureType ./geometry/Point".split(" "),
  2799. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  2800. c = function (f) {
  2801. function h(...y) { y = f.call(this, ...y) || this; y.position = new u([0, 0, 0]); y.heading = 0; y.tilt = 0; y.fov = 55; return y } a._inheritsLoose(h, f); var v = h.prototype; v.normalizeCtorArgs = function (y, B, w, x) { return y && "object" === typeof y && ("x" in y || Array.isArray(y)) ? (y = { position: y }, null != B && (y.heading = B), null != w && (y.tilt = w), null != x && (y.fov = x), y) : y }; v.writePosition = function (y, B, w, x) {
  2802. const z = y.clone(); z.x = n.ensureNumber(y.x || 0); z.y = n.ensureNumber(y.y || 0); z.z = y.hasZ ? n.ensureNumber(y.z ||
  2803. 0) : y.z; B[w] = z.write({}, x)
  2804. }; v.readPosition = function (y, B) { const w = new u; w.read(y, B); w.x = n.ensureNumber(w.x || 0); w.y = n.ensureNumber(w.y || 0); w.z = w.hasZ ? n.ensureNumber(w.z || 0) : w.z; return w }; v.equals = function (y) { return y ? this.tilt === y.tilt && this.heading === y.heading && this.fov === y.fov && this.position.equals(y.position) : !1 }; return h
  2805. }(c.ClonableMixin(d.JSONSupport)); b.__decorate([r.property({ type: u, json: { write: { isRequired: !0 } } })], c.prototype, "position", void 0); b.__decorate([t.writer("position")], c.prototype,
  2806. "writePosition", null); b.__decorate([g.reader("position")], c.prototype, "readPosition", null); b.__decorate([r.property({ type: Number, nonNullable: !0, json: { write: { isRequired: !0 } } }), m.cast(f => e.cyclicalDegrees.normalize(n.ensureNumber(f)))], c.prototype, "heading", void 0); b.__decorate([r.property({ type: Number, nonNullable: !0, json: { write: { isRequired: !0 } } }), m.cast(f => l.clamp(n.ensureNumber(f), -180, 180))], c.prototype, "tilt", void 0); b.__decorate([r.property({ type: Number, nonNullable: !0, json: { read: !1, write: !1 } })],
  2807. c.prototype, "fov", void 0); return c = b.__decorate([p.subclass("esri.Camera")], c)
  2808. })
  2809. }, "esri/core/Clonable": function () {
  2810. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./has ./lang ./Logger ./maybe ./accessorSupport/PropertyOrigin ./accessorSupport/utils ./accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k, m, g) {
  2811. r.getLogger("esri.core.Clonable"); d = p => {
  2812. p = function (t) {
  2813. function n() { return t.apply(this, arguments) || this } b._inheritsLoose(n, t); n.prototype.clone =
  2814. function () {
  2815. var u = q.unwrapOrThrow(m.getProperties(this), "unable to clone instance of non-accessor class"), f = u.metadatas; const h = u.store, v = {}; u = new Map; for (var y in f) { var B = f[y]; const x = null == h ? void 0 : h.originOf(y), z = B.clonable; if (B.readOnly || !1 === z || x !== k.OriginId.USER && x !== k.OriginId.DEFAULTS && x !== k.OriginId.WEB_MAP && x !== k.OriginId.WEB_SCENE) continue; B = this[y]; let C = null; C = "function" === typeof z ? z(B) : "reference" === z ? B : l.tryClone(B); if (null == B || null != C) x === k.OriginId.DEFAULTS ? u.set(y, C) : v[y] = C } f = new (Object.getPrototypeOf(this).constructor)(v);
  2816. if (u.size) { var w; if (y = null == (w = m.getProperties(f)) ? void 0 : w.store) for (const [x, z] of u) y.set(x, z, k.OriginId.DEFAULTS) } return f
  2817. }; return n
  2818. }(p); return p = c.__decorate([g.subclass("esri.core.Clonable")], p)
  2819. }; a.Clonable = function (p) { function t() { return p.apply(this, arguments) || this } b._inheritsLoose(t, p); return t }(d(e)); a.Clonable = c.__decorate([g.subclass("esri.core.Clonable")], a.Clonable); a.ClonableMixin = d; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2820. })
  2821. }, "esri/core/Cyclical": function () {
  2822. define(["exports",
  2823. "./mathUtils"], function (a, b) {
  2824. function c(q) { for (const k in q) { const m = q[k]; m instanceof Function && (q[k] = m.bind(q)) } return q } let e = function () {
  2825. function q(m, g) { this.min = m; this.max = g; this.range = g - m } var k = q.prototype; k.ndiff = function (m, g = 0) { return Math.ceil((m - g) / this.range) * this.range + g }; k._normalize = function (m, g, p, t = 0, n = !1) { p -= t; p < m ? p += this.ndiff(m - p) : p > g && (p -= this.ndiff(p - g)); n && p === g && (p = m); return p + t }; k.normalize = function (m, g = 0, p = !1) { return this._normalize(this.min, this.max, m, g, p) }; k.clamp = function (m,
  2826. g = 0) { return b.clamp(m - g, this.min, this.max) + g }; k.monotonic = function (m, g, p) { return m < g ? g : g + this.ndiff(m - g, p) }; k.minimalMonotonic = function (m, g, p) { return this._normalize(m, m + this.range, g, p) }; k.center = function (m, g, p) { g = this.monotonic(m, g, p); return this.normalize((m + g) / 2, p) }; k.diff = function (m, g, p) { return this.monotonic(m, g, p) - m }; k.shortestSignedDiff = function (m, g) {
  2827. m = this.normalize(m); g = this.normalize(g); const p = g - m; m = g < m ? this.minimalMonotonic(m, g) - m : g - this.minimalMonotonic(g, m); return Math.abs(p) < Math.abs(m) ?
  2828. p : m
  2829. }; k.contains = function (m, g, p) { g = this.minimalMonotonic(m, g); p = this.minimalMonotonic(m, p); return p > m && p < g }; return q
  2830. }(); const d = c(new e(0, 2 * Math.PI)), l = c(new e(-Math.PI, Math.PI)), r = c(new e(0, 360)); a.Cyclical = e; a.cyclical2PI = d; a.cyclicalDegrees = r; a.cyclicalPI = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2831. })
  2832. }, "esri/layers/mixins/OperationalLayer": function () {
  2833. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/read ../../core/accessorSupport/write ./operationalLayers ../support/commonProperties".split(" "),
  2834. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  2835. a.OperationalLayer = f => {
  2836. f = function (h) {
  2837. function v() { var B = h.apply(this, arguments) || this; B.title = null; return B } b._inheritsLoose(v, h); var y = v.prototype; y.writeListMode = function (B, w, x, z) { z && "ground" === z.layerContainerType ? w[x] = B : B && t.willPropertyWrite(this, x, {}, z) && (w[x] = B) }; y.writeOperationalLayerType = function (B, w, x, z) { !B || z && "tables" === z.layerContainerType || (w.layerType = B) }; y.writeTitle = function (B, w) { w.title = B || "Layer" }; y.read = function (B, w) {
  2838. w && (w.layer = this); p.readLoadable(this,
  2839. B, x => h.prototype.read.call(this, B, x), w)
  2840. }; y.write = function (B, w) {
  2841. if (null != w && w.origin) {
  2842. const A = `${w.origin}/${w.layerContainerType || "operational-layers"}`; var x = n.supportedTypes[A]; x = x && x[this.operationalLayerType]; "ArcGISTiledElevationServiceLayer" === this.operationalLayerType && "web-scene/operational-layers" === A && (x = !1); if (!x) {
  2843. var z; null == (z = w.messages) ? void 0 : z.push(new e("layer:unsupported", `Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${A}'`,
  2844. { layer: this })); return null
  2845. }
  2846. } B = h.prototype.write.call(this, B, { ...w, layer: this }); z = !!w && !!w.messages && !!w.messages.filter(A => A instanceof e && "web-document-write:property-required" === A.name).length; if (d.isBlobProtocol(null == B ? void 0 : B.url)) { var C; null == w ? void 0 : null == (C = w.messages) ? void 0 : C.push(new e("layer:invalid-url", `Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`, { layer: this })); return null } return !this.url && z ? null :
  2847. B
  2848. }; y.beforeSave = function () { }; return v
  2849. }(f); c.__decorate([l.property({ type: String, json: { write: { ignoreOrigin: !0 }, origins: { "web-scene": { write: { isRequired: !0, ignoreOrigin: !0 } }, "portal-item": { write: !1 } } } })], f.prototype, "id", void 0); c.__decorate([l.property(u.listMode)], f.prototype, "listMode", void 0); c.__decorate([g.writer("listMode")], f.prototype, "writeListMode", null); c.__decorate([l.property({ type: String, readOnly: !0, json: { read: !1, write: { target: "layerType", ignoreOrigin: !0 }, origins: { "portal-item": { write: !1 } } } })],
  2850. f.prototype, "operationalLayerType", void 0); c.__decorate([g.writer("operationalLayerType")], f.prototype, "writeOperationalLayerType", null); c.__decorate([l.property(u.opacity)], f.prototype, "opacity", void 0); c.__decorate([l.property({ type: String, json: { write: { ignoreOrigin: !0, writerEnsuresNonNull: !0 }, origins: { "web-scene": { write: { isRequired: !0, ignoreOrigin: !0, writerEnsuresNonNull: !0 } }, "portal-item": { write: !1 } } }, value: "Layer" })], f.prototype, "title", void 0); c.__decorate([g.writer([void 0, "web-scene"], "title")],
  2851. f.prototype, "writeTitle", null); c.__decorate([l.property({ type: Boolean, json: { name: "visibility" } })], f.prototype, "visible", void 0); return f = c.__decorate([m.subclass("esri.layers.mixins.OperationalLayer")], f)
  2852. }; a.isOperationalLayer = function (f) { return "operationalLayerType" in f }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2853. })
  2854. }, "esri/layers/mixins/operationalLayers": function () {
  2855. define(["exports"], function (a) {
  2856. a.supportedTypes = {
  2857. "web-scene/operational-layers": {
  2858. ArcGISFeatureLayer: !0,
  2859. ArcGISImageServiceLayer: !0, ArcGISMapServiceLayer: !0, ArcGISSceneServiceLayer: !0, ArcGISTiledElevationServiceLayer: !0, ArcGISTiledImageServiceLayer: !0, ArcGISTiledMapServiceLayer: !0, BuildingSceneLayer: !0, GroupLayer: !0, IntegratedMeshLayer: !0, OGCFeatureLayer: !0, PointCloudLayer: !0, WebTiledLayer: !0, CSV: !0, GeoJSON: !0, VectorTileLayer: !0, WFS: !0, WMS: !0, KML: !0, RasterDataLayer: !0, Voxel: !0, LineOfSightLayer: !0
  2860. }, "web-scene/basemap": {
  2861. ArcGISTiledImageServiceLayer: !0, ArcGISTiledMapServiceLayer: !0, WebTiledLayer: !0, OpenStreetMap: !0,
  2862. VectorTileLayer: !0, ArcGISImageServiceLayer: !0, WMS: !0, ArcGISMapServiceLayer: !0
  2863. }, "web-scene/ground": { ArcGISTiledElevationServiceLayer: !0, RasterDataElevationLayer: !0 }, "web-map/operational-layers": {
  2864. ArcGISAnnotationLayer: !0, ArcGISDimensionLayer: !0, ArcGISFeatureLayer: !0, ArcGISImageServiceLayer: !0, ArcGISImageServiceVectorLayer: !0, ArcGISMapServiceLayer: !0, ArcGISStreamLayer: !0, ArcGISTiledImageServiceLayer: !0, ArcGISTiledMapServiceLayer: !0, BingMapsAerial: !0, BingMapsHybrid: !0, BingMapsRoad: !0, CSV: !0, GeoRSS: !0,
  2865. GeoJSON: !0, GroupLayer: !0, KML: !0, OGCFeatureLayer: !0, SubtypeGroupLayer: !0, VectorTileLayer: !0, WFS: !0, WMS: !0, WebTiledLayer: !0
  2866. }, "web-map/basemap": { ArcGISImageServiceLayer: !0, ArcGISImageServiceVectorLayer: !0, ArcGISMapServiceLayer: !0, ArcGISTiledImageServiceLayer: !0, ArcGISTiledMapServiceLayer: !0, OpenStreetMap: !0, VectorTileLayer: !0, WMS: !0, WebTiledLayer: !0, BingMapsAerial: !0, BingMapsRoad: !0, BingMapsHybrid: !0 }, "web-map/tables": { ArcGISFeatureLayer: !0 }, "portal-item/operational-layers": {
  2867. ArcGISFeatureLayer: !0, ArcGISSceneServiceLayer: !0,
  2868. PointCloudLayer: !0, BuildingSceneLayer: !0, IntegratedMeshLayer: !0
  2869. }
  2870. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2871. })
  2872. }, "esri/layers/support/commonProperties": function () {
  2873. define("exports ../../TimeExtent ../../geometry/Extent ../../geometry/SpatialReference ../../chunks/persistableUrlUtils ../../support/timeUtils ../../symbols/support/ElevationInfo ../../webdoc/support/opacityUtils".split(" "), function (a, b, c, e, d, l, r, q) {
  2874. const k = {
  2875. type: Boolean, value: !0, json: {
  2876. origins: {
  2877. service: {
  2878. read: !1,
  2879. write: !1
  2880. }, "web-map": { read: !1, write: !1 }
  2881. }, name: "screenSizePerspective", write: !0
  2882. }
  2883. }, m = { type: Boolean, value: !0, json: { name: "disablePopup", read: { reader(y, B) { return !B.disablePopup } }, write: { enabled: !0, writer(y, B, w) { B[w] = !y } } } }, g = { type: Boolean, value: !0, json: { name: "showLabels", write: !0 } }; d = { type: String, json: { origins: { "portal-item": { write: !1 } }, write: { isRequired: !0, ignoreOrigin: !0, writer: d.write } } }; const p = { type: Boolean, value: !0, json: { origins: { service: { read: { enabled: !1 } } }, name: "showLegend", write: !0 } }; r = {
  2884. value: null,
  2885. type: r.default, json: { origins: { service: { name: "elevationInfo", write: !0 } }, name: "layerDefinition.elevationInfo", write: !0 }
  2886. }; const t = { type: Number, json: { origins: { "web-document": { write: !0, read: !0 }, "portal-item": { write: !0 } } } }, n = {
  2887. ...t, json: {
  2888. ...t.json, origins: { "web-document": { ...t.json.origins["web-document"], write: { enabled: !0, target: { opacity: { type: Number }, "layerDefinition.drawingInfo.transparency": { type: Number } } } } }, read: {
  2889. source: ["layerDefinition.drawingInfo.transparency", "drawingInfo.transparency"], reader(y,
  2890. B, w) { if ((!w || "service" === w.origin) && B.drawingInfo && void 0 !== B.drawingInfo.transparency) return q.transparencyToOpacity(B.drawingInfo.transparency); if (B.layerDefinition && B.layerDefinition.drawingInfo && void 0 !== B.layerDefinition.drawingInfo.transparency) return q.transparencyToOpacity(B.layerDefinition.drawingInfo.transparency) }
  2891. }
  2892. }
  2893. }, u = {
  2894. type: c, readOnly: !0, json: {
  2895. origins: {
  2896. service: {
  2897. read: {
  2898. source: ["fullExtent", "spatialReference"], reader: (y, B) => {
  2899. y = c.fromJSON(y); null != B.spatialReference && "object" === typeof B.spatialReference &&
  2900. (y.spatialReference = e.fromJSON(B.spatialReference)); return y
  2901. }
  2902. }
  2903. }
  2904. }, read: !1
  2905. }
  2906. }, f = { type: String, json: { origins: { service: { read: !1 }, "portal-item": { read: !1 } } } }, h = { type: Number, json: { origins: { service: { write: { enabled: !1 } } }, read: { source: "layerDefinition.minScale" }, write: { target: "layerDefinition.minScale" } } }, v = { type: Number, json: { origins: { service: { write: { enabled: !1 } } }, read: { source: "layerDefinition.maxScale" }, write: { target: "layerDefinition.maxScale" } } }; a.combinedViewLayerTimeExtentProperty = {
  2907. type: b, readOnly: !0, get() {
  2908. var y,
  2909. B; if (null == (y = this.layer) || !y.timeInfo) return null; const { datesInUnknownTimezone: w, timeOffset: x, useViewTime: z } = this.layer; y = null == (B = this.view) ? void 0 : B.timeExtent; B = this.layer.timeExtent; w && (B = l.toLocalTimeExtent(B)); B = z ? y && B ? y.intersection(B) : y || B : B; if (!B || B.isEmpty || B.isAllTime) return B; x && (B = B.offset(-x.value, x.unit)); w && (B = l.toUTCTimeExtent(B)); y = this._get("timeExtent"); return B.equals(y) ? y : B
  2910. }
  2911. }; a.elevationInfo = r; a.id = f; a.labelsVisible = g; a.legendEnabled = p; a.listMode = {
  2912. json: {
  2913. write: { ignoreOrigin: !0 },
  2914. origins: { "web-map": { read: !1, write: !1 } }
  2915. }
  2916. }; a.maxScale = v; a.minScale = h; a.opacity = t; a.opacityDrawingInfo = n; a.popupEnabled = m; a.readOnlyService = function (y) { return { type: y, readOnly: !0, json: { origins: { service: { read: !0 } }, read: !1 } } }; a.sceneLayerFullExtent = u; a.screenSizePerspectiveEnabled = k; a.url = d; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2917. })
  2918. }, "esri/TimeExtent": function () {
  2919. define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/JSONSupport ./core/maybe ./core/timeUtils ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/has ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer".split(" "),
  2920. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  2921. var t; c = t = function (f) {
  2922. function h(y) { y = f.call(this, y) || this; y.end = null; y.start = null; return y } a._inheritsLoose(h, f); var v = h.prototype; v.readEnd = function (y, B) { return null != B.end ? new Date(B.end) : null }; v.writeEnd = function (y, B) { B.end = y ? y.getTime() : null }; v.readStart = function (y, B) { return null != B.start ? new Date(B.start) : null }; v.writeStart = function (y, B) { B.start = y ? y.getTime() : null }; v.clone = function () { return new t({ end: this.end, start: this.start }) }; v.equals = function (y) {
  2923. if (!y) return !1;
  2924. const B = e.isSome(this.start) ? this.start.getTime() : this.start, w = e.isSome(this.end) ? this.end.getTime() : this.end, x = e.isSome(y.start) ? y.start.getTime() : y.start; y = e.isSome(y.end) ? y.end.getTime() : y.end; return B === x && w === y
  2925. }; v.expandTo = function (y) { if (this.isEmpty || this.isAllTime) return this.clone(); const B = e.applySome(this.start, x => d.truncateDate(x, y)), w = e.applySome(this.end, x => d.offsetDate(d.truncateDate(x, y), 1, y)); return new t({ start: B, end: w }) }; v.intersection = function (y) {
  2926. if (!y) return this.clone(); if (this.isEmpty ||
  2927. y.isEmpty) return t.empty; if (this.isAllTime) return y.clone(); if (y.isAllTime) return this.clone(); var B = e.mapOr(this.start, -Infinity, A => A.getTime()); const w = e.mapOr(this.end, Infinity, A => A.getTime()), x = e.mapOr(y.start, -Infinity, A => A.getTime()); y = e.mapOr(y.end, Infinity, A => A.getTime()); let z, C; x >= B && x <= w ? z = x : B >= x && B <= y && (z = B); w >= x && w <= y ? C = w : y >= B && y <= w && (C = y); return isNaN(z) || isNaN(C) ? t.empty : (B = new t, B.start = -Infinity === z ? null : new Date(z), B.end = Infinity === C ? null : new Date(C), B)
  2928. }; v.offset = function (y, B) {
  2929. if (this.isEmpty ||
  2930. this.isAllTime) return this.clone(); const w = new t, { start: x, end: z } = this; e.isSome(x) && (w.start = d.offsetDate(x, y, B)); e.isSome(z) && (w.end = d.offsetDate(z, y, B)); return w
  2931. }; v.union = function (y) {
  2932. if (!y || y.isEmpty) return this.clone(); if (this.isEmpty) return y.clone(); if (this.isAllTime || y.isAllTime) return n.clone(); const B = e.isSome(this.start) && e.isSome(y.start) ? new Date(Math.min(this.start.getTime(), y.start.getTime())) : null; y = e.isSome(this.end) && e.isSome(y.end) ? new Date(Math.max(this.end.getTime(), y.end.getTime())) :
  2933. null; return new t({ start: B, end: y })
  2934. }; a._createClass(h, [{ key: "isAllTime", get: function () { return this.equals(t.allTime) } }, { key: "isEmpty", get: function () { return this.equals(t.empty) } }], [{ key: "allTime", get: function () { return n } }, { key: "empty", get: function () { return u } }]); return h
  2935. }(c.JSONSupport); b.__decorate([l.property({ type: Date, json: { write: { allowNull: !0 } } })], c.prototype, "end", void 0); b.__decorate([m.reader("end")], c.prototype, "readEnd", null); b.__decorate([p.writer("end")], c.prototype, "writeEnd", null); b.__decorate([l.property({
  2936. readOnly: !0,
  2937. json: { read: !1 }
  2938. })], c.prototype, "isAllTime", null); b.__decorate([l.property({ readOnly: !0, json: { read: !1 } })], c.prototype, "isEmpty", null); b.__decorate([l.property({ type: Date, json: { write: { allowNull: !0 } } })], c.prototype, "start", void 0); b.__decorate([m.reader("start")], c.prototype, "readStart", null); b.__decorate([p.writer("start")], c.prototype, "writeStart", null); c = t = b.__decorate([g.subclass("esri.TimeExtent")], c); const n = new c, u = new c({ start: void 0, end: void 0 }); return c
  2939. })
  2940. }, "esri/core/timeUtils": function () {
  2941. define(["exports",
  2942. "./has"], function (a, b) {
  2943. function c(l, r, q) { return 0 === l ? 0 : l * e[r] / e[q] } const e = { milliseconds: 1, seconds: 1E3, minutes: 6E4, hours: 36E5, days: 864E5, weeks: 6048E5, months: 26784E5, years: 31536E6, decades: 31536E7, centuries: 31536E8 }, d = {
  2944. milliseconds: { getter: "getMilliseconds", setter: "setMilliseconds", multiplier: 1 }, seconds: { getter: "getSeconds", setter: "setSeconds", multiplier: 1 }, minutes: { getter: "getMinutes", setter: "setMinutes", multiplier: 1 }, hours: { getter: "getHours", setter: "setHours", multiplier: 1 }, days: {
  2945. getter: "getDate",
  2946. setter: "setDate", multiplier: 1
  2947. }, weeks: { getter: "getDate", setter: "setDate", multiplier: 7 }, months: { getter: "getMonth", setter: "setMonth", multiplier: 1 }, years: { getter: "getFullYear", setter: "setFullYear", multiplier: 1 }, decades: { getter: "getFullYear", setter: "setFullYear", multiplier: 10 }, centuries: { getter: "getFullYear", setter: "setFullYear", multiplier: 100 }
  2948. }; a.convertTime = c; a.makeUTCTime = function (l, r, q = "milliseconds") {
  2949. r = new Date(c(r, q, "milliseconds")); r.setUTCFullYear(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate());
  2950. return r
  2951. }; a.offsetDate = function (l, r, q) { l = new Date(l.getTime()); if (r && q) { const { getter: m, setter: g, multiplier: p } = d[q]; if ("months" === q) { q = l.getFullYear(); var k = l.getMonth() + r; q = new Date(q, k + 1, 1); q.setDate(0); q = q.getDate(); l.getDate() > q && l.setDate(q) } l[g](l[m]() + r * p) } return l }; a.offsetDateUTC = function (l, r, q = "milliseconds") { l = l.getTime(); r = c(r, q, "milliseconds"); return new Date(l + r) }; a.resetUTCDate = function (l, r) { l = new Date(l.getTime()); l.setUTCFullYear(r.getFullYear(), r.getMonth(), r.getDate()); return l };
  2952. a.timeSinceUTCMidnight = function (l, r = "milliseconds") { const q = c(l.getUTCHours(), "hours", "milliseconds"), k = c(l.getUTCMinutes(), "minutes", "milliseconds"), m = c(l.getUTCSeconds(), "seconds", "milliseconds"); l = l.getUTCMilliseconds(); return c(q + k + m + l, "milliseconds", r) }; a.truncateDate = function (l, r) {
  2953. switch (r) {
  2954. case "milliseconds": return new Date(l.getTime()); case "seconds": return new Date(l.getFullYear(), l.getMonth(), l.getDate(), l.getHours(), l.getMinutes(), l.getSeconds()); case "minutes": return new Date(l.getFullYear(),
  2955. l.getMonth(), l.getDate(), l.getHours(), l.getMinutes()); case "hours": return new Date(l.getFullYear(), l.getMonth(), l.getDate(), l.getHours()); case "days": return new Date(l.getFullYear(), l.getMonth(), l.getDate()); case "weeks": return new Date(l.getFullYear(), l.getMonth(), l.getDate() - l.getDay()); case "months": return new Date(l.getFullYear(), l.getMonth(), 1); case "years": return new Date(l.getFullYear(), 0, 1); case "decades": return new Date(l.getFullYear() - l.getFullYear() % 10, 0, 1); case "centuries": return new Date(l.getFullYear() -
  2956. l.getFullYear() % 100, 0, 1); default: return new Date
  2957. }
  2958. }; a.truncateLocalTime = function (l) { const r = new Date(0); r.setHours(0); r.setMinutes(0); r.setSeconds(0); r.setMilliseconds(0); r.setFullYear(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()); return r }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2959. })
  2960. }, "esri/chunks/persistableUrlUtils": function () {
  2961. define(["exports", "../core/maybe", "../core/urlUtils"], function (a, b, c) {
  2962. function e(n, u) {
  2963. var f = u && u.url && u.url.path; n && f &&
  2964. (n = c.makeAbsolute(n, f, { preserveProtocolRelative: !0 }), u.portalItem && u.readResourcePaths && (f = c.makeRelative(n, u.portalItem.itemUrl), p.test(f) && u.readResourcePaths.push(u.portalItem.resourceFromPath(f).path))); return m(n, u && u.portal)
  2965. } function d(n, u, f = a.MarkKeep.YES) {
  2966. if (!n) return n; !c.isAbsolute(n) && u && u.blockedRelativeUrls && u.blockedRelativeUrls.push(n); let h = c.makeAbsolute(n); if (u) {
  2967. var v = u.verifyItemRelativeUrls && u.verifyItemRelativeUrls.rootPath || u.url && u.url.path; v && (v = m(v, u.portal), h = c.makeRelative(m(h,
  2968. u.portal), v, v), h !== n && u.verifyItemRelativeUrls && u.verifyItemRelativeUrls.writtenUrls.push(h))
  2969. } h = k(h, u && u.portal); c.isAbsolute(h) && (h = c.normalize(h)); null != u && u.resources && null != u && u.portalItem && !c.isAbsolute(h) && !c.isDataProtocol(h) && f === a.MarkKeep.YES && u.resources.toKeep.push({ resource: u.portalItem.resourceFromPath(h) }); return h
  2970. } function l(n, u, f) { return e(n, f) } function r(n, u, f, h) { n = d(n, h); void 0 !== n && (u[f] = n) } function q(n) { n = b.isSome(n) ? n.match(g) : null; return b.isSome(n) ? n[1] : null } function k(n, u) {
  2971. return u &&
  2972. !u.isPortal && u.urlKey && u.customBaseUrl ? c.changeDomain(n, `${u.urlKey}.${u.customBaseUrl}`, u.portalHostname) : n
  2973. } function m(n, u) { if (!u || u.isPortal || !u.urlKey || !u.customBaseUrl) return n; const f = `${u.urlKey}.${u.customBaseUrl}`, h = c.getAppUrl(); return c.hasSameOrigin(h, `${h.scheme}://${f}`) ? c.changeDomain(n, u.portalHostname, f) : c.changeDomain(n, f, u.portalHostname) } const g = /\/items\/([^\/]+)\/resources\//, p = /^\.\/resources\//; a.MarkKeep = void 0; (function (n) { n[n.YES = 0] = "YES"; n[n.NO = 1] = "NO" })(a.MarkKeep || (a.MarkKeep =
  2974. {})); const t = Object.freeze(Object.defineProperty({ __proto__: null, fromJSON: e, toJSON: d, read: l, write: r, itemIdFromResourceUrl: q, ensureMainOnlineDomain: k, get MarkKeep() { return a.MarkKeep } }, Symbol.toStringTag, { value: "Module" })); a.ensureMainOnlineDomain = k; a.fromJSON = e; a.itemIdFromResourceUrl = q; a.persistableUrlUtils = t; a.read = l; a.toJSON = d; a.write = r
  2975. })
  2976. }, "esri/support/timeUtils": function () {
  2977. define("exports ../chunks/_rollupPluginBabelHelpers ../TimeExtent ../core/maybe ../core/promiseUtils ../core/timeUtils".split(" "),
  2978. function (a, b, c, e, d, l) {
  2979. function r(k) { return void 0 !== k.timeInfo } function q() {
  2980. q = b._asyncToGenerator(function* (k, m) {
  2981. if (0 === k.length) return c.allTime; const g = k.filter(r); yield Promise.all(g.map(n => n.load({ signal: m }))); k = []; var p = []; for (var t of g) "feature" !== (null == t ? void 0 : t.type) && "map-image" !== (null == t ? void 0 : t.type) || !t.timeInfo.hasLiveData ? p.push(t) : k.push(t); t = n => e.isNone(n) || n.isAllTime; p = p.map(n => n.timeInfo.fullTimeExtent); if (p.some(t)) return c.allTime; k = k.map(function () {
  2982. var n = b._asyncToGenerator(function* (u) {
  2983. const { timeExtent: f } =
  2984. yield u.fetchRecomputedExtents({ signal: m }); return f ? f : e.unwrap(u.timeInfo.fullTimeExtent)
  2985. }); return function (u) { return n.apply(this, arguments) }
  2986. }()); k = (yield d.eachAlways(k)).map(n => n.value); return k.some(t) ? c.allTime : k.concat(p).reduce((n, u) => n.union(u))
  2987. }); return q.apply(this, arguments)
  2988. } a.getTimeExtentFromLayers = function (k, m) { return q.apply(this, arguments) }; a.toLocalTimeExtent = function (k) {
  2989. if (!k) return k; const { start: m, end: g } = k; return new c({
  2990. start: e.isSome(m) ? l.offsetDate(m, m.getTimezoneOffset(), "minutes") :
  2991. m, end: e.isSome(g) ? l.offsetDate(g, g.getTimezoneOffset(), "minutes") : g
  2992. })
  2993. }; a.toUTCTimeExtent = function (k) { if (!k) return k; const { start: m, end: g } = k; return new c({ start: e.isSome(m) ? l.offsetDate(m, -m.getTimezoneOffset(), "minutes") : m, end: e.isSome(g) ? l.offsetDate(g, -g.getTimezoneOffset(), "minutes") : g }) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  2994. })
  2995. }, "esri/symbols/support/ElevationInfo": function () {
  2996. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./FeatureExpressionInfo ./unitConversionUtils".split(" "),
  2997. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  2998. var f; q = e.strict()({ onTheGround: "on-the-ground", relativeToGround: "relative-to-ground", relativeToScene: "relative-to-scene", absoluteHeight: "absolute-height" }); e = new e.JSONMap({ foot: "feet", kilometer: "kilometers", meter: "meters", mile: "miles", "us-foot": "us-feet", yard: "yards" }); d = f = function (h) {
  2999. function v() { var B = h.apply(this, arguments) || this; B.offset = null; return B } b._inheritsLoose(v, h); var y = v.prototype; y.readFeatureExpressionInfo = function (B, w) {
  3000. if (null != B) return B;
  3001. if (w.featureExpression && 0 === w.featureExpression.value) return { expression: "0" }
  3002. }; y.writeFeatureExpressionInfo = function (B, w, x, z) { w[x] = B.write({}, z); "0" === B.expression && (w.featureExpression = { value: 0 }) }; y.write = function (B, w) { return this.offset || this.mode || this.featureExpressionInfo || this.unit ? h.prototype.write.call(this, B, w) : null }; y.clone = function () { return new f({ mode: this.mode, offset: this.offset, featureExpressionInfo: this.featureExpressionInfo ? this.featureExpressionInfo.clone() : void 0, unit: this.unit }) };
  3003. y.equals = function (B) { return this.mode === B.mode && this.offset === B.offset && this.unit === B.unit && l.equalsMaybe(this.featureExpressionInfo, B.featureExpressionInfo) }; b._createClass(v, [{ key: "mode", get: function () { const { offset: B, featureExpressionInfo: w } = this; return this._isOverridden("mode") ? this._get("mode") : l.isSome(B) || w ? "relative-to-ground" : "on-the-ground" }, set: function (B) { this._override("mode", B) } }, { key: "unit", set: function (B) { this._set("unit", B) } }]); return v
  3004. }(d.JSONSupport); c.__decorate([r.property({
  3005. type: n,
  3006. json: { write: !0 }
  3007. })], d.prototype, "featureExpressionInfo", void 0); c.__decorate([g.reader("featureExpressionInfo", ["featureExpressionInfo", "featureExpression"])], d.prototype, "readFeatureExpressionInfo", null); c.__decorate([t.writer("featureExpressionInfo", { featureExpressionInfo: { type: n }, "featureExpression.value": { type: [0] } })], d.prototype, "writeFeatureExpressionInfo", null); c.__decorate([r.property({ type: q.apiValues, nonNullable: !0, json: { type: q.jsonValues, read: q.read, write: { writer: q.write, isRequired: !0 } } })],
  3008. d.prototype, "mode", null); c.__decorate([r.property({ type: Number, json: { write: !0 } })], d.prototype, "offset", void 0); c.__decorate([r.property({ type: u.supportedUnits, json: { type: String, read: e.read, write: e.write } })], d.prototype, "unit", null); d = f = c.__decorate([p.subclass("esri.layers.support.ElevationInfo")], d); a.default = d; a.elevationModeKebabDict = q; a.unitKebabDict = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3009. })
  3010. }, "esri/symbols/support/FeatureExpressionInfo": function () {
  3011. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../layers/support/fieldUtils".split(" "),
  3012. function (a, b, c, e, d, l, r, q, k) {
  3013. var m; c = m = function (g) { function p() { return g.apply(this, arguments) || this } a._inheritsLoose(p, g); var t = p.prototype; t.collectRequiredFields = function () { var n = a._asyncToGenerator(function* (u, f) { return k.collectArcadeFieldNames(u, f, this.expression) }); return function (u, f) { return n.apply(this, arguments) } }(); t.clone = function () { return new m({ expression: this.expression, title: this.title }) }; t.equals = function (n) { return this.expression === n.expression && this.title === n.title }; return p }(c.JSONSupport);
  3014. b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "expression", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "title", void 0); return c = m = b.__decorate([q.subclass("esri.layers.support.FeatureExpressionInfo")], c)
  3015. })
  3016. }, "esri/layers/support/fieldUtils": function () {
  3017. define("require exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../core/maybe ../../core/object ./domainUtils ../../support/arcadeOnDemand".split(" "), function (a, b, c, e, d, l, r, q) {
  3018. function k(L,
  3019. R, X) { if (L) for (const ta of L) (L = (L = l.getDeepValue(ta, R)) && "function" !== typeof L && X.get(L)) && l.setDeepValue(ta, L.name, R) } function m(L, R) { if (!L || !R) return []; P.clear(); g(P, L, R); return Array.from(P).sort() } function g(L, R, X) { var ta; if (X) if (null != R && null != (ta = R.fields) && ta.length) if (X.includes("*")) for (const { name: Ca } of R.fields) L.add(Ca); else for (const Ca of X) p(L, R, Ca); else if (X.includes("*")) L.clear(), L.add("*"); else for (const Ca of X) L.add(Ca) } function p(L, R, X) {
  3020. "string" === typeof X && (R ? (R = R.get(X)) &&
  3021. L.add(R.name) : L.add(X))
  3022. } function t(L, R, X) { return n.apply(this, arguments) } function n() { n = c._asyncToGenerator(function* (L, R, X) { var ta; if (X) { var { arcadeUtils: Ca } = yield q.loadArcade(); X = Ca.extractFieldNames(X, null == R ? void 0 : null == (ta = R.fields) ? void 0 : ta.map(Ha => Ha.name)); for (const Ha of X) p(L, R, Ha) } }); return n.apply(this, arguments) } function u(L, R, X) { return f.apply(this, arguments) } function f() {
  3023. f = c._asyncToGenerator(function* (L, R, X) {
  3024. if (X && "1\x3d1" !== X) {
  3025. const ta = (yield new Promise((Ca, Ha) => a(["../../core/sql/WhereClause"],
  3026. Ca, Ha))).WhereClause.create(X, R); if (!ta.isStandardized) throw new e("fieldUtils:collectFilterFields", "Where clause is not standardized", { where: X }); g(L, R, ta.fieldNames)
  3027. }
  3028. }); return f.apply(this, arguments)
  3029. } function h(L, R) { for (const X of L) if (X && X.valueType && X.valueType === R) return X.name; return null } function v() { v = c._asyncToGenerator(function* (L) { if (!L) return []; const R = new Set; yield y(R, L); return Array.from(R).sort() }); return v.apply(this, arguments) } function y(L, R) { return B.apply(this, arguments) } function B() {
  3030. B =
  3031. c._asyncToGenerator(function* (L, R) { if (R) { var X = l.getDeepValue("elevationInfo.featureExpressionInfo", R); if (X) return X.collectRequiredFields(L, R.fieldsIndex) } }); return B.apply(this, arguments)
  3032. } function w(L, R, X) { return x.apply(this, arguments) } function x() { x = c._asyncToGenerator(function* (L, R, X) { X.outStatistic.onStatisticValueExpression ? t(L, R, X.outStatistic.onStatisticValueExpression) : L.add(X.outStatistic.onStatisticField) }); return x.apply(this, arguments) } function z() {
  3033. z = c._asyncToGenerator(function* (L,
  3034. R, X) { var ta, Ca; if (R && X && "fields" in X) { var Ha = []; null != (ta = X.popupTemplate) && ta.expressionInfos && Ha.push(...X.popupTemplate.expressionInfos.map(Ra => t(L, R.fieldsIndex, Ra.expression))); if (Array.isArray(null == (Ca = X.popupTemplate) ? void 0 : Ca.content)) { ta = X.popupTemplate.content; for (const Ra of ta) "expression" === Ra.type && Ra.expressionInfo && Ha.push(t(L, R.fieldsIndex, Ra.expressionInfo.expression)) } X.fields && Ha.push(...X.fields.map(Ra => w(L, R.fieldsIndex, Ra))); yield Promise.all(Ha) } }); return z.apply(this, arguments)
  3035. }
  3036. function C() { C = c._asyncToGenerator(function* (L, R, X) { R && (R.timeInfo && d.isSome(X) && X.timeExtent && g(L, R.fieldsIndex, [R.timeInfo.startField, R.timeInfo.endField]), R.floorInfo && g(L, R.fieldsIndex, [R.floorInfo.floorField]), d.isSome(X) && d.isSome(X.where) && (yield u(L, R.fieldsIndex, X.where))) }); return C.apply(this, arguments) } function A() { A = c._asyncToGenerator(function* (L, R, X) { R && X && (yield Promise.all(X.map(ta => D(L, R, ta)))) }); return A.apply(this, arguments) } function D(L, R, X) { return F.apply(this, arguments) } function F() {
  3037. F =
  3038. c._asyncToGenerator(function* (L, R, X) { R && X && (X.valueExpression ? yield t(L, R.fieldsIndex, X.valueExpression) : X.field && p(L, R.fieldsIndex, X.field)) }); return F.apply(this, arguments)
  3039. } function J() { J = c._asyncToGenerator(function* (L) { if (!L) return []; const R = "timeInfo" in L && L.timeInfo; return R ? m(L.fieldsIndex, [L.trackIdField, R.startField, R.endField]) : [] }); return J.apply(this, arguments) } function M() {
  3040. M = c._asyncToGenerator(function* (L) { if (!L) return []; const R = new Set; yield N(R, L); return Array.from(R).sort() }); return M.apply(this,
  3041. arguments)
  3042. } function N(L, R) { return E.apply(this, arguments) } function E() { E = c._asyncToGenerator(function* (L, R) { const { labelingInfo: X, fieldsIndex: ta } = R; X && X.length && (yield Promise.all(X.map(Ca => G(L, ta, Ca)))) }); return E.apply(this, arguments) } function G(L, R, X) { return H.apply(this, arguments) } function H() {
  3043. H = c._asyncToGenerator(function* (L, R, X) {
  3044. if (X) {
  3045. var ta = X.getLabelExpression(); X = X.where; "arcade" === ta.type ? yield t(L, R, ta.expression) : (ta = ta.expression.match(/{[^}]*}/g)) && ta.forEach(Ca => {
  3046. p(L, R, Ca.slice(1,
  3047. -1))
  3048. }); yield u(L, R, X)
  3049. }
  3050. }); return H.apply(this, arguments)
  3051. } function K(L) { return "number" === typeof L && !isNaN(L) && isFinite(L) } function S(L) { return null === L || K(L) } function fa(L) { return null === L || Z(L) } function ha(L) { return null != L && "string" === typeof L } function ba(L) { return null === L || ha(L) } function O() { return !0 } function na(L, R) {
  3052. let X; switch (L.type) {
  3053. case "date": case "integer": case "long": case "small-integer": case "esriFieldTypeDate": case "esriFieldTypeInteger": case "esriFieldTypeLong": case "esriFieldTypeSmallInteger": X =
  3054. L.nullable ? fa : Z; break; case "double": case "single": case "esriFieldTypeSingle": case "esriFieldTypeDouble": X = L.nullable ? S : K; break; case "string": case "esriFieldTypeString": X = L.nullable ? ba : ha; break; default: X = O
  3055. }return 1 === arguments.length ? X : X(R)
  3056. } function ra(L) { return null != L && V.has(L.type) } function Da(L, R) { return L.nullable && null === R ? null : ra(L) && !Ka(L.type, Number(R)) ? b.NumericRangeValidationError.OUT_OF_RANGE : na(L, R) ? L.domain ? r.validateDomainValue(L.domain, R) : null : b.TypeValidationError.INVALID_TYPE } function Ka(L,
  3057. R) { return (L = "string" === typeof L ? sa(L) : L) ? L.isInteger ? Z(R) && R >= L.min && R <= L.max : R >= L.min && R <= L.max : !1 } function sa(L) { switch (L) { case "esriFieldTypeSmallInteger": case "small-integer": return da; case "esriFieldTypeInteger": case "integer": return ea; case "esriFieldTypeSingle": case "single": return pa; case "esriFieldTypeDouble": case "double": return la } } function W(L, R, X) {
  3058. if (!R || !R.attributes || !L) { if (d.isSome(X)) for (var ta of L) X.add(ta); return !0 } R = R.attributes; ta = !1; for (const Ca of L) if (!(Ca in R)) if (ta = !0,
  3059. d.isSome(X)) X.add(Ca); else break; return ta
  3060. } function oa() { oa = c._asyncToGenerator(function* (L, R) { const X = new Set; for (const ta of R) yield t(X, L.fieldsIndex, ta); return Array.from(X).sort() }); return oa.apply(this, arguments) } const ya = "field field2 field3 normalizationField rotationInfo.field proportionalSymbolInfo.field proportionalSymbolInfo.normalizationField colorInfo.field colorInfo.normalizationField".split(" "), I = ["field", "normalizationField"], P = new Set, Z = (() => "isInteger" in Number ? Number.isInteger :
  3061. L => "number" === typeof L && isFinite(L) && Math.floor(L) === L)(), Q = ["integer", "small-integer", "single", "double"], V = new Set([...Q, "esriFieldTypeInteger", "esriFieldTypeSmallInteger", "esriFieldTypeSingle", "esriFieldTypeDouble"]); b.NumericRangeValidationError = void 0; (b.NumericRangeValidationError || (b.NumericRangeValidationError = {})).OUT_OF_RANGE = "numeric-range-validation-error::out-of-range"; b.TypeValidationError = void 0; (b.TypeValidationError || (b.TypeValidationError = {})).INVALID_TYPE = "type-validation-error::invalid-type";
  3062. const da = { min: -32768, max: 32767, isInteger: !0 }, ea = { min: -2147483648, max: 2147483647, isInteger: !0 }, pa = { min: -3.4E38, max: 1.2E38, isInteger: !1 }, la = { min: -Number.MAX_VALUE, max: Number.MAX_VALUE, isInteger: !1 }; b.collectArcadeFieldNames = t; b.collectElevationFields = y; b.collectFeatureReductionFields = function (L, R, X) { return z.apply(this, arguments) }; b.collectField = p; b.collectFields = g; b.collectFilterFields = function (L, R, X) { return C.apply(this, arguments) }; b.collectLabelingFields = N; b.collectOrderByInfos = function (L, R, X) {
  3063. return A.apply(this,
  3064. arguments)
  3065. }; b.doubleRange = la; b.featureHasFields = function (L, R) { return !W(L, R, null) }; b.fixFields = m; b.fixRendererFields = function (L, R) { if (null != L && null != R) for (const X of Array.isArray(L) ? L : [L]) if (k(ya, X, R), "visualVariables" in X && X.visualVariables) for (const ta of X.visualVariables) k(I, ta, R) }; b.fixTimeInfoFields = function (L, R) {
  3066. if (null != L && null != R && R.fields.length) if ("startField" in L) { var X = R.get(L.startField); R = R.get(L.endField); L.startField = X && X.name || null; L.endField = R && R.name || null } else X = R.get(L.startTimeField),
  3067. R = R.get(L.endTimeField), L.startTimeField = X && X.name || null, L.endTimeField = R && R.name || null
  3068. }; b.getDisplayFieldName = function ({ displayField: L, fields: R }) { if (L) return L; if (!R || !R.length) return null; if (!(L = h(R, "name-or-title") || h(R, "unique-identifier") || h(R, "type-or-category"))) a: { for (const X of R) if (X && X.name && (R = X.name.toLowerCase(), R.includes("name") || R.includes("title"))) { L = X.name; break a } L = null } return L }; b.getElevationFields = function (L) { return v.apply(this, arguments) }; b.getExpressionFields = function (L,
  3069. R) { return oa.apply(this, arguments) }; b.getFeatureEditFields = function (L) { if (!L) return []; const R = "editFieldsInfo" in L && L.editFieldsInfo; return R ? m(L.fieldsIndex, [R && R.creatorField, R && R.creationDateField, R && R.editorField, R && R.editDateField]) : [] }; b.getFeatureGeometryFields = function (L) { if (!L) return []; const R = L.geometryFieldsInfo; return R ? m(L.fieldsIndex, [R.shapeAreaField, R.shapeLengthField]) : [] }; b.getFieldDefaultValue = function (L) { const R = L.defaultValue; if (void 0 !== R && na(L, R)) return R; if (L.nullable) return null };
  3070. b.getFieldRange = function (L) { const R = r.getDomainRange(L.domain); if (R) return R; if (ra(L)) return sa(L.type) }; b.getLabelingFields = function (L) { return M.apply(this, arguments) }; b.getNumericTypeForValue = function (L) { if (!K(L)) return null; if (Z(L)) { if (L >= da.min && L <= da.max) return "esriFieldTypeSmallInteger"; if (L >= ea.min && L <= ea.max) return "esriFieldTypeInteger" } return L >= pa.min && L <= pa.max ? "esriFieldTypeSingle" : "esriFieldTypeDouble" }; b.getTimeFields = function (L) { return J.apply(this, arguments) }; b.integerRange = ea; b.isDateField =
  3071. function (L) { return null != L && ("date" === L.type || "esriFieldTypeDate" === L.type) }; b.isNumberInRange = Ka; b.isNumericField = ra; b.isRasterPixelValueField = function (L) { return ["raster.itempixelvalue", "raster.servicepixelvalue"].some(R => L.toLowerCase().startsWith(R)) }; b.isStringField = function (L) { return null != L && ("string" === L.type || "esriFieldTypeString" === L.type) }; b.isValidFieldValue = function (L, R) { return null === Da(L, R) }; b.isValueMatchingFieldType = na; b.numericTypes = Q; b.packFields = function (L, R, X = 1) {
  3072. if (!R || !L) return [];
  3073. if (R.includes("*")) return ["*"]; R = m(L, R); return R.length / L.fields.length >= X ? ["*"] : R
  3074. }; b.populateMissingFields = W; b.rendererFields = ya; b.sanitizeNullFieldValue = function (L) { return null == L || "number" === typeof L && isNaN(L) ? null : L }; b.singleRange = pa; b.smallIntegerRange = da; b.unpackFieldNames = function (L, R) { return d.isNone(R) || d.isNone(L) ? [] : R.includes("*") ? L.fields.map(X => X.name) : R }; b.validateFieldValue = Da; b.validationErrorToString = function (L, R, X) {
  3075. switch (L) {
  3076. case r.DomainValidationError.INVALID_CODED_VALUE: return `Value ${X} is not in the coded domain - field: ${R.name}, domain: ${JSON.stringify(R.domain)}`;
  3077. case r.DomainValidationError.VALUE_OUT_OF_RANGE: return `Value ${X} is out of the range of valid values - field: ${R.name}, domain: ${JSON.stringify(R.domain)}`; case b.TypeValidationError.INVALID_TYPE: return `Value ${X} is not a valid value for the field type - field: ${R.name}, type: ${R.type}, nullable: ${R.nullable}`; case b.NumericRangeValidationError.OUT_OF_RANGE: { const { min: ta, max: Ca } = sa(R.type); return `Value ${X} is out of range for the number type - field: ${R.name}, type: ${R.type}, value range is ${ta} to ${Ca}` }
  3078. }
  3079. };
  3080. b.visualVariableFields = I; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3081. })
  3082. }, "esri/layers/support/domainUtils": function () {
  3083. define(["exports"], function (a) {
  3084. function b(c, e) { switch (c.type) { case "range": { const d = "range" in c ? c.range[1] : c.maxValue; if (+e < ("range" in c ? c.range[0] : c.minValue) || +e > d) return a.DomainValidationError.VALUE_OUT_OF_RANGE; break } case "coded-value": case "codedValue": if (null == c.codedValues || c.codedValues.every(d => null == d || d.code !== e)) return a.DomainValidationError.INVALID_CODED_VALUE }return null }
  3085. a.DomainValidationError = void 0; (function (c) { c.VALUE_OUT_OF_RANGE = "domain-validation-error::value-out-of-range"; c.INVALID_CODED_VALUE = "domain-validation-error::invalid-coded-value" })(a.DomainValidationError || (a.DomainValidationError = {})); a.getDomainRange = function (c) { if (c && "range" === c.type) return { min: "range" in c ? c.range[0] : c.minValue, max: "range" in c ? c.range[1] : c.maxValue } }; a.isValidDomainValue = function (c, e) { return null === b(c, e) }; a.validateDomainValue = b; Object.defineProperties(a, {
  3086. __esModule: { value: !0 },
  3087. [Symbol.toStringTag]: { value: "Module" }
  3088. })
  3089. })
  3090. }, "esri/support/arcadeOnDemand": function () {
  3091. define("require exports ../chunks/_rollupPluginBabelHelpers ../geometry ../core/maybe ../geometry/SpatialReference".split(" "), function (a, b, c, e, d, l) {
  3092. function r() { q || (q = c._asyncToGenerator(function* () { const m = yield new Promise((g, p) => a(["./arcadeUtils"], g, p)); return { arcade: m.arcade, arcadeUtils: m, Dictionary: m.Dictionary, Feature: m.arcadeFeature } })()); return q } let q; e = (m, g, p) => k.create(m, g, p, null, ["$feature", "$view"]);
  3093. let k = function () {
  3094. function m(p, t, n, u, f, h, v, y) { this.script = p; this.evaluate = f; this.fields = Array.isArray(v) ? v : v.fields; this._syntaxTree = u; this._arcade = t; this._arcadeDictionary = n; this._arcadeFeature = h; this._spatialReference = y; this._referencesGeometry = t.scriptTouchesGeometry(this._syntaxTree); this._referencesScale = this._arcade.referencesMember(this._syntaxTree, "scale") } m.create = function () {
  3095. var p = c._asyncToGenerator(function* (t, n, u, f, h, v) {
  3096. const { arcade: y, Feature: B, Dictionary: w } = yield r(), x = l.fromJSON(n);
  3097. n = y.parseScript(t, v); h = h.reduce((F, J) => ({ ...F, [J]: null }), {}); let z = null; d.isSome(f) && (z = new w(f), z.immutable = !0, h.$config = null); f = y.scriptUsesGeometryEngine(n) && y.enableGeometrySupport(); v = y.scriptUsesFeatureSet(n) && y.enableFeatureSetSupport(); const C = y.scriptIsAsync(n) && y.enableAsyncSupport(); h = { vars: h, spatialReference: x, useAsync: !!C }; const A = new w; A.immutable = !1; A.setField("scale", 0); const D = y.compileScript(n, h); yield Promise.all([f, v, C]); return new m(t, y, w, n, F => {
  3098. "$view" in F && F.$view && (A.setField("scale",
  3099. F.$view.scale), F.$view = A); z && (F.$config = z); return D({ vars: F, spatialReference: x })
  3100. }, new B, u, x)
  3101. }); return function (t, n, u, f, h, v) { return p.apply(this, arguments) }
  3102. }(); var g = m.prototype; g.repurposeFeature = function (p) { p.geometry && !p.geometry.spatialReference && (p.geometry.spatialReference = this._spatialReference); this._arcadeFeature.repurposeFromGraphicLikeObject(p.geometry, p.attributes, { fields: this.fields }); return this._arcadeFeature }; g.createDictionary = function () { return new this._arcadeDictionary }; g.referencesMember =
  3103. function (p) { return this._arcade.referencesMember(this._syntaxTree, p) }; g.referencesFunction = function (p) { return this._arcade.referencesFunction(this._syntaxTree, p) }; g.referencesGeometry = function () { return this._referencesGeometry }; g.referencesScale = function () { return this._referencesScale }; g.extractFieldLiterals = function () { return this._arcade.extractExpectedFieldLiterals(this._syntaxTree) }; return m
  3104. }(); b.ArcadeExpression = k; b.createDictionaryExpression = (m, g, p, t) => k.create(m, g, p, t, ["$feature", "$view"]);
  3105. b.createLabelExpression = (m, g, p) => k.create(m, g, p, null, ["$feature"]); b.createRendererExpression = e; b.createVVExpression = e; b.loadArcade = r; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3106. })
  3107. }, "esri/symbols/support/unitConversionUtils": function () {
  3108. define(["exports", "../../renderers/support/lengthUtils"], function (a, b) {
  3109. const c = function () { const e = Object.keys(b.meterIn); e.sort(); return e }(); a.getMetersPerUnit = function (e) { return 1 / (b.meterIn[e] || 1) }; a.supportedUnits = c; a.supportsUnit =
  3110. function (e) { return null != b.meterIn[e] }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3111. })
  3112. }, "esri/renderers/support/lengthUtils": function () {
  3113. define(["exports", "../../core/unitUtils", "../../geometry/support/Ellipsoid"], function (a, b, c) {
  3114. b = {
  3115. inches: b.convertUnit(1, "meters", "inches"), feet: b.convertUnit(1, "meters", "feet"), "us-feet": b.convertUnit(1, "meters", "us-feet"), yards: b.convertUnit(1, "meters", "yards"), miles: b.convertUnit(1, "meters", "miles"), "nautical-miles": b.convertUnit(1,
  3116. "meters", "nautical-miles"), millimeters: b.convertUnit(1, "meters", "millimeters"), centimeters: b.convertUnit(1, "meters", "centimeters"), decimeters: b.convertUnit(1, "meters", "decimeters"), meters: b.convertUnit(1, "meters", "meters"), kilometers: b.convertUnit(1, "meters", "kilometers"), "decimal-degrees": 1 / b.lengthToDegrees(1, "meters", c.earth.radius)
  3117. }; a.meterIn = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3118. })
  3119. }, "esri/core/unitUtils": function () {
  3120. define("exports ./has ./jsonMap ./maybe ../geometry/projectionEllipsoid ../geometry/SpatialReference ../geometry/support/Ellipsoid ../geometry/support/spatialReferenceUtils ../geometry/support/WKIDUnitConversion".split(" "),
  3121. function (a, b, c, e, d, l, r, q, k) {
  3122. function m(O) { O = K[O]; if (!O) throw Error("unknown type"); return O } function g(O) { return H[O].baseUnit } function p(O, na = null) { na = na || m(O); return H[na].baseUnit === O } function t(O, na, ra) { if (na === ra) return O; const Da = m(na); if (Da !== m(ra)) throw Error("incompatible units"); O = p(na, Da) ? O : O * H[Da].units[na].inBaseUnits; return p(ra, Da) ? O : O / H[Da].units[ra].inBaseUnits } function n(O, na) { O = t(O, na, "meters"); return 3E3 > Math.abs(O) ? "meters" : "kilometers" } function u(O, na) {
  3123. O = t(O, na, "meters"); return 1E5 >
  3124. Math.abs(O) ? "meters" : "kilometers"
  3125. } function f(O, na) { O = t(O, na, "feet"); return 1E3 > Math.abs(O) ? "feet" : "miles" } function h(O, na) { O = t(O, na, "feet"); return 1E5 > Math.abs(O) ? "feet" : "miles" } function v(O, na) { O = t(O, na, "square-meters"); return 3E6 > Math.abs(O) ? "square-meters" : "square-kilometers" } function y(O, na) { O = t(O, na, "square-feet"); return 1E6 > Math.abs(O) ? "square-feet" : "square-miles" } function B(O) { return G.fromJSON(O.toLowerCase()) || null } function w(O) {
  3126. const na = x(O), ra = O instanceof l ? d.getReferenceEllipsoid(O).metersPerDegree :
  3127. 1E5; return na >= ra ? "meters" : A(O)
  3128. } function x(O, na = r.earth.metersPerDegree) { return e.unwrapOr(z(O, !0), na) } function z(O, na = !1) {
  3129. let ra, Da, Ka = null; null != O && ("object" === typeof O ? (ra = O.wkid, Da = O.wkt) : "number" === typeof O ? ra = O : "string" === typeof O && (Da = O)); if (ra) { if (q.isWKIDFromMars(ra)) return r.mars.metersPerDegree; if (q.isWKIDFromMoon(ra)) return r.moon.metersPerDegree; Ka = M.values[M[ra]]; !Ka && na && E.has(ra) && (Ka = F) } else Da && (/^PROJCS/i.test(Da) ? Ka = C(J.exec(Da), Ka) : /^GEOCCS/i.test(Da) && (Ka = C(N.exec(Da), Ka)));
  3130. return Ka
  3131. } function C(O, na) { return O && O[1] ? parseFloat(O[1].split(",")[1]) : na } function A(O) {
  3132. var na = null; if (null != O) if ("object" === typeof O) { var ra = O.wkid; var Da = O.wkt } else "number" === typeof O ? ra = O : "string" === typeof O && (Da = O); if (ra) na = M.units[M[ra]]; else if (Da && (O = /^PROJCS/i.test(Da) ? J : /^GEOCCS/i.test(Da) ? N : null) && (Da = O.exec(Da)) && Da[1] && (Da = Da[1], na = (na = /[\\"\\']{1}([^\\"\\']+)/.exec(Da)) && na[1], !na || !M.units.includes(na))) for (Da = parseFloat(Da.split(",")[1]), na = null, O = M.values, ra = 0; ra < O.length; ++ra)if (1E-7 >
  3133. Math.abs(Da - O[ra])) { na = M.units[ra]; break } return e.isSome(na) ? B(na) : null
  3134. } function D(O) { O = A(O); if (e.isNone(O)) return null; switch (O) { case "feet": case "us-feet": case "clarke-feet": case "clarke-yards": case "clarke-links": case "sears-yards": case "sears-feet": case "sears-chains": case "benoit-1895-b-chains": case "indian-yards": case "indian-1937-yards": case "gold-coast-feet": case "sears-1922-truncated-chains": return "imperial"; case "50-kilometers": case "150-kilometers": case "meters": return "metric" }return null }
  3135. const F = r.earth.radius * Math.PI / 200, J = /UNIT\[([^\]]+)\]\]$/i, M = k, N = /UNIT\[([^\]]+)\]/i, E = new Set([4261, 4305, 4807, 4810, 4811, 4812, 4816, 4819, 4821, 4901, 4902, 37225, 104139, 104140]), G = c.strict()({
  3136. meter: "meters", foot: "feet", foot_us: "us-feet", foot_clarke: "clarke-feet", yard_clarke: "clarke-yards", link_clarke: "clarke-links", yard_sears: "sears-yards", foot_sears: "sears-feet", chain_sears: "sears-chains", chain_benoit_1895_b: "benoit-1895-b-chains", yard_indian: "indian-yards", yard_indian_1937: "indian-1937-yards", foot_gold_coast: "gold-coast-feet",
  3137. chain_sears_1922_truncated: "sears-1922-truncated-chains", "50_kilometers": "50-kilometers", "150_kilometers": "150-kilometers"
  3138. }); b = { millimeters: { inBaseUnits: .001 }, centimeters: { inBaseUnits: .01 }, decimeters: { inBaseUnits: .1 }, meters: { inBaseUnits: 1 }, kilometers: { inBaseUnits: 1E3 }, inches: { inBaseUnits: .0254 }, feet: { inBaseUnits: .3048 }, yards: { inBaseUnits: .9144 }, miles: { inBaseUnits: 1609.344 }, "nautical-miles": { inBaseUnits: 1852 }, "us-feet": { inBaseUnits: 1200 / 3937 } }; k = {
  3139. "square-millimeters": { inBaseUnits: 1E-6 }, "square-centimeters": { inBaseUnits: 1E-4 },
  3140. "square-decimeters": { inBaseUnits: .1 * .1 }, "square-meters": { inBaseUnits: 1 }, "square-kilometers": { inBaseUnits: 1E6 }, "square-inches": { inBaseUnits: 6.4516E-4 }, "square-feet": { inBaseUnits: .09290304 }, "square-yards": { inBaseUnits: .83612736 }, "square-miles": { inBaseUnits: 2589988.110336 }, "square-us-feet": { inBaseUnits: (O => O * O)(1200 / 3937) }, acres: { inBaseUnits: 4046.8564224 }, ares: { inBaseUnits: 100 }, hectares: { inBaseUnits: 1E4 }
  3141. }; const H = {
  3142. length: { baseUnit: "meters", units: b }, area: { baseUnit: "square-meters", units: k }, volume: {
  3143. baseUnit: "liters",
  3144. units: { liters: { inBaseUnits: 1 }, "cubic-millimeters": { inBaseUnits: 1E3 * 1E-9 }, "cubic-centimeters": { inBaseUnits: .001 }, "cubic-decimeters": { inBaseUnits: 1 }, "cubic-meters": { inBaseUnits: 1E3 }, "cubic-kilometers": { inBaseUnits: 1E12 }, "cubic-inches": { inBaseUnits: .016387064 }, "cubic-feet": { inBaseUnits: .09290304 * 304.8 }, "cubic-yards": { inBaseUnits: 764.554857984 }, "cubic-miles": { inBaseUnits: 4.16818182544058E12 } }
  3145. }, angle: { baseUnit: "radians", units: { radians: { inBaseUnits: 1 }, degrees: { inBaseUnits: Math.PI / 180 } } }
  3146. }, K = (() => {
  3147. const O =
  3148. {}; for (const na in H) for (const ra in H[na].units) O[ra] = na; return O
  3149. })(), S = "metric imperial inches feet yards miles nautical-miles us-feet meters kilometers".split(" "), fa = new Map([["meters", "square-meters"], ["feet", "square-feet"], ["us-feet", "square-us-feet"]]), ha = {
  3150. esriAcres: "acres", esriAres: "ares", esriHectares: "hectares", esriSquareCentimeters: "square-centimeters", esriSquareDecimeters: "square-decimeters", esriSquareFeet: "square-feet", esriSquareInches: "square-inches", esriSquareKilometers: "square-kilometers",
  3151. esriSquareMeters: "square-meters", esriSquareMiles: "square-miles", esriSquareMillimeters: "square-millimeters", esriSquareUsFeet: "square-us-feet", esriSquareYards: "square-yards"
  3152. }, ba = { esriCentimeters: "centimeters", esriDecimeters: "decimeters", esriFeet: "feet", esriInches: "inches", esriKilometers: "kilometers", esriMeters: "meters", esriMiles: "miles", esriMillimeters: "millimeters", esriNauticalMiles: "nautical-miles", esriYards: "yards" }; b = c.strict()(ha); k = c.strict()(ba); c = c.strict()({ ...ha, ...ba }); a.areaUnitFromSpatialReference =
  3153. function (O) { O = A(O); return e.isNone(O) ? null : fa.get(O) }; a.areaUnitsJSONMap = b; a.baseUnitForUnit = function (O) { return g(m(O)) }; a.baseUnitForUnitType = g; a.convertUnit = t; a.getDefaultUnitForView = function (O) {
  3154. var na; if (e.isNone(O)) return "metric"; var ra = O.map; if (ra = ra && "portalItem" in ra ? null == (na = ra.portalItem) ? void 0 : na.portal : null) { var Da, Ka; switch (null != (Da = null == ra ? void 0 : null == (Ka = ra.user) ? void 0 : Ka.units) ? Da : ra.units) { case "metric": return "metric"; case "english": return "imperial" } } return e.unwrapOr(D(O.spatialReference),
  3155. "metric")
  3156. }; a.getDefaultUnitSystem = D; a.getMetersPerUnit = z; a.getMetersPerUnitForSR = x; a.getMetersPerVerticalUnitForSR = function (O) { if (O && "object" === typeof O && !q.isEarth(O)) return 1; O = x(O); return 1E5 < O ? 1 : O }; a.getUnitString = A; a.getVerticalUnitStringForSR = w; a.inchesPerMeter = 39.37; a.isBaseUnit = p; a.isMeasurementSystem = function (O) { return "imperial" === O || "metric" === O }; a.lengthToDegrees = function (O, na, ra) { return t(O, na, "meters") / (ra * Math.PI / 180) }; a.lengthUnitFromSpatialReference = function (O) {
  3157. O = A(O); return e.isNone(O) ||
  3158. !S.includes(O) ? null : O
  3159. }; a.lengthUnitsJSONMap = k; a.measurementAreaUnits = "metric imperial square-inches square-feet square-yards square-miles square-us-feet square-meters square-kilometers acres ares hectares".split(" "); a.measurementLengthUnits = S; a.preferredAreaUnit = function (O, na, ra) { switch (ra) { case "metric": return v(O, na); case "imperial": return y(O, na); default: return ra } }; a.preferredImperialAreaUnit = y; a.preferredImperialLengthUnit = f; a.preferredImperialVerticalLengthUnit = h; a.preferredLengthUnit = function (O,
  3160. na, ra) { switch (ra) { case "metric": return n(O, na); case "imperial": return f(O, na); default: return ra } }; a.preferredMetricAreaUnit = v; a.preferredMetricLengthUnit = n; a.preferredMetricVerticalLengthUnit = u; a.preferredVerticalLengthUnit = function (O, na, ra) { switch (ra) { case "metric": return u(O, na); case "imperial": return h(O, na); default: return ra } }; a.unitFromRESTJSON = B; a.unitToRESTJSON = function (O) { return G.toJSON(O) || null }; a.unitType = m; a.unitsJSONMap = c; a.verticalLengthUnitFromSpatialReference = function (O) {
  3161. O = w(O); return e.isNone(O) ||
  3162. !S.includes(O) ? null : O
  3163. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3164. })
  3165. }, "esri/geometry/projectionEllipsoid": function () {
  3166. define(["exports", "./SpatialReference", "./support/Ellipsoid", "./support/spatialReferenceUtils"], function (a, b, c, e) {
  3167. function d(m) { return new b({ wkt: `GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${m.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]` }) }
  3168. const l = d(c.earth), r = d(c.mars), q = d(c.moon), k = new b({ wkt: `GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${c.earth.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]` }); a.SphericalECEFSpatialReference = l; a.SphericalPCPFMars =
  3169. r; a.SphericalPCPFMoon = q; a.WGS84ECEFSpatialReference = k; a.createSphericalPCPF = d; a.getReferenceEllipsoid = function (m) { return m && (e.isMars(m) || m === r) ? c.mars : m && (e.isMoon(m) || m === q) ? c.moon : c.earth }; a.getReferenceEllipsoidFromWKID = function (m) { return e.isWKIDFromMars(m) ? c.mars : e.isWKIDFromMoon(m) ? c.moon : c.earth }; a.getSphericalPCPF = function (m) { return m && (e.isMars(m) || m === r) ? r : m && (e.isMoon(m) || m === q) ? q : l }; a.getSphericalPCPFForEllipsoid = function (m) { return m && m === c.mars ? r : m && m === c.moon ? q : l }; Object.defineProperties(a,
  3170. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3171. })
  3172. }, "esri/layers/mixins/PortalLayer": function () {
  3173. define("require exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../kernel ../../request ../../core/asyncUtils ../../core/Error ../../core/Logger ../../core/maybe ../../core/promiseUtils ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../portal/Portal ../../portal/PortalItem ../../portal/PortalUser".split(" "),
  3174. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x) {
  3175. const z = k.getLogger("esri.layers.mixins.PortalLayer"); var C = null, A = null; b.PortalLayer = D => {
  3176. D = function (F) {
  3177. function J() { var N = F.apply(this, arguments) || this; N.resourceReferences = { portalItem: null, paths: [] }; N.userHasEditingPrivileges = !0; return N } c._inheritsLoose(J, F); var M = J.prototype; M.destroy = function () { var N; null == (N = this.portalItem) ? void 0 : N.destroy(); this.portalItem = null }; M.readPortalItem = function (N, E, G) {
  3178. if (E.itemId) return new w({
  3179. id: E.itemId, portal: G &&
  3180. G.portal
  3181. })
  3182. }; M.writePortalItem = function (N, E) { N && N.id && (E.itemId = N.id) }; M.loadFromPortal = function () {
  3183. var N = c._asyncToGenerator(function* (E, G) {
  3184. if (this.portalItem && this.portalItem.id) try { const H = yield new Promise((K, S) => a(["../../portal/support/layersLoader"], K, S)); g.throwIfAborted(G); return yield H.load({ instance: this, supportedTypes: E.supportedTypes, validateItem: E.validateItem, supportsData: E.supportsData }, G) } catch (H) {
  3185. throw g.isAbortError(H) || z.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${H}`),
  3186. H;
  3187. }
  3188. }); return function (E, G) { return N.apply(this, arguments) }
  3189. }(); M.finishLoadEditablePortalLayer = function () { var N = c._asyncToGenerator(function* (E) { this._set("userHasEditingPrivileges", yield this._fetchUserHasEditingPrivileges(E).catch(G => { g.throwIfAbortError(G); return !0 })) }); return function (E) { return N.apply(this, arguments) } }(); M._fetchUserHasEditingPrivileges = function () {
  3190. var N = c._asyncToGenerator(function* (E) {
  3191. const G = this.url ? null == d.id ? void 0 : d.id.findCredential(this.url) : null; if (!G) return !0; E = C ===
  3192. G ? A : yield this._fetchEditingUser(E); C = G; A = E; return m.isNone(E) || null == E.privileges || E.privileges.includes("features:user:edit")
  3193. }); return function (E) { return N.apply(this, arguments) }
  3194. }(); M._fetchEditingUser = function () {
  3195. var N = c._asyncToGenerator(function* (E) {
  3196. var G, H; const K = null == (G = this.portalItem) ? void 0 : null == (H = G.portal) ? void 0 : H.user; if (K) return K; G = d.id.findServerInfo(this.url); if (null == G || !G.owningSystemUrl) return null; G = `${G.owningSystemUrl}/sharing/rest`; if ((H = B.getDefault()) && H.loaded && p.normalize(H.restUrl) ===
  3197. p.normalize(G)) return H.user; G = `${G}/community/self`; E = m.isSome(E) ? E.signal : null; E = yield r.result(l(G, { authMode: "no-prompt", query: { f: "json" }, signal: E })); return E.ok ? x.fromJSON(E.value.data) : null
  3198. }); return function (E) { return N.apply(this, arguments) }
  3199. }(); M.read = function (N, E) { E && (E.layer = this); F.prototype.read.call(this, N, E) }; M.write = function (N, E) {
  3200. const G = E && E.portal, H = this.portalItem && this.portalItem.id && (this.portalItem.portal || B.getDefault()); return G && H && !p.hasSamePortal(H.restUrl, G.restUrl) ? (E.messages &&
  3201. E.messages.push(new q("layer:cross-portal", `The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`, { layer: this })), null) : F.prototype.write.call(this, N, { ...E, layer: this })
  3202. }; c._createClass(J, [{ key: "portalItem", set: function (N) { N !== this._get("portalItem") && (this.removeOrigin("portal-item"), this._set("portalItem", N)) } }]);
  3203. return J
  3204. }(D); e.__decorate([t.property({ type: w })], D.prototype, "portalItem", null); e.__decorate([h.reader("web-document", "portalItem", ["itemId"])], D.prototype, "readPortalItem", null); e.__decorate([y.writer("web-document", "portalItem", { itemId: { type: String } })], D.prototype, "writePortalItem", null); e.__decorate([t.property({ clonable: !1 })], D.prototype, "resourceReferences", void 0); e.__decorate([t.property({ readOnly: !0 })], D.prototype, "userHasEditingPrivileges", void 0); return D = e.__decorate([v.subclass("esri.layers.mixins.PortalLayer")],
  3205. D)
  3206. }; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3207. })
  3208. }, "esri/layers/mixins/ScaleRangeLayer": function () {
  3209. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  3210. a.ScaleRangeLayer = k => {
  3211. k = function (m) {
  3212. function g() {
  3213. var p = m.apply(this, arguments) ||
  3214. this; p.minScale = 0; p.maxScale = 0; return p
  3215. } b._inheritsLoose(g, m); b._createClass(g, [{
  3216. key: "effectiveScaleRange", get: function () {
  3217. const p = { minScale: this.minScale, maxScale: this.maxScale }; var t = this.parent; t && "effectiveScaleRange" in t && (t = t.effectiveScaleRange, p.minScale = 0 < p.minScale ? 0 < t.minScale ? Math.min(p.minScale, t.minScale) : p.minScale : t.minScale, p.maxScale = 0 < p.maxScale ? 0 < t.maxScale ? Math.max(p.maxScale, t.maxScale) : p.maxScale : t.maxScale); return (t = this._get("effectiveScaleRange")) && t.minScale === p.minScale &&
  3218. t.maxScale === p.maxScale ? t : p
  3219. }
  3220. }]); return g
  3221. }(k); c.__decorate([e.property({ type: Number, nonNullable: !0, json: { write: !0 } })], k.prototype, "minScale", void 0); c.__decorate([e.property({ type: Number, nonNullable: !0, json: { write: !0 } })], k.prototype, "maxScale", void 0); c.__decorate([e.property({ readOnly: !0 })], k.prototype, "effectiveScaleRange", null); return k = c.__decorate([q.subclass("esri.layers.mixins.ScaleRangeLayer")], k)
  3222. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3223. })
  3224. },
  3225. "esri/layers/mixins/RefreshableLayer": function () {
  3226. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/promiseUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./refresh".split(" "), function (a, b, c, e, d, l, r, q, k, m, g) {
  3227. a.RefreshableLayer = p => {
  3228. p = function (t) {
  3229. function n(...f) {
  3230. var h = t.call(this, ...f) || this; h.refreshInterval = 0; h.refreshTimestamp =
  3231. 0; h._debounceHasDataChanged = d.debounce(() => h.hasDataChanged()); h.when().then(() => { g.registerLayer(b._assertThisInitialized(h)) }, () => { }); return h
  3232. } b._inheritsLoose(n, t); var u = n.prototype; u.destroy = function () { g.unregisterLayer(this) }; u.refresh = function (f = Date.now()) { d.ignoreAbortErrors(this._debounceHasDataChanged()).then(h => { h && this._set("refreshTimestamp", f); this.emit("refresh", { dataChanged: h }) }, h => { e.getLogger(this.declaredClass).error(h); this.emit("refresh", { dataChanged: !1, error: h }) }) }; u.hasDataChanged =
  3233. function () { var f = b._asyncToGenerator(function* () { return !0 }); return function () { return f.apply(this, arguments) } }(); b._createClass(n, [{ key: "refreshParameters", get: function () { return { _ts: this.refreshTimestamp || null } } }]); return n
  3234. }(p); c.__decorate([l.property({ type: Number, cast: t => .1 <= t ? t : 0 >= t ? 0 : .1, json: { write: !0 } })], p.prototype, "refreshInterval", void 0); c.__decorate([l.property({ readOnly: !0 })], p.prototype, "refreshTimestamp", void 0); c.__decorate([l.property()], p.prototype, "refreshParameters", null); return p =
  3235. c.__decorate([m.subclass("esri.layers.mixins.RefreshableLayer")], p)
  3236. }; a.isRefreshableLayer = function (p) { return p && "object" === typeof p && "refreshTimestamp" in p && "refresh" in p }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3237. })
  3238. }, "esri/layers/mixins/refresh": function () {
  3239. define("exports ../../core/Collection ../../chunks/_rollupPluginBabelHelpers ../../core/has ../../core/Error ../../core/Logger ../../core/accessorSupport/watch ../../core/accessorSupport/trackingUtils".split(" "),
  3240. function (a, b, c, e, d, l, r, q) {
  3241. function k(f) { return f && "object" === typeof f && "refreshInterval" in f && "refresh" in f } function m(f, h) { return Number.isFinite(f) && Number.isFinite(h) ? 0 >= h ? f : m(h, f % h) : 0 } function g() { const f = Date.now(); for (const v of p) if (v.refreshInterval) { var h; const y = null != (h = t.get(v)) ? h : 0; f - y + 5 >= 6E4 * v.refreshInterval && (t.set(v, f), v.refresh(f)) } } const p = new b, t = new WeakMap; let n = 0, u = 0; q.autorun(() => {
  3242. const f = Date.now(); let h = 0; for (const v of p) h = m(Math.round(6E4 * v.refreshInterval), h), v.refreshInterval ?
  3243. t.get(v) || t.set(v, f) : t.delete(v); h !== u && (u = h, clearInterval(n), n = 0 === u ? 0 : setInterval(g, u))
  3244. }); a.registerLayer = function (f) { k(f) && p.push(f) }; a.test = { get hasRefreshTimer() { return 0 < n }, get tickInterval() { return u }, forceRefresh() { g() }, hasLayer(f) { return k(f) && p.includes(f) }, clear() { for (const f of p) t.delete(f); p.removeAll() } }; a.unregisterLayer = function (f) { k(f) && p.includes(f) && p.remove(f) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3245. })
  3246. }, "esri/layers/support/layersCreator": function () {
  3247. define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Collection ../../core/has ../../core/promiseUtils ./lazyLayerLoader ../../portal/PortalItem ../../portal/support/featureCollectionUtils ../../portal/support/portalLayers ../../renderers/support/styleUtils".split(" "),
  3248. function (a, b, c, e, d, l, r, q, k, m) {
  3249. function g(N, E, G) { return p.apply(this, arguments) } function p() { p = b._asyncToGenerator(function* (N, E, G) { if (E) { var H = []; for (const K of E) E = t(K, G), "GroupLayer" === K.layerType ? H.push(B(E, K, G)) : H.push(E); H = yield d.eachAlways(H); for (const K of H) !K.value || G.filter && !G.filter(K.value) || N.add(K.value) } }); return p.apply(this, arguments) } function t(N, E) { return n.apply(this, arguments) } function n() {
  3250. n = b._asyncToGenerator(function* (N, E) { const G = yield h(N, E); return u(G, N, E) }); return n.apply(this,
  3251. arguments)
  3252. } function u(N, E, G) { return f.apply(this, arguments) } function f() { f = b._asyncToGenerator(function* (N, E, G) { N = new N; N.read(E, G.context); "group" === N.type && y(E) && (yield x(N, E, G.context)); yield m.loadStyleRenderer(N, G.context); return N }); return f.apply(this, arguments) } function h(N, E) { return v.apply(this, arguments) } function v() {
  3253. v = b._asyncToGenerator(function* (N, E) {
  3254. var G = E.context; switch (G.origin) {
  3255. case "web-scene": switch (G.layerContainerType) {
  3256. case "basemap": var H = D; break; case "ground": H = A; break; default: H =
  3257. C
  3258. }break; default: switch (G.layerContainerType) { case "basemap": H = M; break; case "tables": H = J; break; default: H = F }
  3259. }var K = H; H = N.layerType || N.type; !H && E && E.defaultLayerType && (H = E.defaultLayerType); E = (E = K[H]) ? l.layerLookupMap[E] : l.layerLookupMap.UnknownLayer; "Feature Collection" === N.type ? (G = null == G ? void 0 : G.portal, N.itemId && (N = new r({ id: N.itemId, portal: G }), yield N.load(), N = (yield k.selectLayerClassPath(N)).className || "UnknownLayer", E = l.layerLookupMap[N])) : "ArcGISFeatureLayer" === H ? q.isMapNotesLayer(N) ? E = l.layerLookupMap.MapNotesLayer :
  3260. q.isRouteLayer(N) ? E = l.layerLookupMap.RouteLayer : y(N) && (E = l.layerLookupMap.GroupLayer) : N.wmtsInfo && N.wmtsInfo.url && N.wmtsInfo.layerIdentifier ? E = l.layerLookupMap.WMTSLayer : "WFS" === H && "2.0.0" !== N.wfsInfo.version && (E = l.layerLookupMap.UnsupportedLayer); return E()
  3261. }); return v.apply(this, arguments)
  3262. } function y(N) { var E, G, H; return "ArcGISFeatureLayer" !== N.layerType || "Feature Collection" === N.type ? !1 : 1 < (null != (E = null == (G = N.featureCollection) ? void 0 : null == (H = G.layers) ? void 0 : H.length) ? E : 0) } function B(N, E, G) {
  3263. return w.apply(this,
  3264. arguments)
  3265. } function w() { w = b._asyncToGenerator(function* (N, E, G) { const H = new c; E = g(H, Array.isArray(E.layers) ? E.layers : [], G); N = yield N; yield E; if ("group" === N.type) return N.layers.addMany(H), N }); return w.apply(this, arguments) } function x(N, E, G) { return z.apply(this, arguments) } function z() {
  3266. z = b._asyncToGenerator(function* (N, E, G) {
  3267. const H = yield (0, l.layerLookupMap.FeatureLayer)(); var K = E.featureCollection; const S = K.showLegend; K = K.layers.map((fa, ha) => {
  3268. var ba, O; const na = new H; na.read(fa, G); fa = { ...G, ignoreDefaults: !0 };
  3269. na.read({ id: `${N.id}-sublayer-${ha}`, visibility: null != (ba = null == (O = E.visibleLayers) ? void 0 : O.includes(ha)) ? ba : !0 }, fa); null != S && na.read({ showLegend: S }, fa); return na
  3270. }); N.layers.addMany(K)
  3271. }); return z.apply(this, arguments)
  3272. } const C = {
  3273. ArcGISFeatureLayer: "FeatureLayer", ArcGISImageServiceLayer: "ImageryLayer", ArcGISMapServiceLayer: "MapImageLayer", PointCloudLayer: "PointCloudLayer", ArcGISSceneServiceLayer: "SceneLayer", IntegratedMeshLayer: "IntegratedMeshLayer", OGCFeatureLayer: "OGCFeatureLayer", BuildingSceneLayer: "BuildingSceneLayer",
  3274. ArcGISTiledElevationServiceLayer: "ElevationLayer", ArcGISTiledImageServiceLayer: "ImageryTileLayer", ArcGISTiledMapServiceLayer: "TileLayer", GroupLayer: "GroupLayer", GeoJSON: "GeoJSONLayer", WebTiledLayer: "WebTileLayer", CSV: "CSVLayer", VectorTileLayer: "VectorTileLayer", WFS: "WFSLayer", WMS: "WMSLayer", DefaultTileLayer: "TileLayer", KML: "KMLLayer", RasterDataLayer: "UnsupportedLayer", Voxel: "VoxelLayer", LineOfSightLayer: "LineOfSightLayer"
  3275. }, A = {
  3276. ArcGISTiledElevationServiceLayer: "ElevationLayer", DefaultTileLayer: "ElevationLayer",
  3277. RasterDataElevationLayer: "UnsupportedLayer"
  3278. }, D = { ArcGISTiledMapServiceLayer: "TileLayer", ArcGISTiledImageServiceLayer: "ImageryTileLayer", OpenStreetMap: "OpenStreetMapLayer", WebTiledLayer: "WebTileLayer", VectorTileLayer: "VectorTileLayer", ArcGISImageServiceLayer: "UnsupportedLayer", WMS: "UnsupportedLayer", ArcGISMapServiceLayer: "UnsupportedLayer", DefaultTileLayer: "TileLayer" }, F = {
  3279. ArcGISAnnotationLayer: "UnsupportedLayer", ArcGISDimensionLayer: "UnsupportedLayer", ArcGISFeatureLayer: "FeatureLayer", ArcGISImageServiceLayer: "ImageryLayer",
  3280. ArcGISImageServiceVectorLayer: "ImageryLayer", ArcGISMapServiceLayer: "MapImageLayer", ArcGISStreamLayer: "StreamLayer", ArcGISTiledImageServiceLayer: "ImageryTileLayer", ArcGISTiledMapServiceLayer: "TileLayer", BingMapsAerial: "BingMapsLayer", BingMapsRoad: "BingMapsLayer", BingMapsHybrid: "BingMapsLayer", CSV: "CSVLayer", DefaultTileLayer: "TileLayer", GeoRSS: "GeoRSSLayer", GeoJSON: "GeoJSONLayer", GroupLayer: "GroupLayer", KML: "KMLLayer", OGCFeatureLayer: "OGCFeatureLayer", SubtypeGroupLayer: "UnsupportedLayer", VectorTileLayer: "VectorTileLayer",
  3281. WFS: "WFSLayer", WMS: "WMSLayer", WebTiledLayer: "WebTileLayer"
  3282. }, J = { ArcGISFeatureLayer: "FeatureLayer" }, M = {
  3283. ArcGISImageServiceLayer: "ImageryLayer", ArcGISImageServiceVectorLayer: "ImageryLayer", ArcGISMapServiceLayer: "MapImageLayer", ArcGISTiledImageServiceLayer: "ImageryTileLayer", ArcGISTiledMapServiceLayer: "TileLayer", OpenStreetMap: "OpenStreetMapLayer", VectorTileLayer: "VectorTileLayer", WebTiledLayer: "WebTileLayer", BingMapsAerial: "BingMapsLayer", BingMapsRoad: "BingMapsLayer", BingMapsHybrid: "BingMapsLayer", WMS: "WMSLayer",
  3284. DefaultTileLayer: "TileLayer"
  3285. }; a.populateOperationalLayers = g; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3286. })
  3287. }, "esri/layers/support/lazyLayerLoader": function () {
  3288. define(["require", "exports", "../../chunks/_rollupPluginBabelHelpers"], function (a, b, c) {
  3289. const e = l => Object.freeze(Object.defineProperty({ __proto__: null, default: l }, Symbol.toStringTag, { value: "Module" })), d = {
  3290. BingMapsLayer: function () {
  3291. var l = c._asyncToGenerator(function* () {
  3292. return (yield new Promise((r, q) => a(["../BingMapsLayer"],
  3293. k => r(e(k)), q))).default
  3294. }); return function () { return l.apply(this, arguments) }
  3295. }(), BuildingSceneLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../BuildingSceneLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), CSVLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../CSVLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), ElevationLayer: function () {
  3296. var l =
  3297. c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../ElevationLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) }
  3298. }(), FeatureLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../FeatureLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), GroupLayer: function () {
  3299. var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../GroupLayer"], k => r(e(k)), q))).default }); return function () {
  3300. return l.apply(this,
  3301. arguments)
  3302. }
  3303. }(), GeoRSSLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../GeoRSSLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), GeoJSONLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../GeoJSONLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), ImageryLayer: function () {
  3304. var l = c._asyncToGenerator(function* () {
  3305. return (yield new Promise((r, q) => a(["../ImageryLayer"],
  3306. k => r(e(k)), q))).default
  3307. }); return function () { return l.apply(this, arguments) }
  3308. }(), ImageryTileLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../ImageryTileLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), IntegratedMeshLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../IntegratedMeshLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), KMLLayer: function () {
  3309. var l =
  3310. c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../KMLLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) }
  3311. }(), LineOfSightLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../LineOfSightLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), MapImageLayer: function () {
  3312. var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../MapImageLayer"], k => r(e(k)), q))).default });
  3313. return function () { return l.apply(this, arguments) }
  3314. }(), MapNotesLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../MapNotesLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), OGCFeatureLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../OGCFeatureLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), OpenStreetMapLayer: function () {
  3315. var l = c._asyncToGenerator(function* () {
  3316. return (yield new Promise((r,
  3317. q) => a(["../OpenStreetMapLayer"], k => r(e(k)), q))).default
  3318. }); return function () { return l.apply(this, arguments) }
  3319. }(), PointCloudLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../PointCloudLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), RouteLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../RouteLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(),
  3320. SceneLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../SceneLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), StreamLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../StreamLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), TileLayer: function () {
  3321. var l = c._asyncToGenerator(function* () {
  3322. return (yield new Promise((r, q) => a(["../TileLayer"], k => r(e(k)),
  3323. q))).default
  3324. }); return function () { return l.apply(this, arguments) }
  3325. }(), UnknownLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../UnknownLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), UnsupportedLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../UnsupportedLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), VectorTileLayer: function () {
  3326. var l = c._asyncToGenerator(function* () {
  3327. return (yield new Promise((r,
  3328. q) => a(["../VectorTileLayer"], k => r(e(k)), q))).default
  3329. }); return function () { return l.apply(this, arguments) }
  3330. }(), VoxelLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../VoxelLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), WebTileLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../WebTileLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), WFSLayer: function () {
  3331. var l =
  3332. c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../WFSLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) }
  3333. }(), WMSLayer: function () { var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../WMSLayer"], k => r(e(k)), q))).default }); return function () { return l.apply(this, arguments) } }(), WMTSLayer: function () {
  3334. var l = c._asyncToGenerator(function* () { return (yield new Promise((r, q) => a(["../WMTSLayer"], k => r(e(k)), q))).default }); return function () {
  3335. return l.apply(this,
  3336. arguments)
  3337. }
  3338. }()
  3339. }; b.layerLookupMap = d; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3340. })
  3341. }, "esri/portal/support/featureCollectionUtils": function () { define(["exports"], function (a) { function b(c, e) { return c.layerType && "ArcGISFeatureLayer" === c.layerType ? c.featureCollectionType === e ? !0 : !1 : !1 } a.isMapNotesLayer = function (c) { return b(c, "notes") }; a.isRouteLayer = function (c) { return b(c, "route") }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) },
  3342. "esri/portal/support/portalLayers": function () {
  3343. define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../layers/support/lazyLayerLoader ../PortalItem ./layersLoader ./portalItemUtils ../../support/requestPresets".split(" "), function (a, b, c, e, d, l, r, q) {
  3344. function k(w) {
  3345. switch (w.type) {
  3346. case "Map Service": return g(w); case "Feature Service": return p(w); case "Feature Collection": return n(w); case "Scene Service": return t(w); case "Image Service": return f(w); case "Stream Service": return { className: "StreamLayer" };
  3347. case "Vector Tile Service": return { className: "VectorTileLayer" }; case "KML": return { className: "KMLLayer" }; case "WFS": return { className: "WFSLayer" }; case "WMTS": return { className: "WMTSLayer" }; case "WMS": return { className: "WMSLayer" }; case "Feed": return { className: "StreamLayer" }; default: return Promise.reject(new c("portal:unknown-item-type", "Unknown item type '${type}'", { type: w.type }))
  3348. }
  3349. } function m(w) { return (0, e.layerLookupMap[w.className])().then(x => ({ constructor: x, properties: w.properties })) } function g(w) {
  3350. return v(w).then(x =>
  3351. x ? { className: "TileLayer" } : { className: "MapImageLayer" })
  3352. } function p(w) { return y(w).then(x => { if ("object" === typeof x) { const z = {}; null != x.id && (z.layerId = x.id); return { className: "FeatureLayer", properties: z } } return { className: "GroupLayer" } }) } function t(w) {
  3353. return y(w).then(x => {
  3354. if ("object" === typeof x) {
  3355. const z = {}; null != x.id ? (z.layerId = x.id, x = `${w.url}/layers/${x.id}`) : x = w.url; if (Array.isArray(w.typeKeywords) && 0 < w.typeKeywords.length) {
  3356. const C = {
  3357. IntegratedMesh: "IntegratedMeshLayer", "3DObject": "SceneLayer", Point: "SceneLayer",
  3358. PointCloud: "PointCloudLayer", Building: "BuildingSceneLayer"
  3359. }; for (const A of Object.keys(C)) if (w.typeKeywords.includes(A)) return { className: C[A] }
  3360. } return q.requestArcGISServiceJSON(x).then(C => { let A = "SceneLayer"; const D = { Point: "SceneLayer", "3DObject": "SceneLayer", IntegratedMesh: "IntegratedMeshLayer", PointCloud: "PointCloudLayer", Building: "BuildingSceneLayer" }; C && C.layerType && D[C.layerType] && (A = D[C.layerType]); return { className: A, properties: z } })
  3361. } return !1 === x ? q.requestArcGISServiceJSON(w.url).then(z => "Voxel" ===
  3362. (null == z ? void 0 : z.layerType) ? { className: "VoxelLayer" } : { className: "GroupLayer" }) : { className: "GroupLayer" }
  3363. })
  3364. } function n(w) { return u.apply(this, arguments) } function u() { u = b._asyncToGenerator(function* (w) { yield w.load(); if (r.hasTypeKeyword(w, "Map Notes")) return { className: "MapNotesLayer" }; if (r.hasTypeKeyword(w, "Route Layer")) return { className: "RouteLayer" }; w = yield w.fetchData(); return 1 === l.getNumLayersAndTables(w) ? { className: "FeatureLayer" } : { className: "GroupLayer" } }); return u.apply(this, arguments) } function f(w) {
  3365. return h.apply(this,
  3366. arguments)
  3367. } function h() {
  3368. h = b._asyncToGenerator(function* (w) {
  3369. var x, z, C; yield w.load(); const A = null != (x = null == (z = w.typeKeywords) ? void 0 : z.map(D => D.toLowerCase())) ? x : []; if (A.includes("elevation 3d layer")) return { className: "ElevationLayer" }; if (A.includes("tiled imagery")) return { className: "ImageryTileLayer" }; x = yield w.fetchData(); x = null == x ? void 0 : x.layerType; return "ArcGISTiledImageServiceLayer" === x ? { className: "ImageryTileLayer" } : "ArcGISImageServiceLayer" === x ? { className: "ImageryLayer" } : "map" === (null == (C =
  3370. (yield q.requestArcGISServiceJSON(w.url)).cacheType) ? void 0 : C.toLowerCase()) ? { className: "ImageryTileLayer" } : { className: "ImageryLayer" }
  3371. }); return h.apply(this, arguments)
  3372. } function v(w) { return q.requestArcGISServiceJSON(w.url).then(x => x.tileInfo) } function y(w) {
  3373. return !w.url || w.url.match(/\/\d+$/) ? Promise.resolve({}) : w.load().then(() => w.fetchData()).then(function () {
  3374. var x = b._asyncToGenerator(function* (z) {
  3375. return "Feature Service" === w.type ? (z = yield l.preprocessFSItemData(z, w.url), B(z)) : 0 < l.getNumLayersAndTables(z) ?
  3376. B(z) : q.requestArcGISServiceJSON(w.url).then(B)
  3377. }); return function (z) { return x.apply(this, arguments) }
  3378. }())
  3379. } function B(w) { return 1 === l.getNumLayersAndTables(w) ? { id: l.getFirstLayerOrTableId(w) } : !1 } a.fromItem = function (w) { !w.portalItem || w.portalItem instanceof d || (w = { ...w, portalItem: new d(w.portalItem) }); return w.portalItem.load().then(k).then(m).then(x => new x.constructor({ portalItem: w.portalItem, ...x.properties })) }; a.selectLayerClassPath = k; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3380. })
  3381. },
  3382. "esri/portal/support/layersLoader": function () {
  3383. define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../layers/support/lazyLayerLoader ../Portal ./jsonContext ../../renderers/support/styleUtils ../../support/requestPresets".split(" "), function (a, b, c, e, d, l, r, q) {
  3384. function k() {
  3385. k = b._asyncToGenerator(function* (w, x) {
  3386. var z = w.instance.portalItem; if (z && z.id) {
  3387. yield z.load(x); z = w.instance.portalItem; if (!w.supportedTypes.includes(z.type)) throw new c("portal:invalid-layer-item-type", "Invalid layer item type '${type}', expected '${expectedType}'",
  3388. { type: z.type, expectedType: w.supportedTypes.join(", ") }); return m(w, x)
  3389. }
  3390. }); return k.apply(this, arguments)
  3391. } function m(w, x) { return g.apply(this, arguments) } function g() {
  3392. g = b._asyncToGenerator(function* (w, x) { const z = w.instance, C = z.portalItem, { url: A, title: D } = C, F = l.createForItemRead(C); if ("group" === z.type) return z.read({ title: D }, F), p(z, w); A && z.read({ url: A }, F); (w = yield f(w, x)) && z.read(w, F); z.resourceReferences = { portalItem: C, paths: F.readResourcePaths }; z.read({ title: D }, F); return r.loadStyleRenderer(z, F) }); return g.apply(this,
  3393. arguments)
  3394. } function p(w, x) {
  3395. let z; const C = w.portalItem.type; switch (C) { case "Feature Service": z = e.layerLookupMap.FeatureLayer; break; case "Stream Service": z = e.layerLookupMap.StreamLayer; break; case "Scene Service": z = e.layerLookupMap.SceneLayer; break; case "Feature Collection": z = e.layerLookupMap.FeatureLayer; break; default: throw new c("portal:unsupported-item-type-as-group", `The item type '${C}' is not supported as a 'IGroupLayer'`); }let A; return z().then(D => { A = D; return f(x) }).then(function () {
  3396. var D = b._asyncToGenerator(function* (F) {
  3397. return "Feature Service" ===
  3398. C ? (F = yield h(F, w.portalItem.url), n(w, A, F)) : 0 < B(F) ? n(w, A, F) : t(w, A)
  3399. }); return function (F) { return D.apply(this, arguments) }
  3400. }())
  3401. } function t(w, x) { return w.portalItem.url ? q.requestArcGISServiceJSON(w.portalItem.url).then(z => { function C(F) { return { id: F.id, name: F.name } } var A, D; z && n(w, x, { layers: null == (A = z.layers) ? void 0 : A.map(C), tables: null == (D = z.tables) ? void 0 : D.map(C) }) }) : Promise.resolve() } function n(w, x, z) {
  3402. let C = z.layers || []; const A = z.tables || []; "Feature Collection" === w.portalItem.type && (C.forEach(D => {
  3403. var F;
  3404. "Table" === (null == D ? void 0 : null == (F = D.layerDefinition) ? void 0 : F.type) && A.push(D)
  3405. }), C = C.filter(D => { var F; return "Table" !== (null == D ? void 0 : null == (F = D.layerDefinition) ? void 0 : F.type) })); C.reverse().forEach(D => { D = u(w, x, z, D); w.add(D) }); A.reverse().forEach(D => { D = u(w, x, z, D); w.tables.add(D) })
  3406. } function u(w, x, z, C) {
  3407. x = new x({ portalItem: w.portalItem.clone(), layerId: C.id, sublayerTitleMode: "service-name" }); "Feature Collection" === w.portalItem.type && (w = { origin: "portal-item", portal: w.portalItem.portal || d.getDefault() },
  3408. x.read(C, w), z = z.showLegend, null != z && x.read({ showLegend: z }, w)); return x
  3409. } function f(w, x) {
  3410. if (!1 === w.supportsData) return Promise.resolve(void 0); const z = w.instance; return z.portalItem.fetchData("json", x).catch(() => null).then(function () {
  3411. var C = b._asyncToGenerator(function* (A) {
  3412. var D = "stream" === z.type ? !1 : "layerId" in z; if (D) {
  3413. D = !0; if (A && 0 < B(A)) {
  3414. null == z.layerId && (z.layerId = y(A)); a: {
  3415. var F = z.layerId; var J = A.layers; if (J) for (var M = 0; M < J.length; M++)if (J[M].id === F) { F = J[M]; break a } if (J = A.tables) for (M = 0; M < J.length; M++)if (J[M].id ===
  3416. F) { F = J[M]; break a } F = null
  3417. } F && (1 === B(A) && (D = !1), null != A.showLegend && (F.showLegend = A.showLegend))
  3418. } D && "service-name" !== z.sublayerTitleMode && (z.sublayerTitleMode = "item-title-and-service-name"); return F
  3419. } return A
  3420. }); return function (A) { return C.apply(this, arguments) }
  3421. }())
  3422. } function h(w, x) { return v.apply(this, arguments) } function v() {
  3423. v = b._asyncToGenerator(function* (w, x) {
  3424. var z, C; if (null == (null == (z = w) ? void 0 : z.layers) || null == (null == (C = w) ? void 0 : C.tables)) x = yield q.requestArcGISServiceJSON(x), w = w || {}, w.layers = w.layers ||
  3425. (null == x ? void 0 : x.layers), w.tables = w.tables || (null == x ? void 0 : x.tables); return w
  3426. }); return v.apply(this, arguments)
  3427. } function y(w) { const x = w.layers; return x && x.length ? x[0].id : (w = w.tables) && w.length ? w[0].id : null } function B(w) { var x, z, C, A; const D = null != (x = null == w ? void 0 : null == (z = w.layers) ? void 0 : z.length) ? x : 0; w = null != (C = null == w ? void 0 : null == (A = w.tables) ? void 0 : A.length) ? C : 0; return D + w } a.getFirstLayerOrTableId = y; a.getNumLayersAndTables = B; a.load = function (w, x) { return k.apply(this, arguments) }; a.preprocessFSItemData =
  3428. h; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3429. })
  3430. }, "esri/portal/support/jsonContext": function () {
  3431. define(["exports", "../../core/urlUtils", "../Portal"], function (a, b, c) {
  3432. a.createForItemRead = function (e) { return { origin: "portal-item", url: b.urlToObject(e.itemUrl), portal: e.portal || c.getDefault(), portalItem: e, readResourcePaths: [] } }; a.createForItemWrite = function (e) {
  3433. return {
  3434. origin: "portal-item", messages: [], writtenProperties: [], url: e.itemUrl ? b.urlToObject(e.itemUrl) : null,
  3435. portal: e.portal || c.getDefault(), portalItem: e
  3436. }
  3437. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3438. })
  3439. }, "esri/renderers/support/styleUtils": function () {
  3440. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../../core/asyncUtils", "../../core/promiseUtils", "../../core/Warning"], function (a, b, c, e, d) {
  3441. function l() {
  3442. l = b._asyncToGenerator(function* (r, q, k) {
  3443. var m = r && r.getAtOrigin && r.getAtOrigin("renderer", q.origin); m && "unique-value" === m.type && m.styleOrigin && (m = yield c.result(m.populateFromStyle()),
  3444. e.throwIfAborted(k), !1 === m.ok && (k = m.error, q && q.messages && q.messages.push(new d("renderer:style-reference", `Failed to create unique value renderer from style reference: ${k.message}`, { error: k, context: q })), r.clear("renderer", q.origin)))
  3445. }); return l.apply(this, arguments)
  3446. } a.loadStyleRenderer = function (r, q, k) { return l.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3447. })
  3448. }, "esri/support/requestPresets": function () {
  3449. define(["exports", "../chunks/_rollupPluginBabelHelpers",
  3450. "../request"], function (a, b, c) { function e() { e = b._asyncToGenerator(function* (d) { ({ data: d } = yield c(d, { responseType: "json", query: { f: "json" } })); return d }); return e.apply(this, arguments) } a.requestArcGISServiceJSON = function (d) { return e.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  3451. }, "esri/portal/support/portalItemUtils": function () {
  3452. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../../geometry/projection", "../../geometry/SpatialReference",
  3453. "../../geometry/support/webMercatorUtils"], function (a, b, c, e, d) {
  3454. function l(m) { return r.apply(this, arguments) } function r() { r = b._asyncToGenerator(function* (m) { const g = m.spatialReference; if (g.isWGS84) return m.clone(); if (g.isWebMercator) return d.webMercatorToGeographic(m); const p = e.WGS84; yield c.initializeProjection(g, p); return c.project(m, p) }); return r.apply(this, arguments) } function q(m, g) { var p; return !(null == (p = m.typeKeywords) || !p.includes(g)) } function k() {
  3455. k = b._asyncToGenerator(function* (m) {
  3456. m = m.clone().normalize();
  3457. let g; if (1 < m.length) for (const p of m) g ? p.width > g.width && (g = p) : g = p; else g = m[0]; return l(g)
  3458. }); return k.apply(this, arguments)
  3459. } a.TypeKeyword = { DEVELOPER_BASEMAP: "DeveloperBasemap", JSAPI: "ArcGIS API for JavaScript", METADATA: "Metadata", MULTI_LAYER: "Multilayer", SINGLE_LAYER: "Singlelayer", TABLE: "Table" }; a.addTypeKeyword = function (m, g) { if (!q(m, g)) { const p = m.typeKeywords; p ? p.push(g) : m.typeKeywords = [g] } }; a.getWGS84ExtentForItem = function (m) { return k.apply(this, arguments) }; a.hasTypeKeyword = q; a.removeTypeKeyword =
  3460. function (m, g) { if (m = m.typeKeywords) g = m.indexOf(g), -1 < g && m.splice(g, 1) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3461. })
  3462. }, "esri/geometry/projection": function () {
  3463. define("require exports ../chunks/_rollupPluginBabelHelpers ../core/Error ../core/mathUtils ../core/maybe ../core/promiseUtils ../core/unitUtils ../core/accessorSupport/tracking ../core/accessorSupport/tracking/SimpleObservable ../chunks/mat4 ../chunks/vec3 ../chunks/vec3f64 ./Extent ./Multipoint ../chunks/pe ./Point ./Polygon ./Polyline ./projectionEllipsoid ./support/aaBoundingRect ./support/Ellipsoid ./support/geodesicConstants ./support/GeographicTransformation ./support/spatialReferenceUtils ./support/SupportedGCSWkids ./support/zscale".split(" "),
  3464. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F) {
  3465. function J() { return !!Ia && f.isLoaded() } function M(T) { l.isNone(Qa) && (Qa = Promise.all([f.load(), (new Promise((ka, ia) => a(["../chunks/geometryEngineBase"], ka, ia))).then(ka => ka.geometryEngineBase), new Promise((ka, ia) => a(["./geometryAdapters/hydrated"], ka, ia))])); return Qa.then(([, ka, { hydratedAdapter: ia }]) => { r.throwIfAborted(T); Ta = ia; Ia = ka.default; Ia._enableProjection(f.pe); $a.notify() }) } function N(T, ka, ia = null, Aa = null) {
  3466. return Array.isArray(T) ?
  3467. 0 === T.length ? [] : E(Ta, T, T[0].spatialReference, ka, ia, Aa) : E(Ta, [T], T.spatialReference, ka, ia, Aa)[0]
  3468. } function E(T, ka, ia, Aa, Sa = null, Fa = null) { if (l.isNone(ia) || l.isNone(Aa)) return ka; if (K(ia, Aa, Sa)) return ka.map(Pa => l.unwrap(fa(Pa, ia, Aa))); if (l.isNone(Sa)) { const Pa = C.cacheKey(ia, Aa); void 0 !== Za[Pa] ? Sa = Za[Pa] : (Sa = G(ia, Aa, null), l.isNone(Sa) && (Sa = new C), Za[Pa] = Sa) } if (l.isNone(Ia)) throw new cb; return l.isSome(Fa) ? Ia._project(T, ka, ia, Aa, Sa, Fa) : Ia._project(T, ka, ia, Aa, Sa) } function G(T, ka, ia = null) {
  3469. if (l.isNone(Ia)) throw new cb;
  3470. if (l.isNone(T) || l.isNone(ka)) return null; T = Ia._getTransformation(Ta, T, ka, ia, null == ia ? void 0 : ia.spatialReference); return null !== T ? C.fromGE(T) : null
  3471. } function H(T, ka) { try { const ia = N(T, ka); if (null == ia) return null; "xmin" in T && "xmin" in ia && (ia.zmin = T.zmin, ia.zmax = T.zmax); const Aa = F.getGeometryZScaler(ia.type, T.spatialReference, ka); l.isSome(Aa) && Aa(ia); return ia } catch (ia) { if (!(ia instanceof cb)) throw ia; return null } } function K(T, ka, ia) {
  3472. return ia ? !1 : A.equals(T, ka) ? !0 : A.isValid(T) && A.isValid(ka) && !!xa(T, ka,
  3473. db)
  3474. } function S() { S = c._asyncToGenerator(function* (T, ka, ia, Aa) { if (J()) return r.waitTick(Aa); if (Array.isArray(T)) for (const { source: Sa, dest: Fa, geographicTransformation: Pa } of T) { if (!K(Sa, Fa, Pa)) return M(Aa) } else if (!K(T, ka, ia)) return M(Aa); return r.waitTick(Aa) }); return S.apply(this, arguments) } function fa(T, ka, ia) { return T ? "x" in T ? ha(T, ka, new h, ia, 0) : "xmin" in T ? ra(T, ka, new n, ia, 0) : "rings" in T ? na(T, ka, new v, ia, 0) : "paths" in T ? O(T, ka, new y, ia, 0) : "points" in T ? ba(T, ka, new u, ia, 0) : null : null } function ha(T, ka,
  3475. ia, Aa, Sa) { Wa[0] = T.x; Wa[1] = T.y; const Fa = T.z; Wa[2] = void 0 !== Fa ? Fa : Sa; if (!W(Wa, ka, 0, Wa, Aa, 0, 1)) return null; ia.x = Wa[0]; ia.y = Wa[1]; ia.spatialReference = Aa; void 0 === Fa ? (ia.z = void 0, ia.hasZ = !1) : (ia.z = Wa[2], ia.hasZ = !0); void 0 === T.m ? (ia.m = void 0, ia.hasM = !1) : (ia.m = T.m, ia.hasM = !0); return ia } function ba(T, ka, ia, Aa, Sa) {
  3476. const { points: Fa, hasZ: Pa, hasM: va } = T; T = []; const Ma = Fa.length, Va = []; for (var ab of Fa) Va.push(ab[0], ab[1], Pa ? ab[2] : Sa); if (!W(Va, ka, 0, Va, Aa, 0, Ma)) return null; for (ka = 0; ka < Ma; ++ka) {
  3477. Sa = 3 * ka; ab = Va[Sa]; const bb =
  3478. Va[Sa + 1]; Pa && va ? T.push([ab, bb, Va[Sa + 2], Fa[ka][3]]) : Pa ? T.push([ab, bb, Va[Sa + 2]]) : va ? T.push([ab, bb, Fa[ka][2]]) : T.push([ab, bb])
  3479. } ia.points = T; ia.spatialReference = Aa; ia.hasZ = Pa; ia.hasM = va; return ia
  3480. } function O(T, ka, ia, Aa, Sa) { const { paths: Fa, hasZ: Pa, hasM: va } = T; T = []; if (!oa(Fa, Pa, va, ka, T, Aa, Sa)) return null; ia.paths = T; ia.spatialReference = Aa; ia.hasZ = Pa; ia.hasM = va; return ia } function na(T, ka, ia, Aa, Sa) {
  3481. const { rings: Fa, hasZ: Pa, hasM: va } = T; T = []; if (!oa(Fa, Pa, va, ka, T, Aa, Sa)) return null; ia.rings = T; ia.spatialReference =
  3482. Aa; ia.hasZ = Pa; ia.hasM = va; return ia
  3483. } function ra(T, ka, ia, Aa, Sa) { const { xmin: Fa, ymin: Pa, xmax: va, ymax: Ma, hasZ: Va, hasM: ab } = T; if (!Da(Fa, Pa, Va ? T.zmin : Sa, ka, Wa, Aa)) return null; ia.xmin = Wa[0]; ia.ymin = Wa[1]; Va && (ia.zmin = Wa[2]); if (!Da(va, Ma, Va ? T.zmax : Sa, ka, Wa, Aa)) return null; ia.xmax = Wa[0]; ia.ymax = Wa[1]; Va && (ia.zmax = Wa[2]); ab && (ia.mmin = T.mmin, ia.mmax = T.mmax); ia.spatialReference = Aa; return ia } function Da(T, ka, ia, Aa, Sa, Fa) { ua[0] = T; ua[1] = ka; ua[2] = ia; return W(ua, Aa, 0, Sa, Fa, 0, 1) } function Ka(T, ka, ia, Aa) {
  3484. if (l.isNone(ka) ||
  3485. l.isNone(Aa) || 2 > T.length) return !1; 2 === T.length && (ua[0] = T[0], ua[1] = T[1], ua[2] = 0, T = ua); return W(T, ka, 0, ia, Aa, 0, 1)
  3486. } function sa(T, ka, ia) { if (l.isNone(ka)) return !1; ka = Z(ka, jb); ka = gb[ka][qa.WGS84_COMPARABLE_LON_LAT]; if (l.isNone(ka)) return !1; ka(T, 0, ua, 0); ia !== ua && (ia[0] = ua[0], ia[1] = ua[1], 2 < ia.length && (ia[2] = ua[2])); return !0 } function W(T, ka, ia, Aa, Sa, Fa, Pa = 1) {
  3487. ka = xa(ka, Sa, db); if (l.isNone(ka)) return !1; if (ka === Q) { if (T === Aa && ia === Fa) return !0; Pa = ia + 3 * Pa; for (let va = ia, Ma = Fa; va < Pa; va++, Ma++)Aa[Ma] = T[va]; return !0 } Pa =
  3488. ia + 3 * Pa; for (let va = ia, Ma = Fa; va < Pa; va += 3, Ma += 3)ka(T, va, Aa, Ma); return !0
  3489. } function oa(T, ka, ia, Aa, Sa, Fa, Pa = 0) { const va = []; for (const Ma of T) for (const Va of Ma) va.push(Va[0], Va[1], ka ? Va[2] : Pa); if (!W(va, Aa, 0, va, Fa, 0, va.length / 3)) return !1; Aa = 0; Sa.length = 0; for (const Ma of T) { T = []; for (const Va of Ma) ka && ia ? T.push([va[Aa++], va[Aa++], va[Aa++], Va[3]]) : ka ? T.push([va[Aa++], va[Aa++], va[Aa++]]) : (ia ? T.push([va[Aa++], va[Aa++], Va[2]]) : T.push([va[Aa++], va[Aa++]]), Aa++); Sa.push(T) } return !0 } function ya(T, ka, ia, Aa) {
  3490. ka = Aa +
  3491. ka; if (ka < Aa / 2 || ia > ka) return Number.MAX_VALUE; T = Math.abs(U * T) + Math.asin(ia / ka); return T >= Math.PI / 2 ? Number.MAX_VALUE : ia / Math.cos(T)
  3492. } function I(T, ka, ia) { const Aa = Math.sin(T); T = Math.cos(T); const Sa = Math.sin(ka); ka = Math.cos(ka); ia[0] = -Aa; ia[4] = -Sa * T; ia[8] = ka * T; ia[12] = 0; ia[1] = T; ia[5] = -Sa * Aa; ia[9] = ka * Aa; ia[13] = 0; ia[2] = 0; ia[6] = ka; ia[10] = Sa; ia[14] = 0; ia[3] = 0; ia[7] = 0; ia[11] = 0; ia[15] = 1; return ia } function P(T, ka, ia) { I(T, ka, ia); g.transpose(ia, ia); return ia } function Z(T, ka) {
  3493. if (ka.spatialReference === T) return ka.spatialReferenceId;
  3494. ka.spatialReference = T; "metersPerUnit" in ka && (ka.metersPerUnit = q.getMetersPerUnitForSR(T, 1)); return T.wkt === B.SphericalECEFSpatialReference.wkt ? ka.spatialReferenceId = qa.SPHERICAL_ECEF : A.isWGS84(T) ? ka.spatialReferenceId = qa.WGS84 : A.isWebMercator(T) ? ka.spatialReferenceId = qa.WEB_MERCATOR : A.isPlateCarree(T) ? ka.spatialReferenceId = qa.PLATE_CARREE : T.wkt === B.WGS84ECEFSpatialReference.wkt ? ka.spatialReferenceId = qa.WGS84_ECEF : T.wkid === D.SupportedGCSWkids.CGCS2000 ? ka.spatialReferenceId = qa.CGCS2000 : T.wkt === B.SphericalPCPFMars.wkt ?
  3495. ka.spatialReferenceId = qa.SPHERICAL_MARS_PCPF : T.wkt === B.SphericalPCPFMoon.wkt ? ka.spatialReferenceId = qa.SPHERICAL_MOON_PCPF : A.isMars(T) ? ka.spatialReferenceId = qa.GCSMARS2000 : A.isMoon(T) ? ka.spatialReferenceId = qa.GCSMOON2000 : ka.spatialReferenceId = qa.UNKNOWN
  3496. } function Q(T, ka, ia, Aa) { T !== ia && (ia[Aa++] = T[ka++], ia[Aa++] = T[ka++], ia[Aa] = T[ka]) } function V(T, ka, ia, Aa) { ia[Aa++] = Y * (T[ka++] / x.earth.radius); ia[Aa++] = Y * (Math.PI / 2 - 2 * Math.atan(Math.exp(-T[ka++] / x.earth.radius))); ia[Aa] = T[ka] } function da(T, ka, ia, Aa) {
  3497. V(T,
  3498. ka, ia, Aa); Ra(ia, Aa, ia, Aa)
  3499. } function ea(T, ka, ia, Aa) { V(T, ka, ia, Aa); Na(ia, Aa, ia, Aa) } function pa(T, ka, ia, Aa, Sa) { var Fa = .4999999 * Math.PI; Fa = d.clamp(U * T[ka + 1], -Fa, Fa); Fa = Math.sin(Fa); ia[Aa++] = U * T[ka] * Sa.radius; ia[Aa++] = Sa.halfSemiMajorAxis * Math.log((1 + Fa) / (1 - Fa)); ia[Aa] = T[ka + 2] } function la(T, ka, ia, Aa) { pa(T, ka, ia, Aa, x.earth) } function L(T, ka, ia, Aa) { ia[Aa] = T[ka] * fb; ia[Aa + 1] = T[ka + 1] * fb; ia[Aa + 2] = T[ka + 2] } function R(T, ka, ia, Aa) { ia[Aa] = T[ka] * hb; ia[Aa + 1] = T[ka + 1] * hb; ia[Aa + 2] = T[ka + 2] } function X(T, ka, ia, Aa) {
  3500. V(T, ka,
  3501. ia, Aa); L(ia, Aa, ia, Aa)
  3502. } function ta(T, ka, ia, Aa, Sa) { Sa += T[ka + 2]; const Fa = U * T[ka + 1]; T = U * T[ka]; ka = Math.cos(Fa); ia[Aa++] = Math.cos(T) * ka * Sa; ia[Aa++] = Math.sin(T) * ka * Sa; ia[Aa] = Math.sin(Fa) * Sa } function Ca(T, ka, ia, Aa) { ta(T, ka, ia, Aa, x.moon.radius) } function Ha(T, ka, ia, Aa) { ta(T, ka, ia, Aa, x.mars.radius) } function Ra(T, ka, ia, Aa) { ta(T, ka, ia, Aa, x.earth.radius) } function Ua(T, ka, ia, Aa, Sa) {
  3503. var Fa = T[ka]; const Pa = T[ka + 1]; ka = T[ka + 2]; T = Math.sqrt(Fa * Fa + Pa * Pa + ka * ka); ka = d.asinClamped(ka / (0 === T ? 1 : T)); Fa = Math.atan2(Pa, Fa); ia[Aa++] =
  3504. Y * Fa; ia[Aa++] = Y * ka; ia[Aa] = T - Sa
  3505. } function Xa(T, ka, ia, Aa) { Ua(T, ka, ia, Aa, x.moon.radius) } function ja(T, ka, ia, Aa) { Ua(T, ka, ia, Aa, x.mars.radius) } function wa(T, ka, ia, Aa) { Ua(T, ka, ia, Aa, x.earth.radius) } function za(T, ka, ia, Aa) { wa(T, ka, ia, Aa); la(ia, Aa, ia, Aa) } function Ga(T, ka, ia, Aa) { wa(T, ka, ia, Aa); Na(ia, Aa, ia, Aa) } function Na(T, ka, ia, Aa) {
  3506. {
  3507. var Sa = x.earth; const Pa = U * T[ka]; var Fa = U * T[ka + 1]; T = T[ka + 2]; ka = Math.sin(Fa); Fa = Math.cos(Fa); const va = Sa.radius / Math.sqrt(1 - Sa.eccentricitySquared * ka * ka); ia[Aa++] = (va + T) * Fa * Math.cos(Pa);
  3508. ia[Aa++] = (va + T) * Fa * Math.sin(Pa); ia[Aa++] = (va * (1 - Sa.eccentricitySquared) + T) * ka
  3509. }
  3510. } function ca(T, ka, ia, Aa) {
  3511. var Sa = z.earthEllipsoidConstants, Fa = T[ka], Pa = T[ka + 1]; T = T[ka + 2]; let va; ka = Math.abs(T); var Ma = Fa * Fa + Pa * Pa; var Va = Math.sqrt(Ma); var ab = Ma + T * T; var bb = Math.sqrt(ab); Fa = Math.atan2(Pa, Fa); var ib = T * T / ab; ab = Ma / ab; Pa = Sa.a2 / bb; Ma = Sa.a3 - Sa.a4 / bb; .3 < ab ? (ib = ka / bb * (1 + ab * (Sa.a1 + Pa + ib * Ma) / bb), bb = Math.asin(ib), Pa = ib * ib, ab = Math.sqrt(1 - Pa)) : (ab = Va / bb * (1 - ib * (Sa.a5 - Pa - ab * Ma) / bb), bb = Math.acos(ab), Pa = 1 - ab * ab, ib = Math.sqrt(Pa));
  3512. va = 1 - x.earth.eccentricitySquared * Pa; Pa = x.earth.radius / Math.sqrt(va); Sa = Sa.a6 * Pa; Pa = Va - Pa * ab; Ma = ka - Sa * ib; ka = ab * Pa + ib * Ma; Va = ab * Ma - ib * Pa; Sa = Va / (Sa / va + ka); bb += Sa; 0 > T && (bb = -bb); ia[Aa++] = Y * Fa; ia[Aa++] = Y * bb; ia[Aa] = ka + Va * Sa / 2
  3513. } function ma(T, ka, ia, Aa) { ca(T, ka, ia, Aa); Ra(ia, Aa, ia, Aa) } function Ba(T, ka, ia, Aa) { ca(T, ka, ia, Aa); la(ia, Aa, ia, Aa) } function xa(T, ka, ia = Oa()) { return l.isNone(T) || l.isNone(ka) ? null : Ea(T, ka, ia).projector } function Ea(T, ka, ia) {
  3514. if (l.isNone(T) || l.isNone(ka) || ia.source.spatialReference === T && ia.dest.spatialReference ===
  3515. ka) return ia; const Aa = Z(T, ia.source), Sa = Z(ka, ia.dest); Aa === qa.UNKNOWN && Sa === qa.UNKNOWN ? A.equals(T, ka) ? ia.projector = Q : ia.projector = null : ia.projector = gb[Aa][Sa]; return ia
  3516. } function Oa() { return { source: { spatialReference: null, spatialReferenceId: qa.UNKNOWN, metersPerUnit: 1 }, dest: { spatialReference: null, spatialReferenceId: qa.UNKNOWN, metersPerUnit: 1 }, projector: Q } } let Ia = null, Ta = null, Qa = null, Za = {}; const $a = new m.SimpleObservable; let cb = function (T) {
  3517. function ka() {
  3518. return T.call(this, "projection:not-loaded", "projection engine not fully loaded yet, please call load()") ||
  3519. this
  3520. } c._inheritsLoose(ka, T); return ka
  3521. }(e); var qa; (function (T) {
  3522. T[T.UNKNOWN = 0] = "UNKNOWN"; T[T.SPHERICAL_ECEF = 1] = "SPHERICAL_ECEF"; T[T.WGS84 = 2] = "WGS84"; T[T.WEB_MERCATOR = 3] = "WEB_MERCATOR"; T[T.WGS84_ECEF = 4] = "WGS84_ECEF"; T[T.CGCS2000 = 5] = "CGCS2000"; T[T.WGS84_COMPARABLE_LON_LAT = 6] = "WGS84_COMPARABLE_LON_LAT"; T[T.SPHERICAL_MARS_PCPF = 7] = "SPHERICAL_MARS_PCPF"; T[T.GCSMARS2000 = 8] = "GCSMARS2000"; T[T.SPHERICAL_MOON_PCPF = 9] = "SPHERICAL_MOON_PCPF"; T[T.GCSMOON2000 = 10] = "GCSMOON2000"; T[T.LON_LAT = 11] = "LON_LAT"; T[T.PLATE_CARREE =
  3523. 12] = "PLATE_CARREE"
  3524. })(qa || (qa = {})); const fb = x.earth.radius * Math.PI / 180, hb = 180 / (x.earth.radius * Math.PI), gb = {
  3525. [qa.WGS84]: { [qa.CGCS2000]: null, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null, [qa.LON_LAT]: Q, [qa.WGS84_COMPARABLE_LON_LAT]: Q, [qa.SPHERICAL_ECEF]: Ra, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: la, [qa.PLATE_CARREE]: L, [qa.WGS84]: Q, [qa.WGS84_ECEF]: Na }, [qa.CGCS2000]: {
  3526. [qa.CGCS2000]: Q, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null, [qa.LON_LAT]: Q, [qa.WGS84_COMPARABLE_LON_LAT]: Q,
  3527. [qa.SPHERICAL_ECEF]: Ra, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: null, [qa.PLATE_CARREE]: L, [qa.WGS84]: null, [qa.WGS84_ECEF]: Na
  3528. }, [qa.GCSMARS2000]: { [qa.CGCS2000]: null, [qa.GCSMARS2000]: Q, [qa.GCSMOON2000]: null, [qa.LON_LAT]: Q, [qa.WGS84_COMPARABLE_LON_LAT]: null, [qa.SPHERICAL_ECEF]: null, [qa.SPHERICAL_MARS_PCPF]: Ha, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: null, [qa.PLATE_CARREE]: null, [qa.WGS84]: null, [qa.WGS84_ECEF]: null }, [qa.GCSMOON2000]: {
  3529. [qa.CGCS2000]: null,
  3530. [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: Q, [qa.LON_LAT]: Q, [qa.WGS84_COMPARABLE_LON_LAT]: null, [qa.SPHERICAL_ECEF]: null, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: Ca, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: null, [qa.PLATE_CARREE]: null, [qa.WGS84]: null, [qa.WGS84_ECEF]: null
  3531. }, [qa.WEB_MERCATOR]: {
  3532. [qa.CGCS2000]: null, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null, [qa.LON_LAT]: V, [qa.WGS84_COMPARABLE_LON_LAT]: V, [qa.SPHERICAL_ECEF]: da, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null,
  3533. [qa.WEB_MERCATOR]: Q, [qa.PLATE_CARREE]: X, [qa.WGS84]: V, [qa.WGS84_ECEF]: ea
  3534. }, [qa.WGS84_ECEF]: { [qa.CGCS2000]: ca, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null, [qa.LON_LAT]: ca, [qa.WGS84_COMPARABLE_LON_LAT]: ca, [qa.SPHERICAL_ECEF]: ma, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: Ba, [qa.PLATE_CARREE]: function (T, ka, ia, Aa) { ca(T, ka, ia, Aa); L(ia, Aa, ia, Aa) }, [qa.WGS84]: ca, [qa.WGS84_ECEF]: Q }, [qa.SPHERICAL_ECEF]: {
  3535. [qa.CGCS2000]: wa, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null,
  3536. [qa.LON_LAT]: wa, [qa.WGS84_COMPARABLE_LON_LAT]: wa, [qa.SPHERICAL_ECEF]: Q, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: za, [qa.PLATE_CARREE]: function (T, ka, ia, Aa) { wa(T, ka, ia, Aa); L(ia, Aa, ia, Aa) }, [qa.WGS84]: wa, [qa.WGS84_ECEF]: Ga
  3537. }, [qa.SPHERICAL_MARS_PCPF]: {
  3538. [qa.CGCS2000]: null, [qa.GCSMARS2000]: ja, [qa.GCSMOON2000]: null, [qa.LON_LAT]: ja, [qa.WGS84_COMPARABLE_LON_LAT]: null, [qa.SPHERICAL_ECEF]: null, [qa.SPHERICAL_MARS_PCPF]: Q, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null,
  3539. [qa.WEB_MERCATOR]: null, [qa.PLATE_CARREE]: null, [qa.WGS84]: null, [qa.WGS84_ECEF]: null
  3540. }, [qa.SPHERICAL_MOON_PCPF]: { [qa.CGCS2000]: null, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: Xa, [qa.LON_LAT]: Xa, [qa.WGS84_COMPARABLE_LON_LAT]: null, [qa.SPHERICAL_ECEF]: null, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: Q, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: null, [qa.PLATE_CARREE]: null, [qa.WGS84]: null, [qa.WGS84_ECEF]: null }, [qa.UNKNOWN]: {
  3541. [qa.CGCS2000]: null, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null, [qa.LON_LAT]: null,
  3542. [qa.WGS84_COMPARABLE_LON_LAT]: null, [qa.SPHERICAL_ECEF]: null, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: Q, [qa.WEB_MERCATOR]: null, [qa.PLATE_CARREE]: null, [qa.WGS84]: null, [qa.WGS84_ECEF]: null
  3543. }, [qa.LON_LAT]: { [qa.CGCS2000]: Q, [qa.GCSMARS2000]: Q, [qa.GCSMOON2000]: Q, [qa.LON_LAT]: Q, [qa.WGS84_COMPARABLE_LON_LAT]: Q, [qa.SPHERICAL_ECEF]: Ra, [qa.SPHERICAL_MARS_PCPF]: Ha, [qa.SPHERICAL_MOON_PCPF]: Ca, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: la, [qa.PLATE_CARREE]: L, [qa.WGS84]: Q, [qa.WGS84_ECEF]: Na },
  3544. [qa.WGS84_COMPARABLE_LON_LAT]: { [qa.CGCS2000]: null, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null, [qa.LON_LAT]: Q, [qa.WGS84_COMPARABLE_LON_LAT]: Q, [qa.SPHERICAL_ECEF]: Ra, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: null, [qa.PLATE_CARREE]: L, [qa.WGS84]: Q, [qa.WGS84_ECEF]: Na }, [qa.PLATE_CARREE]: {
  3545. [qa.CGCS2000]: R, [qa.GCSMARS2000]: null, [qa.GCSMOON2000]: null, [qa.LON_LAT]: R, [qa.WGS84_COMPARABLE_LON_LAT]: R, [qa.SPHERICAL_ECEF]: function (T, ka, ia, Aa) {
  3546. R(T, ka, ia, Aa); Ra(ia,
  3547. Aa, ia, Aa)
  3548. }, [qa.SPHERICAL_MARS_PCPF]: null, [qa.SPHERICAL_MOON_PCPF]: null, [qa.UNKNOWN]: null, [qa.WEB_MERCATOR]: function (T, ka, ia, Aa) { R(T, ka, ia, Aa); la(ia, Aa, ia, Aa) }, [qa.PLATE_CARREE]: Q, [qa.WGS84]: R, [qa.WGS84_ECEF]: function (T, ka, ia, Aa) { R(T, ka, ia, Aa); Na(ia, Aa, ia, Aa) }
  3549. }
  3550. }, jb = { spatialReference: null, spatialReferenceId: qa.UNKNOWN }, Ya = { spatialReference: null, spatialReferenceId: qa.UNKNOWN }, db = Oa(), aa = Oa(), U = d.deg2rad(1), Y = d.rad2deg(1), ua = t.create(), Ja = t.create(), La = t.create(), Wa = t.create(), eb = t.create(); b.canProjectToWGS84ComparableLonLat =
  3551. function (T) { if (l.isNone(T)) return !1; T = Z(T, jb); return !!gb[T][qa.WGS84_COMPARABLE_LON_LAT] }; b.canProjectWithoutEngine = K; b.computeENUToSphericalPCPFLocalRotation = I; b.computeSphericalPCPFToENULocalRotation = P; b.computeTranslationToOriginAndRotation = function (T, ka, ia, Aa) {
  3552. if (l.isNone(T) || l.isNone(Aa)) return !1; var Sa = Z(T, jb), Fa = Z(Aa, Ya); if (Sa === Fa && Fa !== qa.SPHERICAL_ECEF && Fa !== qa.SPHERICAL_MARS_PCPF && Fa !== qa.SPHERICAL_MOON_PCPF && (Sa !== qa.UNKNOWN || A.equals(T, Aa))) return g.fromTranslation(ia, ka), !0; if (Fa ===
  3553. qa.SPHERICAL_ECEF || Fa === qa.SPHERICAL_MARS_PCPF || Fa === qa.SPHERICAL_MOON_PCPF) { Sa = gb[Sa][qa.LON_LAT]; Fa = gb[qa.LON_LAT][Fa]; if (l.isNone(Sa) || l.isNone(Fa)) return !1; Sa(ka, 0, Ja, 0); Fa(Ja, 0, La, 0); I(U * Ja[0], U * Ja[1], ia); ia[12] = La[0]; ia[13] = La[1]; ia[14] = La[2]; return !0 } if ((Fa === qa.WEB_MERCATOR || Fa === qa.PLATE_CARREE) && (Sa === qa.WGS84 || Sa === qa.CGCS2000 && Fa === qa.PLATE_CARREE || Sa === qa.SPHERICAL_ECEF || Sa === qa.WEB_MERCATOR)) {
  3554. T = gb[Sa][qa.LON_LAT]; Fa = gb[qa.LON_LAT][Fa]; if (l.isNone(T) || l.isNone(Fa)) return !1; T(ka, 0, Ja,
  3555. 0); Fa(Ja, 0, La, 0); Sa === qa.SPHERICAL_ECEF ? P(U * Ja[0], U * Ja[1], ia) : g.identity(ia); ia[12] = La[0]; ia[13] = La[1]; ia[14] = La[2]; return !0
  3556. } return !1
  3557. }; b.getProjectorName = function (T, ka) {
  3558. switch (xa(T, ka, db)) {
  3559. case Q: return "copy3"; case Ra: return "wgs84ToSphericalECEF"; case la: return "wgs84ToWebMercator"; case L: return "wgs84ToPlateCarree"; case Na: return "wgs84ToWGS84ECEF"; case V: return "webMercatorToWGS84"; case da: return "webMercatorToSphericalECEF"; case ea: return "webMercatorToWGS84ECEF"; case X: return "webMercatorToPlateCarree";
  3560. case ca: return "wgs84ECEFToWGS84"; case ma: return "wgs84ECEFToSphericalECEF"; case Ba: return "wgs84ECEFToWebMercator"; case wa: return "sphericalECEFToWGS84"; case za: return "sphericalECEFToWebMercator"; case ja: return "sphericalMarsPCPFToMars2000"; case Xa: return "sphericalMoonPCPFToMoon2000"; case Ga: return "sphericalECEFToWGS84ECEF"; case Ha: return "mars2000ToSphericalPCPF"; case Ca: return "moon2000ToSphericalPCPF"; default: return null
  3561. }
  3562. }; b.getTransformation = G; b.getTransformations = function (T, ka, ia = null) {
  3563. if (l.isNone(Ia)) throw new cb;
  3564. T = Ia._getTransformationBySuitability(Ta, T, ka, ia, null == ia ? void 0 : ia.spatialReference); if (null !== T) { ka = []; for (const Aa of T) ka.push(C.fromGE(Aa)); return ka } return []
  3565. }; b.initializeProjection = function (T, ka, ia, Aa) { return S.apply(this, arguments) }; b.isLoaded = J; b.load = M; b.localLinearScaleFactors = function (T, ka, ia, Aa) {
  3566. if (l.isNone(ka) || l.isNone(Aa)) return !1; const Sa = Z(ka, jb); var Fa = Z(Aa, Ya); if (Sa === Fa && Sa !== qa.UNKNOWN || A.equals(ka, Aa)) return ia[0] = 1, ia[1] = 1, ia[2] = 1, !0; if (Sa === qa.SPHERICAL_ECEF) {
  3567. ka = p.length(T);
  3568. T = ka / Math.sqrt(T[0] * T[0] + T[1] * T[1]); ka /= x.earth.radius; if (Fa === qa.WEB_MERCATOR) return ia[0] = T * ka, ia[1] = T * ka, ia[2] = 1, !0; if (Fa === qa.WGS84 || Fa === qa.CGCS2000) return Fa = hb, ia[0] = Fa * T * ka, ia[1] = Fa * ka, ia[2] = 1, !0
  3569. } else if (Sa === qa.PLATE_CARREE) { if (Fa === qa.WGS84 || Fa === qa.CGCS2000) return ia[0] = hb, ia[1] = hb, ia[2] = 1, !0; if (Fa === qa.WEB_MERCATOR) return Fa = T[1] / x.earth.radius, ia[0] = 1, ia[1] = 1 / Math.cos(Fa), ia[2] = 1, !0 } return !1
  3570. }; b.lonLatToSphericalPCPF = function (T, ka, ia, Aa) {
  3571. const Sa = Math.cos(ia); T[0] = Math.cos(ka) * Sa * Aa; T[1] =
  3572. Math.sin(ka) * Sa * Aa; T[2] = Math.sin(ia) * Aa
  3573. }; b.lonLatToWebMercatorComparable = pa; b.project = N; b.projectBoundingRect = function (T, ka, ia, Aa) { if (null == T) return !1; if (A.equals(ka, Aa)) return w.copy(ia, T), !0; ua[0] = T[0]; ua[1] = T[1]; ua[2] = 0; if (!W(ua, ka, 0, ua, Aa, 0, 1)) return !1; ia[0] = ua[0]; ia[1] = ua[1]; ua[0] = T[2]; ua[1] = T[3]; ua[2] = 0; if (!W(ua, ka, 0, ua, Aa, 0, 1)) return !1; ia[2] = ua[0]; ia[3] = ua[1]; return !0 }; b.projectBoundingSphere = function (T, ka, ia, Aa) {
  3574. if (l.isNone(ka) || l.isNone(Aa)) return !1; ka = Ea(ka, Aa, aa); if (ka.projector === Q) return ia[0] =
  3575. T[0], ia[1] = T[1], ia[2] = T[2], ia[3] = T[3], !0; if (l.isNone(ka.projector)) return !1; const { source: Sa, dest: Fa } = ka; if (Fa.spatialReferenceId === qa.WEB_MERCATOR) { ka = gb[Sa.spatialReferenceId][qa.WGS84]; if (l.isNone(ka)) return !1; ka(T, 0, Ja, 0); la(Ja, 0, ia, 0); ia[3] = ya(Ja[1], T[2], T[3], x.earth.radius); return !0 } if (Sa.spatialReferenceId !== qa.WGS84 && Sa.spatialReferenceId !== qa.CGCS2000 || Fa.spatialReferenceId !== qa.PLATE_CARREE) ka.projector(T, 0, ia, 0), ia[3] = T[3] * Sa.metersPerUnit / Fa.metersPerUnit; else {
  3576. Aa = gb[qa.SPHERICAL_ECEF][qa.PLATE_CARREE];
  3577. let Pa = T[3]; l.isSome(gb[Sa.spatialReferenceId][qa.SPHERICAL_ECEF]) && l.isSome(Aa) && (Pa = ya(T[1], T[2], T[3], x.earth.radius)); ka.projector(T, 0, ia, 0); ia[3] = Pa
  3578. } return !0
  3579. }; b.projectBuffer = W; b.projectDirection = function (T, ka, ia, Aa, Sa) { p.copy(Wa, T); p.add(eb, T, ka); Ka(Wa, ia, Wa, Sa); Ka(eb, ia, eb, Sa); p.subtract(Aa, eb, Wa); p.normalize(Aa, Aa) }; b.projectExtent = function (T, ka, ia = ka.spatialReference, Aa = 0) { return l.isSome(ia) && l.isSome(ra(T, T.spatialReference, ka, ia, Aa)) }; b.projectMany = E; b.projectMultipoint = function (T, ka, ia =
  3580. ka.spatialReference, Aa = 0) { return l.isNone(ia) ? !1 : l.isSome(ba(T, T.spatialReference, ka, ia, Aa)) }; b.projectOrLoad = function (T, ka) { return l.isNone(T) ? { pending: null, geometry: null } : A.equals(T.spatialReference, ka) ? { pending: null, geometry: T } : A.isValid(T.spatialReference) && A.isValid(ka) ? K(T.spatialReference, ka) ? { pending: null, geometry: H(T, ka) } : J() ? { pending: null, geometry: H(T, ka) } : (k.trackAccess($a), { pending: M(), geometry: null }) : { pending: null, geometry: null } }; b.projectPoint = function (T, ka, ia = ka.spatialReference, Aa =
  3581. 0) { return l.isNone(ia) ? !1 : l.isSome(ha(T, T.spatialReference, ka, ia, Aa)) }; b.projectPointToVector = function (T, ka, ia, Aa = 0) { Wa[0] = T.x; Wa[1] = T.y; const Sa = T.z; Wa[2] = void 0 !== Sa ? Sa : Aa; return W(Wa, T.spatialReference, 0, ka, ia, 0, 1) }; b.projectPointToWGS84ComparableLonLat = function (T, ka) { Wa[0] = T.x; Wa[1] = T.y; const ia = T.z; Wa[2] = void 0 !== ia ? ia : 0; return sa(Wa, T.spatialReference, ka) }; b.projectPolygon = function (T, ka, ia = ka.spatialReference, Aa = 0) { return l.isSome(ia) && l.isSome(na(T, T.spatialReference, ka, ia, Aa)) }; b.projectPolygonToWGS84ComparableLonLat =
  3582. function ({ hasZ: T, spatialReference: ka, rings: ia }, Aa, Sa = 0) { ka = Z(ka, jb); ka = gb[ka][qa.WGS84_COMPARABLE_LON_LAT]; if (l.isNone(ka)) return !1; T = T ? Fa => Fa : Fa => p.set(Wa, Fa[0], Fa[1], Sa); for (const Fa of ia) { ia = []; for (const Pa of Fa) { const va = [0, 0, Sa]; ka(T(Pa), 0, va, 0); ia.push(va) } Aa.push(ia) } return !0 }; b.projectPolyline = function (T, ka, ia = ka.spatialReference, Aa = 0) { return l.isSome(ia) && l.isSome(O(T, T.spatialReference, ka, ia, Aa)) }; b.projectPolylineToWGS84ComparableLonLat = function ({ hasZ: T, spatialReference: ka, paths: ia },
  3583. Aa, Sa = 0) { ka = Z(ka, jb); ka = gb[ka][qa.WGS84_COMPARABLE_LON_LAT]; if (l.isNone(ka)) return !1; T = T ? Fa => Fa : Fa => p.set(Wa, Fa[0], Fa[1], Sa); for (const Fa of ia) { ia = []; for (const Pa of Fa) { const va = [0, 0, Sa]; ka(T(Pa), 0, va, 0); ia.push(va) } Aa.push(ia) } return !0 }; b.projectVectorToDehydratedPoint = function (T, ka, ia) { return W(T, ka, 0, Wa, ia.spatialReference, 0, 1) ? (ia.x = Wa[0], ia.y = Wa[1], ia.z = Wa[2], ia) : null }; b.projectVectorToPoint = function (T, ka, ia) {
  3584. if (l.isNone(ka) || l.isNone(ia)) return null; const Aa = new h({ spatialReference: ia }); return W(T,
  3585. ka, 0, Wa, ia, 0, 1) ? (Aa.x = Wa[0], Aa.y = Wa[1], Aa.z = Wa[2], Aa) : null
  3586. }; b.projectVectorToVector = Ka; b.projectVectorToWGS84ComparableLonLat = function (T, ka, ia) { return sa(T, ka, ia) }; b.projectWithoutEngine = fa; b.projectXYZToVector = Da; b.sphericalPCPFtoLonLatElevation = Ua; b.test = { get loadPromise() { return Qa } }; b.tryProjectWithZConversion = H; b.unload = function () { Qa = Ta = Ia = null; Za = {} }; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3587. })
  3588. }, "esri/chunks/mat4": function () {
  3589. define(["exports", "./vec3f64",
  3590. "./common"], function (a, b, c) {
  3591. function e(I, P) { I[0] = P[0]; I[1] = P[1]; I[2] = P[2]; I[3] = P[3]; I[4] = P[4]; I[5] = P[5]; I[6] = P[6]; I[7] = P[7]; I[8] = P[8]; I[9] = P[9]; I[10] = P[10]; I[11] = P[11]; I[12] = P[12]; I[13] = P[13]; I[14] = P[14]; I[15] = P[15]; return I } function d(I, P, Z, Q, V, da, ea, pa, la, L, R, X, ta, Ca, Ha, Ra, Ua) { I[0] = P; I[1] = Z; I[2] = Q; I[3] = V; I[4] = da; I[5] = ea; I[6] = pa; I[7] = la; I[8] = L; I[9] = R; I[10] = X; I[11] = ta; I[12] = Ca; I[13] = Ha; I[14] = Ra; I[15] = Ua; return I } function l(I) {
  3592. I[0] = 1; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = 1; I[6] = 0; I[7] = 0; I[8] = 0; I[9] = 0; I[10] =
  3593. 1; I[11] = 0; I[12] = 0; I[13] = 0; I[14] = 0; I[15] = 1; return I
  3594. } function r(I, P) { if (I === P) { const Z = P[1], Q = P[2], V = P[3], da = P[6], ea = P[7], pa = P[11]; I[1] = P[4]; I[2] = P[8]; I[3] = P[12]; I[4] = Z; I[6] = P[9]; I[7] = P[13]; I[8] = Q; I[9] = da; I[11] = P[14]; I[12] = V; I[13] = ea; I[14] = pa } else I[0] = P[0], I[1] = P[4], I[2] = P[8], I[3] = P[12], I[4] = P[1], I[5] = P[5], I[6] = P[9], I[7] = P[13], I[8] = P[2], I[9] = P[6], I[10] = P[10], I[11] = P[14], I[12] = P[3], I[13] = P[7], I[14] = P[11], I[15] = P[15]; return I } function q(I, P) {
  3595. const Z = P[0], Q = P[1], V = P[2], da = P[3], ea = P[4], pa = P[5], la = P[6],
  3596. L = P[7], R = P[8], X = P[9], ta = P[10], Ca = P[11], Ha = P[12], Ra = P[13], Ua = P[14]; P = P[15]; const Xa = Z * pa - Q * ea, ja = Z * la - V * ea, wa = Z * L - da * ea, za = Q * la - V * pa, Ga = Q * L - da * pa, Na = V * L - da * la, ca = R * Ra - X * Ha, ma = R * Ua - ta * Ha, Ba = R * P - Ca * Ha, xa = X * Ua - ta * Ra, Ea = X * P - Ca * Ra, Oa = ta * P - Ca * Ua; let Ia = Xa * Oa - ja * Ea + wa * xa + za * Ba - Ga * ma + Na * ca; if (!Ia) return null; Ia = 1 / Ia; I[0] = (pa * Oa - la * Ea + L * xa) * Ia; I[1] = (V * Ea - Q * Oa - da * xa) * Ia; I[2] = (Ra * Na - Ua * Ga + P * za) * Ia; I[3] = (ta * Ga - X * Na - Ca * za) * Ia; I[4] = (la * Ba - ea * Oa - L * ma) * Ia; I[5] = (Z * Oa - V * Ba + da * ma) * Ia; I[6] = (Ua * wa - Ha * Na - P * ja) * Ia; I[7] =
  3597. (R * Na - ta * wa + Ca * ja) * Ia; I[8] = (ea * Ea - pa * Ba + L * ca) * Ia; I[9] = (Q * Ba - Z * Ea - da * ca) * Ia; I[10] = (Ha * Ga - Ra * wa + P * Xa) * Ia; I[11] = (X * wa - R * Ga - Ca * Xa) * Ia; I[12] = (pa * ma - ea * xa - la * ca) * Ia; I[13] = (Z * xa - Q * ma + V * ca) * Ia; I[14] = (Ra * ja - Ha * za - Ua * Xa) * Ia; I[15] = (R * za - X * ja + ta * Xa) * Ia; return I
  3598. } function k(I, P) {
  3599. const Z = P[0], Q = P[1], V = P[2], da = P[3], ea = P[4], pa = P[5], la = P[6], L = P[7], R = P[8], X = P[9], ta = P[10], Ca = P[11], Ha = P[12], Ra = P[13], Ua = P[14]; P = P[15]; I[0] = pa * (ta * P - Ca * Ua) - X * (la * P - L * Ua) + Ra * (la * Ca - L * ta); I[1] = -(Q * (ta * P - Ca * Ua) - X * (V * P - da * Ua) + Ra * (V * Ca - da * ta));
  3600. I[2] = Q * (la * P - L * Ua) - pa * (V * P - da * Ua) + Ra * (V * L - da * la); I[3] = -(Q * (la * Ca - L * ta) - pa * (V * Ca - da * ta) + X * (V * L - da * la)); I[4] = -(ea * (ta * P - Ca * Ua) - R * (la * P - L * Ua) + Ha * (la * Ca - L * ta)); I[5] = Z * (ta * P - Ca * Ua) - R * (V * P - da * Ua) + Ha * (V * Ca - da * ta); I[6] = -(Z * (la * P - L * Ua) - ea * (V * P - da * Ua) + Ha * (V * L - da * la)); I[7] = Z * (la * Ca - L * ta) - ea * (V * Ca - da * ta) + R * (V * L - da * la); I[8] = ea * (X * P - Ca * Ra) - R * (pa * P - L * Ra) + Ha * (pa * Ca - L * X); I[9] = -(Z * (X * P - Ca * Ra) - R * (Q * P - da * Ra) + Ha * (Q * Ca - da * X)); I[10] = Z * (pa * P - L * Ra) - ea * (Q * P - da * Ra) + Ha * (Q * L - da * pa); I[11] = -(Z * (pa * Ca - L * X) - ea * (Q * Ca - da * X) + R * (Q * L -
  3601. da * pa)); I[12] = -(ea * (X * Ua - ta * Ra) - R * (pa * Ua - la * Ra) + Ha * (pa * ta - la * X)); I[13] = Z * (X * Ua - ta * Ra) - R * (Q * Ua - V * Ra) + Ha * (Q * ta - V * X); I[14] = -(Z * (pa * Ua - la * Ra) - ea * (Q * Ua - V * Ra) + Ha * (Q * la - V * pa)); I[15] = Z * (pa * ta - la * X) - ea * (Q * ta - V * X) + R * (Q * la - V * pa); return I
  3602. } function m(I) {
  3603. const P = I[0], Z = I[1], Q = I[2], V = I[3], da = I[4], ea = I[5], pa = I[6], la = I[7], L = I[8], R = I[9], X = I[10], ta = I[11], Ca = I[12], Ha = I[13], Ra = I[14]; I = I[15]; return (P * ea - Z * da) * (X * I - ta * Ra) - (P * pa - Q * da) * (R * I - ta * Ha) + (P * la - V * da) * (R * Ra - X * Ha) + (Z * pa - Q * ea) * (L * I - ta * Ca) - (Z * la - V * ea) * (L * Ra - X * Ca) + (Q *
  3604. la - V * pa) * (L * Ha - R * Ca)
  3605. } function g(I, P, Z) {
  3606. const Q = P[0], V = P[1], da = P[2], ea = P[3], pa = P[4], la = P[5], L = P[6], R = P[7], X = P[8], ta = P[9], Ca = P[10], Ha = P[11], Ra = P[12], Ua = P[13], Xa = P[14]; P = P[15]; let ja = Z[0], wa = Z[1], za = Z[2], Ga = Z[3]; I[0] = ja * Q + wa * pa + za * X + Ga * Ra; I[1] = ja * V + wa * la + za * ta + Ga * Ua; I[2] = ja * da + wa * L + za * Ca + Ga * Xa; I[3] = ja * ea + wa * R + za * Ha + Ga * P; ja = Z[4]; wa = Z[5]; za = Z[6]; Ga = Z[7]; I[4] = ja * Q + wa * pa + za * X + Ga * Ra; I[5] = ja * V + wa * la + za * ta + Ga * Ua; I[6] = ja * da + wa * L + za * Ca + Ga * Xa; I[7] = ja * ea + wa * R + za * Ha + Ga * P; ja = Z[8]; wa = Z[9]; za = Z[10]; Ga = Z[11]; I[8] = ja *
  3607. Q + wa * pa + za * X + Ga * Ra; I[9] = ja * V + wa * la + za * ta + Ga * Ua; I[10] = ja * da + wa * L + za * Ca + Ga * Xa; I[11] = ja * ea + wa * R + za * Ha + Ga * P; ja = Z[12]; wa = Z[13]; za = Z[14]; Ga = Z[15]; I[12] = ja * Q + wa * pa + za * X + Ga * Ra; I[13] = ja * V + wa * la + za * ta + Ga * Ua; I[14] = ja * da + wa * L + za * Ca + Ga * Xa; I[15] = ja * ea + wa * R + za * Ha + Ga * P; return I
  3608. } function p(I, P, Z) {
  3609. const Q = Z[0], V = Z[1]; Z = Z[2]; if (P === I) I[12] = P[0] * Q + P[4] * V + P[8] * Z + P[12], I[13] = P[1] * Q + P[5] * V + P[9] * Z + P[13], I[14] = P[2] * Q + P[6] * V + P[10] * Z + P[14], I[15] = P[3] * Q + P[7] * V + P[11] * Z + P[15]; else {
  3610. const da = P[0], ea = P[1], pa = P[2], la = P[3], L = P[4],
  3611. R = P[5], X = P[6], ta = P[7], Ca = P[8], Ha = P[9], Ra = P[10], Ua = P[11]; I[0] = da; I[1] = ea; I[2] = pa; I[3] = la; I[4] = L; I[5] = R; I[6] = X; I[7] = ta; I[8] = Ca; I[9] = Ha; I[10] = Ra; I[11] = Ua; I[12] = da * Q + L * V + Ca * Z + P[12]; I[13] = ea * Q + R * V + Ha * Z + P[13]; I[14] = pa * Q + X * V + Ra * Z + P[14]; I[15] = la * Q + ta * V + Ua * Z + P[15]
  3612. } return I
  3613. } function t(I, P, Z) {
  3614. const Q = Z[0], V = Z[1]; Z = Z[2]; I[0] = P[0] * Q; I[1] = P[1] * Q; I[2] = P[2] * Q; I[3] = P[3] * Q; I[4] = P[4] * V; I[5] = P[5] * V; I[6] = P[6] * V; I[7] = P[7] * V; I[8] = P[8] * Z; I[9] = P[9] * Z; I[10] = P[10] * Z; I[11] = P[11] * Z; I[12] = P[12]; I[13] = P[13]; I[14] = P[14]; I[15] = P[15];
  3615. return I
  3616. } function n(I, P, Z, Q) {
  3617. let V = Q[0], da = Q[1]; Q = Q[2]; let ea = Math.sqrt(V * V + da * da + Q * Q); var pa = void 0, la = void 0; let L = void 0, R = void 0, X = void 0, ta = void 0, Ca = void 0, Ha = void 0, Ra = void 0, Ua = void 0, Xa = void 0, ja = void 0, wa = void 0, za = void 0, Ga = void 0, Na = void 0, ca = void 0, ma = void 0, Ba = void 0, xa = void 0, Ea = void 0, Oa = void 0; la = pa = void 0; if (ea < c.EPSILON) return null; ea = 1 / ea; V *= ea; da *= ea; Q *= ea; pa = Math.sin(Z); la = Math.cos(Z); L = 1 - la; R = P[0]; X = P[1]; ta = P[2]; Ca = P[3]; Ha = P[4]; Ra = P[5]; Ua = P[6]; Xa = P[7]; ja = P[8]; wa = P[9]; za = P[10];
  3618. Ga = P[11]; Na = V * V * L + la; ca = da * V * L + Q * pa; ma = Q * V * L - da * pa; Ba = V * da * L - Q * pa; xa = da * da * L + la; Ea = Q * da * L + V * pa; Oa = V * Q * L + da * pa; pa = da * Q * L - V * pa; la = Q * Q * L + la; I[0] = R * Na + Ha * ca + ja * ma; I[1] = X * Na + Ra * ca + wa * ma; I[2] = ta * Na + Ua * ca + za * ma; I[3] = Ca * Na + Xa * ca + Ga * ma; I[4] = R * Ba + Ha * xa + ja * Ea; I[5] = X * Ba + Ra * xa + wa * Ea; I[6] = ta * Ba + Ua * xa + za * Ea; I[7] = Ca * Ba + Xa * xa + Ga * Ea; I[8] = R * Oa + Ha * pa + ja * la; I[9] = X * Oa + Ra * pa + wa * la; I[10] = ta * Oa + Ua * pa + za * la; I[11] = Ca * Oa + Xa * pa + Ga * la; P !== I && (I[12] = P[12], I[13] = P[13], I[14] = P[14], I[15] = P[15]); return I
  3619. } function u(I, P, Z) {
  3620. const Q =
  3621. Math.sin(Z); Z = Math.cos(Z); const V = P[4], da = P[5], ea = P[6], pa = P[7], la = P[8], L = P[9], R = P[10], X = P[11]; P !== I && (I[0] = P[0], I[1] = P[1], I[2] = P[2], I[3] = P[3], I[12] = P[12], I[13] = P[13], I[14] = P[14], I[15] = P[15]); I[4] = V * Z + la * Q; I[5] = da * Z + L * Q; I[6] = ea * Z + R * Q; I[7] = pa * Z + X * Q; I[8] = la * Z - V * Q; I[9] = L * Z - da * Q; I[10] = R * Z - ea * Q; I[11] = X * Z - pa * Q; return I
  3622. } function f(I, P, Z) {
  3623. const Q = Math.sin(Z); Z = Math.cos(Z); const V = P[0], da = P[1], ea = P[2], pa = P[3], la = P[8], L = P[9], R = P[10], X = P[11]; P !== I && (I[4] = P[4], I[5] = P[5], I[6] = P[6], I[7] = P[7], I[12] = P[12], I[13] = P[13],
  3624. I[14] = P[14], I[15] = P[15]); I[0] = V * Z - la * Q; I[1] = da * Z - L * Q; I[2] = ea * Z - R * Q; I[3] = pa * Z - X * Q; I[8] = V * Q + la * Z; I[9] = da * Q + L * Z; I[10] = ea * Q + R * Z; I[11] = pa * Q + X * Z; return I
  3625. } function h(I, P, Z) { const Q = Math.sin(Z); Z = Math.cos(Z); const V = P[0], da = P[1], ea = P[2], pa = P[3], la = P[4], L = P[5], R = P[6], X = P[7]; P !== I && (I[8] = P[8], I[9] = P[9], I[10] = P[10], I[11] = P[11], I[12] = P[12], I[13] = P[13], I[14] = P[14], I[15] = P[15]); I[0] = V * Z + la * Q; I[1] = da * Z + L * Q; I[2] = ea * Z + R * Q; I[3] = pa * Z + X * Q; I[4] = la * Z - V * Q; I[5] = L * Z - da * Q; I[6] = R * Z - ea * Q; I[7] = X * Z - pa * Q; return I } function v(I,
  3626. P) { I[0] = 1; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = 1; I[6] = 0; I[7] = 0; I[8] = 0; I[9] = 0; I[10] = 1; I[11] = 0; I[12] = P[0]; I[13] = P[1]; I[14] = P[2]; I[15] = 1; return I } function y(I, P) { I[0] = P[0]; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = P[1]; I[6] = 0; I[7] = 0; I[8] = 0; I[9] = 0; I[10] = P[2]; I[11] = 0; I[12] = 0; I[13] = 0; I[14] = 0; I[15] = 1; return I } function B(I, P, Z) {
  3627. let Q = Z[0], V = Z[1]; Z = Z[2]; let da = Math.sqrt(Q * Q + V * V + Z * Z), ea = void 0, pa = void 0, la = void 0; if (da < c.EPSILON) return null; da = 1 / da; Q *= da; V *= da; Z *= da; ea = Math.sin(P); pa = Math.cos(P); la = 1 - pa; I[0] = Q * Q * la + pa;
  3628. I[1] = V * Q * la + Z * ea; I[2] = Z * Q * la - V * ea; I[3] = 0; I[4] = Q * V * la - Z * ea; I[5] = V * V * la + pa; I[6] = Z * V * la + Q * ea; I[7] = 0; I[8] = Q * Z * la + V * ea; I[9] = V * Z * la - Q * ea; I[10] = Z * Z * la + pa; I[11] = 0; I[12] = 0; I[13] = 0; I[14] = 0; I[15] = 1; return I
  3629. } function w(I, P) { const Z = Math.sin(P); P = Math.cos(P); I[0] = 1; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = P; I[6] = Z; I[7] = 0; I[8] = 0; I[9] = -Z; I[10] = P; I[11] = 0; I[12] = 0; I[13] = 0; I[14] = 0; I[15] = 1; return I } function x(I, P) {
  3630. const Z = Math.sin(P); P = Math.cos(P); I[0] = P; I[1] = 0; I[2] = -Z; I[3] = 0; I[4] = 0; I[5] = 1; I[6] = 0; I[7] = 0; I[8] = Z; I[9] = 0; I[10] =
  3631. P; I[11] = 0; I[12] = 0; I[13] = 0; I[14] = 0; I[15] = 1; return I
  3632. } function z(I, P) { const Z = Math.sin(P); P = Math.cos(P); I[0] = P; I[1] = Z; I[2] = 0; I[3] = 0; I[4] = -Z; I[5] = P; I[6] = 0; I[7] = 0; I[8] = 0; I[9] = 0; I[10] = 1; I[11] = 0; I[12] = 0; I[13] = 0; I[14] = 0; I[15] = 1; return I } function C(I, P, Z) {
  3633. var Q = P[0], V = P[1], da = P[2], ea = P[3], pa = Q + Q, la = V + V; const L = da + da; P = Q * pa; const R = Q * la; Q *= L; const X = V * la; V *= L; da *= L; pa *= ea; la *= ea; ea *= L; I[0] = 1 - (X + da); I[1] = R + ea; I[2] = Q - la; I[3] = 0; I[4] = R - ea; I[5] = 1 - (P + da); I[6] = V + pa; I[7] = 0; I[8] = Q + la; I[9] = V - pa; I[10] = 1 - (P + X); I[11] = 0;
  3634. I[12] = Z[0]; I[13] = Z[1]; I[14] = Z[2]; I[15] = 1; return I
  3635. } function A(I, P) { const Z = ya, Q = -P[0], V = -P[1], da = -P[2], ea = P[3], pa = P[4], la = P[5], L = P[6], R = P[7], X = Q * Q + V * V + da * da + ea * ea; 0 < X ? (Z[0] = 2 * (pa * ea + R * Q + la * da - L * V) / X, Z[1] = 2 * (la * ea + R * V + L * Q - pa * da) / X, Z[2] = 2 * (L * ea + R * da + pa * V - la * Q) / X) : (Z[0] = 2 * (pa * ea + R * Q + la * da - L * V), Z[1] = 2 * (la * ea + R * V + L * Q - pa * da), Z[2] = 2 * (L * ea + R * da + pa * V - la * Q)); C(I, P, Z); return I } function D(I, P) { I[0] = P[12]; I[1] = P[13]; I[2] = P[14]; return I } function F(I, P) {
  3636. const Z = P[0], Q = P[1], V = P[2], da = P[4], ea = P[5], pa = P[6], la = P[8],
  3637. L = P[9]; P = P[10]; I[0] = Math.sqrt(Z * Z + Q * Q + V * V); I[1] = Math.sqrt(da * da + ea * ea + pa * pa); I[2] = Math.sqrt(la * la + L * L + P * P); return I
  3638. } function J(I, P) {
  3639. const Z = P[0] + P[5] + P[10]; let Q = 0; 0 < Z ? (Q = 2 * Math.sqrt(Z + 1), I[3] = .25 * Q, I[0] = (P[6] - P[9]) / Q, I[1] = (P[8] - P[2]) / Q, I[2] = (P[1] - P[4]) / Q) : P[0] > P[5] && P[0] > P[10] ? (Q = 2 * Math.sqrt(1 + P[0] - P[5] - P[10]), I[3] = (P[6] - P[9]) / Q, I[0] = .25 * Q, I[1] = (P[1] + P[4]) / Q, I[2] = (P[8] + P[2]) / Q) : P[5] > P[10] ? (Q = 2 * Math.sqrt(1 + P[5] - P[0] - P[10]), I[3] = (P[8] - P[2]) / Q, I[0] = (P[1] + P[4]) / Q, I[1] = .25 * Q, I[2] = (P[6] + P[9]) / Q) : (Q = 2 *
  3640. Math.sqrt(1 + P[10] - P[0] - P[5]), I[3] = (P[1] - P[4]) / Q, I[0] = (P[8] + P[2]) / Q, I[1] = (P[6] + P[9]) / Q, I[2] = .25 * Q); return I
  3641. } function M(I, P, Z, Q) { var V = P[0], da = P[1], ea = P[2], pa = P[3], la = V + V, L = da + da, R = ea + ea; P = V * la; const X = V * L; V *= R; const ta = da * L; da *= R; ea *= R; la *= pa; L *= pa; pa *= R; R = Q[0]; const Ca = Q[1]; Q = Q[2]; I[0] = (1 - (ta + ea)) * R; I[1] = (X + pa) * R; I[2] = (V - L) * R; I[3] = 0; I[4] = (X - pa) * Ca; I[5] = (1 - (P + ea)) * Ca; I[6] = (da + la) * Ca; I[7] = 0; I[8] = (V + L) * Q; I[9] = (da - la) * Q; I[10] = (1 - (P + ta)) * Q; I[11] = 0; I[12] = Z[0]; I[13] = Z[1]; I[14] = Z[2]; I[15] = 1; return I } function N(I,
  3642. P, Z, Q, V) {
  3643. var da = P[0], ea = P[1], pa = P[2], la = P[3], L = da + da, R = ea + ea, X = pa + pa; P = da * L; var ta = da * R, Ca = da * X; da = ea * R; ea *= X; var Ha = pa * X; pa = la * L; R *= la; const Ra = la * X; var Ua = Q[0], Xa = Q[1]; X = Q[2]; Q = V[0]; la = V[1]; V = V[2]; L = (1 - (da + Ha)) * Ua; const ja = (ta + Ra) * Ua; Ua *= Ca - R; ta = (ta - Ra) * Xa; Ha = (1 - (P + Ha)) * Xa; Xa *= ea + pa; Ca = (Ca + R) * X; ea = (ea - pa) * X; P = (1 - (P + da)) * X; I[0] = L; I[1] = ja; I[2] = Ua; I[3] = 0; I[4] = ta; I[5] = Ha; I[6] = Xa; I[7] = 0; I[8] = Ca; I[9] = ea; I[10] = P; I[11] = 0; I[12] = Z[0] + Q - (L * Q + ta * la + Ca * V); I[13] = Z[1] + la - (ja * Q + Ha * la + ea * V); I[14] = Z[2] + V - (Ua * Q + Xa *
  3644. la + P * V); I[15] = 1; return I
  3645. } function E(I, P) { var Z = P[0], Q = P[1], V = P[2]; P = P[3]; var da = Z + Z, ea = Q + Q; const pa = V + V; Z *= da; const la = Q * da; Q *= ea; const L = V * da, R = V * ea; V *= pa; da *= P; ea *= P; P *= pa; I[0] = 1 - Q - V; I[1] = la + P; I[2] = L - ea; I[3] = 0; I[4] = la - P; I[5] = 1 - Z - V; I[6] = R + da; I[7] = 0; I[8] = L + ea; I[9] = R - da; I[10] = 1 - Z - Q; I[11] = 0; I[12] = 0; I[13] = 0; I[14] = 0; I[15] = 1; return I } function G(I, P, Z, Q, V, da, ea) {
  3646. const pa = 1 / (Z - P), la = 1 / (V - Q), L = 1 / (da - ea); I[0] = 2 * da * pa; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = 2 * da * la; I[6] = 0; I[7] = 0; I[8] = (Z + P) * pa; I[9] = (V + Q) * la; I[10] =
  3647. (ea + da) * L; I[11] = -1; I[12] = 0; I[13] = 0; I[14] = ea * da * 2 * L; I[15] = 0; return I
  3648. } function H(I, P, Z, Q, V) { P = 1 / Math.tan(P / 2); let da = void 0; I[0] = P / Z; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = P; I[6] = 0; I[7] = 0; I[8] = 0; I[9] = 0; I[11] = -1; I[12] = 0; I[13] = 0; I[15] = 0; null != V && Infinity !== V ? (da = 1 / (Q - V), I[10] = (V + Q) * da, I[14] = 2 * V * Q * da) : (I[10] = -1, I[14] = -2 * Q); return I } function K(I, P, Z, Q) {
  3649. const V = Math.tan(P.upDegrees * Math.PI / 180), da = Math.tan(P.downDegrees * Math.PI / 180), ea = Math.tan(P.leftDegrees * Math.PI / 180); P = Math.tan(P.rightDegrees * Math.PI / 180);
  3650. const pa = 2 / (ea + P), la = 2 / (V + da); I[0] = pa; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = la; I[6] = 0; I[7] = 0; I[8] = -((ea - P) * pa * .5); I[9] = (V - da) * la * .5; I[10] = Q / (Z - Q); I[11] = -1; I[12] = 0; I[13] = 0; I[14] = Q * Z / (Z - Q); I[15] = 0; return I
  3651. } function S(I, P, Z, Q, V, da, ea) { const pa = 1 / (P - Z), la = 1 / (Q - V), L = 1 / (da - ea); I[0] = -2 * pa; I[1] = 0; I[2] = 0; I[3] = 0; I[4] = 0; I[5] = -2 * la; I[6] = 0; I[7] = 0; I[8] = 0; I[9] = 0; I[10] = 2 * L; I[11] = 0; I[12] = (P + Z) * pa; I[13] = (V + Q) * la; I[14] = (ea + da) * L; I[15] = 1; return I } function fa(I, P, Z, Q) {
  3652. let V = void 0, da = void 0; var ea = void 0, pa = void 0; let la =
  3653. void 0, L = void 0; var R = void 0, X = void 0; let ta = void 0, Ca = void 0; const Ha = P[0], Ra = P[1]; P = P[2]; ea = Q[0]; pa = Q[1]; Q = Q[2]; R = Z[0]; X = Z[1]; Z = Z[2]; if (Math.abs(Ha - R) < c.EPSILON && Math.abs(Ra - X) < c.EPSILON && Math.abs(P - Z) < c.EPSILON) return l(I); R = Ha - R; X = Ra - X; ta = P - Z; Ca = 1 / Math.sqrt(R * R + X * X + ta * ta); R *= Ca; X *= Ca; ta *= Ca; V = pa * ta - Q * X; da = Q * R - ea * ta; ea = ea * X - pa * R; (Ca = Math.sqrt(V * V + da * da + ea * ea)) ? (Ca = 1 / Ca, V *= Ca, da *= Ca, ea *= Ca) : ea = da = V = 0; pa = X * ea - ta * da; la = ta * V - R * ea; L = R * da - X * V; (Ca = Math.sqrt(pa * pa + la * la + L * L)) ? (Ca = 1 / Ca, pa *= Ca, la *= Ca, L *=
  3654. Ca) : L = la = pa = 0; I[0] = V; I[1] = pa; I[2] = R; I[3] = 0; I[4] = da; I[5] = la; I[6] = X; I[7] = 0; I[8] = ea; I[9] = L; I[10] = ta; I[11] = 0; I[12] = -(V * Ha + da * Ra + ea * P); I[13] = -(pa * Ha + la * Ra + L * P); I[14] = -(R * Ha + X * Ra + ta * P); I[15] = 1; return I
  3655. } function ha(I, P, Z, Q) {
  3656. const V = P[0], da = P[1]; P = P[2]; var ea = Q[0]; const pa = Q[1]; var la = Q[2]; Q = V - Z[0]; let L = da - Z[1]; Z = P - Z[2]; let R = Q * Q + L * L + Z * Z; 0 < R && (R = 1 / Math.sqrt(R), Q *= R, L *= R, Z *= R); let X = pa * Z - la * L; la = la * Q - ea * Z; ea = ea * L - pa * Q; R = X * X + la * la + ea * ea; 0 < R && (R = 1 / Math.sqrt(R), X *= R, la *= R, ea *= R); I[0] = X; I[1] = la; I[2] = ea; I[3] =
  3657. 0; I[4] = L * ea - Z * la; I[5] = Z * X - Q * ea; I[6] = Q * la - L * X; I[7] = 0; I[8] = Q; I[9] = L; I[10] = Z; I[11] = 0; I[12] = V; I[13] = da; I[14] = P; I[15] = 1; return I
  3658. } function ba(I) { return "mat4(" + I[0] + ", " + I[1] + ", " + I[2] + ", " + I[3] + ", " + I[4] + ", " + I[5] + ", " + I[6] + ", " + I[7] + ", " + I[8] + ", " + I[9] + ", " + I[10] + ", " + I[11] + ", " + I[12] + ", " + I[13] + ", " + I[14] + ", " + I[15] + ")" } function O(I) { return Math.sqrt(I[0] ** 2 + I[1] ** 2 + I[2] ** 2 + I[3] ** 2 + I[4] ** 2 + I[5] ** 2 + I[6] ** 2 + I[7] ** 2 + I[8] ** 2 + I[9] ** 2 + I[10] ** 2 + I[11] ** 2 + I[12] ** 2 + I[13] ** 2 + I[14] ** 2 + I[15] ** 2) } function na(I, P, Z) {
  3659. I[0] =
  3660. P[0] + Z[0]; I[1] = P[1] + Z[1]; I[2] = P[2] + Z[2]; I[3] = P[3] + Z[3]; I[4] = P[4] + Z[4]; I[5] = P[5] + Z[5]; I[6] = P[6] + Z[6]; I[7] = P[7] + Z[7]; I[8] = P[8] + Z[8]; I[9] = P[9] + Z[9]; I[10] = P[10] + Z[10]; I[11] = P[11] + Z[11]; I[12] = P[12] + Z[12]; I[13] = P[13] + Z[13]; I[14] = P[14] + Z[14]; I[15] = P[15] + Z[15]; return I
  3661. } function ra(I, P, Z) {
  3662. I[0] = P[0] - Z[0]; I[1] = P[1] - Z[1]; I[2] = P[2] - Z[2]; I[3] = P[3] - Z[3]; I[4] = P[4] - Z[4]; I[5] = P[5] - Z[5]; I[6] = P[6] - Z[6]; I[7] = P[7] - Z[7]; I[8] = P[8] - Z[8]; I[9] = P[9] - Z[9]; I[10] = P[10] - Z[10]; I[11] = P[11] - Z[11]; I[12] = P[12] - Z[12]; I[13] = P[13] - Z[13];
  3663. I[14] = P[14] - Z[14]; I[15] = P[15] - Z[15]; return I
  3664. } function Da(I, P, Z) { I[0] = P[0] * Z; I[1] = P[1] * Z; I[2] = P[2] * Z; I[3] = P[3] * Z; I[4] = P[4] * Z; I[5] = P[5] * Z; I[6] = P[6] * Z; I[7] = P[7] * Z; I[8] = P[8] * Z; I[9] = P[9] * Z; I[10] = P[10] * Z; I[11] = P[11] * Z; I[12] = P[12] * Z; I[13] = P[13] * Z; I[14] = P[14] * Z; I[15] = P[15] * Z; return I } function Ka(I, P, Z, Q) {
  3665. I[0] = P[0] + Z[0] * Q; I[1] = P[1] + Z[1] * Q; I[2] = P[2] + Z[2] * Q; I[3] = P[3] + Z[3] * Q; I[4] = P[4] + Z[4] * Q; I[5] = P[5] + Z[5] * Q; I[6] = P[6] + Z[6] * Q; I[7] = P[7] + Z[7] * Q; I[8] = P[8] + Z[8] * Q; I[9] = P[9] + Z[9] * Q; I[10] = P[10] + Z[10] * Q; I[11] = P[11] + Z[11] *
  3666. Q; I[12] = P[12] + Z[12] * Q; I[13] = P[13] + Z[13] * Q; I[14] = P[14] + Z[14] * Q; I[15] = P[15] + Z[15] * Q; return I
  3667. } function sa(I, P) { return I[0] === P[0] && I[1] === P[1] && I[2] === P[2] && I[3] === P[3] && I[4] === P[4] && I[5] === P[5] && I[6] === P[6] && I[7] === P[7] && I[8] === P[8] && I[9] === P[9] && I[10] === P[10] && I[11] === P[11] && I[12] === P[12] && I[13] === P[13] && I[14] === P[14] && I[15] === P[15] } function W(I, P) {
  3668. if (I === P) return !0; const Z = I[0], Q = I[1], V = I[2], da = I[3], ea = I[4], pa = I[5], la = I[6], L = I[7], R = I[8], X = I[9], ta = I[10], Ca = I[11], Ha = I[12], Ra = I[13], Ua = I[14]; I = I[15];
  3669. const Xa = P[0], ja = P[1], wa = P[2], za = P[3], Ga = P[4], Na = P[5], ca = P[6], ma = P[7], Ba = P[8], xa = P[9], Ea = P[10], Oa = P[11], Ia = P[12], Ta = P[13], Qa = P[14]; P = P[15]; return Math.abs(Z - Xa) <= c.EPSILON * Math.max(1, Math.abs(Z), Math.abs(Xa)) && Math.abs(Q - ja) <= c.EPSILON * Math.max(1, Math.abs(Q), Math.abs(ja)) && Math.abs(V - wa) <= c.EPSILON * Math.max(1, Math.abs(V), Math.abs(wa)) && Math.abs(da - za) <= c.EPSILON * Math.max(1, Math.abs(da), Math.abs(za)) && Math.abs(ea - Ga) <= c.EPSILON * Math.max(1, Math.abs(ea), Math.abs(Ga)) && Math.abs(pa - Na) <= c.EPSILON * Math.max(1,
  3670. Math.abs(pa), Math.abs(Na)) && Math.abs(la - ca) <= c.EPSILON * Math.max(1, Math.abs(la), Math.abs(ca)) && Math.abs(L - ma) <= c.EPSILON * Math.max(1, Math.abs(L), Math.abs(ma)) && Math.abs(R - Ba) <= c.EPSILON * Math.max(1, Math.abs(R), Math.abs(Ba)) && Math.abs(X - xa) <= c.EPSILON * Math.max(1, Math.abs(X), Math.abs(xa)) && Math.abs(ta - Ea) <= c.EPSILON * Math.max(1, Math.abs(ta), Math.abs(Ea)) && Math.abs(Ca - Oa) <= c.EPSILON * Math.max(1, Math.abs(Ca), Math.abs(Oa)) && Math.abs(Ha - Ia) <= c.EPSILON * Math.max(1, Math.abs(Ha), Math.abs(Ia)) && Math.abs(Ra - Ta) <=
  3671. c.EPSILON * Math.max(1, Math.abs(Ra), Math.abs(Ta)) && Math.abs(Ua - Qa) <= c.EPSILON * Math.max(1, Math.abs(Ua), Math.abs(Qa)) && Math.abs(I - P) <= c.EPSILON * Math.max(1, Math.abs(I), Math.abs(P))
  3672. } function oa(I) { const P = c.EPSILON, Z = I[0], Q = I[1], V = I[2], da = I[4], ea = I[5], pa = I[6], la = I[8], L = I[9]; I = I[10]; return Math.abs(1 - (Z * Z + da * da + la * la)) <= P && Math.abs(1 - (Q * Q + ea * ea + L * L)) <= P && Math.abs(1 - (V * V + pa * pa + I * I)) <= P } const ya = b.create(); b = Object.freeze(Object.defineProperty({
  3673. __proto__: null, copy: e, set: d, identity: l, transpose: r, invert: q, adjoint: k,
  3674. determinant: m, multiply: g, translate: p, scale: t, rotate: n, rotateX: u, rotateY: f, rotateZ: h, fromTranslation: v, fromScaling: y, fromRotation: B, fromXRotation: w, fromYRotation: x, fromZRotation: z, fromRotationTranslation: C, fromQuat2: A, getTranslation: D, getScaling: F, getRotation: J, fromRotationTranslationScale: M, fromRotationTranslationScaleOrigin: N, fromQuat: E, frustum: G, perspective: H, perspectiveFromFieldOfView: K, ortho: S, lookAt: fa, targetTo: ha, str: ba, frob: O, add: na, subtract: ra, multiplyScalar: Da, multiplyScalarAndAdd: Ka, exactEquals: sa,
  3675. equals: W, isOrthoNormal: oa, mul: g, sub: ra
  3676. }, Symbol.toStringTag, { value: "Module" })); a.add = na; a.adjoint = k; a.copy = e; a.determinant = m; a.equals = W; a.exactEquals = sa; a.frob = O; a.fromQuat = E; a.fromQuat2 = A; a.fromRotation = B; a.fromRotationTranslation = C; a.fromRotationTranslationScale = M; a.fromRotationTranslationScaleOrigin = N; a.fromScaling = y; a.fromTranslation = v; a.fromXRotation = w; a.fromYRotation = x; a.fromZRotation = z; a.frustum = G; a.getRotation = J; a.getScaling = F; a.getTranslation = D; a.identity = l; a.invert = q; a.isOrthoNormal = oa; a.lookAt =
  3677. fa; a.mat4 = b; a.mul = g; a.multiply = g; a.multiplyScalar = Da; a.multiplyScalarAndAdd = Ka; a.ortho = S; a.perspective = H; a.perspectiveFromFieldOfView = K; a.rotate = n; a.rotateX = u; a.rotateY = f; a.rotateZ = h; a.scale = t; a.set = d; a.str = ba; a.sub = ra; a.subtract = ra; a.targetTo = ha; a.translate = p; a.transpose = r
  3678. })
  3679. }, "esri/chunks/pe": function () {
  3680. define(["require", "exports", "./_rollupPluginBabelHelpers", "../assets", "../core/has"], function (a, b, c, e, d) {
  3681. function l() { return !!b._pe } function r() { return !!d("esri-wasm") } function q() {
  3682. return n ? n : n = (new Promise((f,
  3683. h) => a(["./pe-wasm"], f, h))).then(f => f.peWasm).then(({ default: f }) => f({ locateFile: h => e.getAssetUrl(`esri/geometry/support/${h}`) })).then(f => { k(f) })
  3684. } function k(f) {
  3685. function h(B, w, x) { B[w] = x(B[w]) } b._pe = f; b.PeDefs.init(); b.PeGTlistExtended.init(); b.PeNotationMgrs.init(); b.PeNotationUtm.init(); b.PePCSInfo.init(); b.PeGCSExtent = function (B) { function w() { return B.apply(this, arguments) || this } c._inheritsLoose(w, B); w.prototype.destroy = function () { b._pe.destroy(this) }; return w }(b._pe.PeGCSExtent); f = [b._pe.PeDatum,
  3686. b._pe.PeGeogcs, b._pe.PeGeogtran, b._pe.PeObject, b._pe.PeParameter, b._pe.PePrimem, b._pe.PeProjcs, b._pe.PeSpheroid, b._pe.PeUnit]; for (var v of f) h(v.prototype, "getName", B => function () { return B.call(this, Array(b.PeDefs.PE_NAME_MAX)) }); for (const B of [b._pe.PeGeogtran, b._pe.PeProjcs]) h(B.prototype, "getParameters", w => function () { const x = Array(b.PeDefs.PE_PARM_MAX); let z = w.call(this); for (let C = 0; C < x.length; C++) { const A = b._pe.getValue(z, "*"); x[C] = A ? b._pe.wrapPointer(A, b._pe.PeParameter) : null; z += Int32Array.BYTES_PER_ELEMENT } return x });
  3687. h(b._pe.PeHorizon.prototype, "getCoord", B => function () { const w = this.getSize(); if (!w) return null; const x = [], z = B.call(this); t(x, w, z); return x }); h(b._pe.PeGTlistExtendedEntry.prototype, "getEntries", B => { const w = b._pe._pe_getPeGTlistExtendedGTsSize(); return function () { let x = null; var z = B.call(this); if (!b._pe.compare(z, b._pe.NULL)) { x = [z]; const C = this.getSteps(); if (1 < C) { z = b._pe.getPointer(z); for (let A = 1; A < C; A++)x.push(b._pe.wrapPointer(z + w * A, b._pe.PeGTlistExtendedGTs)) } } return x } }); const y = b._pe._pe_getPeHorizonSize();
  3688. v = B => function () { let w = this._cache; w || (this._cache = w = new Map); if (w.has(B)) return w.get(B); let x = null; var z = B.call(this); if (!b._pe.compare(z, b._pe.NULL)) { x = [z]; const C = z.getNump(); if (1 < C) { z = b._pe.getPointer(z); for (let A = 1; A < C; A++)x.push(b._pe.wrapPointer(z + y * A, b._pe.PeHorizon)) } } w.set(B, x); return x }; h(b._pe.PeProjcs.prototype, "horizonGcsGenerate", v); h(b._pe.PeProjcs.prototype, "horizonPcsGenerate", v); b._pe.PeObject.prototype.toString = function (B = b.PeDefs.PE_STR_OPTS_NONE) {
  3689. b._pe.ensureCache.prepare();
  3690. const w = b._pe.getPointer(this), x = b._pe.ensureInt8(Array(b.PeDefs.PE_BUFFER_MAX)); return b._pe.UTF8ToString(b._pe._pe_object_to_string_ext(w, B, x))
  3691. }
  3692. } function m(f) { if (f) { var h = b._pe.getClass(f); h && (h = b._pe.getCache(h)) && (f = b._pe.getPointer(f)) && delete h[f] } } function g(f, h) { const v = []; h = Array(h); for (let y = 0; y < f; y++)v.push(b._pe.ensureInt8(h)); return v } function p(f) { let h; Array.isArray(f[0]) ? (h = [], f.forEach(v => { h.push(v[0], v[1]) })) : h = f; return h } function t(f, h, v, y = !1) {
  3693. if (y) for (y = 0; y < 2 * h; y++)f[y] = b._pe.getValue(v +
  3694. y * Float64Array.BYTES_PER_ELEMENT, "double"); else { y = 0 === f.length; for (let B = 0; B < h; B++)y && (f[B] = Array(2)), f[B][0] = b._pe.getValue(v, "double"), f[B][1] = b._pe.getValue(v + Float64Array.BYTES_PER_ELEMENT, "double"), v += 2 * Float64Array.BYTES_PER_ELEMENT }
  3695. } let n; b._pe = null; b.PeCSTransformations = void 0; (function (f) {
  3696. function h(B, w, x) { b._pe.ensureCache.prepare(); var z = p(x); const C = x === z; z = b._pe.ensureFloat64(z); (B = b._pe._pe_geog_to_proj(b._pe.getPointer(B), w, z)) && t(x, w, z, C); return B } function v(B, w, x) {
  3697. return y(B, w, x,
  3698. 0)
  3699. } function y(B, w, x, z) { b._pe.ensureCache.prepare(); var C = p(x); const A = x === C; C = b._pe.ensureFloat64(C); (B = b._pe._pe_proj_to_geog_center(b._pe.getPointer(B), w, C, z)) && t(x, w, C, A); return B } f.geogToProj = h; f.projGeog = function (B, w, x, z) { switch (z) { case b.PeDefs.PE_TRANSFORM_P_TO_G: return v(B, w, x); case b.PeDefs.PE_TRANSFORM_G_TO_P: return h(B, w, x) }return 0 }; f.projToGeog = v; f.projToGeogCenter = y
  3700. })(b.PeCSTransformations || (b.PeCSTransformations = {})); b.PeDefs = void 0; (function (f) {
  3701. f.init = function () {
  3702. f.PE_BUFFER_MAX = b._pe.PeDefs.prototype.PE_BUFFER_MAX;
  3703. f.PE_NAME_MAX = b._pe.PeDefs.prototype.PE_NAME_MAX; f.PE_MGRS_MAX = b._pe.PeDefs.prototype.PE_MGRS_MAX; f.PE_USNG_MAX = b._pe.PeDefs.prototype.PE_USNG_MAX; f.PE_DD_MAX = b._pe.PeDefs.prototype.PE_DD_MAX; f.PE_DDM_MAX = b._pe.PeDefs.prototype.PE_DDM_MAX; f.PE_DMS_MAX = b._pe.PeDefs.prototype.PE_DMS_MAX; f.PE_UTM_MAX = b._pe.PeDefs.prototype.PE_UTM_MAX; f.PE_PARM_MAX = b._pe.PeDefs.prototype.PE_PARM_MAX; f.PE_TYPE_NONE = b._pe.PeDefs.prototype.PE_TYPE_NONE; f.PE_TYPE_GEOGCS = b._pe.PeDefs.prototype.PE_TYPE_GEOGCS; f.PE_TYPE_PROJCS =
  3704. b._pe.PeDefs.prototype.PE_TYPE_PROJCS; f.PE_TYPE_GEOGTRAN = b._pe.PeDefs.prototype.PE_TYPE_GEOGTRAN; f.PE_TYPE_COORDSYS = b._pe.PeDefs.prototype.PE_TYPE_COORDSYS; f.PE_TYPE_UNIT = b._pe.PeDefs.prototype.PE_TYPE_UNIT; f.PE_TYPE_LINUNIT = b._pe.PeDefs.prototype.PE_TYPE_LINUNIT; f.PE_STR_OPTS_NONE = b._pe.PeDefs.prototype.PE_STR_OPTS_NONE; f.PE_STR_AUTH_NONE = b._pe.PeDefs.prototype.PE_STR_AUTH_NONE; f.PE_STR_AUTH_TOP = b._pe.PeDefs.prototype.PE_STR_AUTH_TOP; f.PE_STR_NAME_CANON = b._pe.PeDefs.prototype.PE_STR_NAME_CANON; f.PE_PARM_X0 =
  3705. b._pe.PeDefs.prototype.PE_PARM_X0; f.PE_PARM_ND = b._pe.PeDefs.prototype.PE_PARM_ND; f.PE_TRANSFORM_1_TO_2 = b._pe.PeDefs.prototype.PE_TRANSFORM_1_TO_2; f.PE_TRANSFORM_2_TO_1 = b._pe.PeDefs.prototype.PE_TRANSFORM_2_TO_1; f.PE_TRANSFORM_P_TO_G = b._pe.PeDefs.prototype.PE_TRANSFORM_P_TO_G; f.PE_TRANSFORM_G_TO_P = b._pe.PeDefs.prototype.PE_TRANSFORM_G_TO_P; f.PE_HORIZON_RECT = b._pe.PeDefs.prototype.PE_HORIZON_RECT; f.PE_HORIZON_POLY = b._pe.PeDefs.prototype.PE_HORIZON_POLY; f.PE_HORIZON_LINE = b._pe.PeDefs.prototype.PE_HORIZON_LINE;
  3706. f.PE_HORIZON_DELTA = b._pe.PeDefs.prototype.PE_HORIZON_DELTA
  3707. }
  3708. })(b.PeDefs || (b.PeDefs = {})); b.PeFactory = void 0; (function (f) {
  3709. function h(w, x) { let z = null, C = v[w]; C || (C = {}, v[w] = C); C.hasOwnProperty(String(x)) ? z = C[x] : (w = b._pe.PeFactory.prototype.factoryByType(w, x), b._pe.compare(w, b._pe.NULL) || (z = w, C[x] = z)); return z = B(z) } const v = {}, y = {}, B = w => {
  3710. if (w) {
  3711. const x = w.getType(); switch (x) {
  3712. case b.PeDefs.PE_TYPE_GEOGCS: w = b._pe.castObject(w, b._pe.PeGeogcs); break; case b.PeDefs.PE_TYPE_PROJCS: w = b._pe.castObject(w, b._pe.PeProjcs);
  3713. break; case b.PeDefs.PE_TYPE_GEOGTRAN: w = b._pe.castObject(w, b._pe.PeGeogtran); break; default: x & b.PeDefs.PE_TYPE_UNIT && (w = b._pe.castObject(w, b._pe.PeUnit))
  3714. }
  3715. } return w
  3716. }; f.initialize = function () { b._pe.PeFactory.prototype.initialize(null) }; f.coordsys = function (w) { return h(b.PeDefs.PE_TYPE_COORDSYS, w) }; f.factoryByType = h; f.fromString = function (w, x) { let z = null, C = y[w]; C || (C = {}, y[w] = C); C.hasOwnProperty(x) ? z = C[x] : (w = b._pe.PeFactory.prototype.fromString(w, x), b._pe.compare(w, b._pe.NULL) || (z = w, C[x] = z)); return z = B(z) };
  3717. f.geogcs = function (w) { return h(b.PeDefs.PE_TYPE_GEOGCS, w) }; f.geogtran = function (w) { return h(b.PeDefs.PE_TYPE_GEOGTRAN, w) }; f.getCode = function (w) { return b._pe.PeFactory.prototype.getCode(w) }; f.projcs = function (w) { return h(b.PeDefs.PE_TYPE_PROJCS, w) }; f.unit = function (w) { return h(b.PeDefs.PE_TYPE_UNIT, w) }
  3718. })(b.PeFactory || (b.PeFactory = {})); b.PeGCSExtent = null; b.PeGTlistExtended = void 0; (function (f) {
  3719. let h; f.init = function () { f.PE_GTLIST_OPTS_COMMON = b._pe.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON; h = b._pe._pe_getPeGTlistExtendedEntrySize() };
  3720. f.getGTlist = function (v, y, B, w, x, z) { let C = null; const A = new b._pe.PeInteger(z); try { const D = b._pe.PeGTlistExtended.prototype.getGTlist(v, y, B, w, x, A); if (z = A.val) if (C = [D], 1 < z) { const F = b._pe.getPointer(D); for (v = 1; v < z; v++)C.push(b._pe.wrapPointer(F + h * v, b._pe.PeGTlistExtendedEntry)) } } finally { b._pe.destroy(A) } return C }
  3721. })(b.PeGTlistExtended || (b.PeGTlistExtended = {})); b.PeGTlistExtendedEntry = void 0; (function (f) {
  3722. f.destroy = function (h) {
  3723. if (h && h.length) {
  3724. for (const v of h) m(v), v.getEntries().forEach(y => {
  3725. m(y); y = y.getGeogtran();
  3726. m(y); y.getParameters().forEach(m);[y.getGeogcs1(), y.getGeogcs2()].forEach(B => { m(B); const w = B.getDatum(); m(w); m(w.getSpheroid()); m(B.getPrimem()); m(B.getUnit()) })
  3727. }); b._pe.PeGTlistExtendedEntry.prototype.Delete(h[0])
  3728. }
  3729. }
  3730. })(b.PeGTlistExtendedEntry || (b.PeGTlistExtendedEntry = {})); b.PeGTTransformations = void 0; (function (f) {
  3731. f.geogToGeog = function (h, v, y, B, w) {
  3732. b._pe.ensureCache.prepare(); var x = p(y); const z = y === x; x = b._pe.ensureFloat64(x); let C = 0; B && (C = b._pe.ensureFloat64(B)); (h = b._pe._pe_geog_to_geog(b._pe.getPointer(h),
  3733. v, x, C, w)) && t(y, v, x, z); return h
  3734. }
  3735. })(b.PeGTTransformations || (b.PeGTTransformations = {})); b.PeNotationDms = void 0; (function (f) {
  3736. const h = (y, B, w, x, z, C) => {
  3737. b._pe.ensureCache.prepare(); switch (y) { case "dd": var A = b._pe._pe_geog_to_dd; var D = b.PeDefs.PE_DD_MAX; break; case "ddm": A = b._pe._pe_geog_to_ddm; D = b.PeDefs.PE_DDM_MAX; break; case "dms": A = b._pe._pe_geog_to_dms, D = b.PeDefs.PE_DMS_MAX }y = 0; B && (y = b._pe.getPointer(B)); B = p(x); B = b._pe.ensureFloat64(B); D = g(w, D); x = b._pe.ensureInt32(D); if (z = A(y, w, B, z, x)) for (A = 0; A < w; A++)C[A] =
  3738. b._pe.UTF8ToString(D[A]); return z
  3739. }, v = (y, B, w, x, z) => { b._pe.ensureCache.prepare(); switch (y) { case "dd": var C = b._pe._pe_dd_to_geog; break; case "ddm": C = b._pe._pe_ddm_to_geog; break; case "dms": C = b._pe._pe_dms_to_geog }y = 0; B && (y = b._pe.getPointer(B)); B = x.map(A => b._pe.ensureString(A)); x = b._pe.ensureInt32(B); B = b._pe.ensureFloat64(Array(2 * w)); (C = C(y, w, x, B)) && t(z, w, B); return C }; f.geogToDms = function (y, B, w, x, z) { return h("dms", y, B, w, x, z) }; f.dmsToGeog = function (y, B, w, x) { return v("dms", y, B, w, x) }; f.geogToDdm = function (y,
  3740. B, w, x, z) { return h("ddm", y, B, w, x, z) }; f.ddmToGeog = function (y, B, w, x) { return v("ddm", y, B, w, x) }; f.geogToDd = function (y, B, w, x, z) { return h("dd", y, B, w, x, z) }; f.ddToGeog = function (y, B, w, x) { return v("dd", y, B, w, x) }
  3741. })(b.PeNotationDms || (b.PeNotationDms = {})); b.PeNotationMgrs = void 0; (function (f) {
  3742. f.init = function () {
  3743. f.PE_MGRS_STYLE_NEW = b._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW; f.PE_MGRS_STYLE_OLD = b._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD; f.PE_MGRS_STYLE_AUTO = b._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO;
  3744. f.PE_MGRS_180_ZONE_1_PLUS = b._pe.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS; f.PE_MGRS_ADD_SPACES = b._pe.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES
  3745. }; f.geogToMgrsExtended = function (h, v, y, B, w, x, z) { b._pe.ensureCache.prepare(); let C = 0; h && (C = b._pe.getPointer(h)); h = p(y); y = b._pe.ensureFloat64(h); h = g(v, b.PeDefs.PE_MGRS_MAX); const A = b._pe.ensureInt32(h); if (B = b._pe._pe_geog_to_mgrs_extended(C, v, y, B, w, x, A)) for (w = 0; w < v; w++)z[w] = b._pe.UTF8ToString(h[w]); return B }; f.mgrsToGeogExtended = function (h, v, y, B, w) {
  3746. b._pe.ensureCache.prepare();
  3747. let x = 0; h && (x = b._pe.getPointer(h)); h = y.map(z => b._pe.ensureString(z)); y = b._pe.ensureInt32(h); h = b._pe.ensureFloat64(Array(2 * v)); (B = b._pe._pe_mgrs_to_geog_extended(x, v, y, B, h)) && t(w, v, h); return B
  3748. }
  3749. })(b.PeNotationMgrs || (b.PeNotationMgrs = {})); b.PeNotationUsng = void 0; (function (f) {
  3750. f.geogToUsng = function (h, v, y, B, w, x, z) {
  3751. b._pe.ensureCache.prepare(); let C = 0; h && (C = b._pe.getPointer(h)); h = p(y); y = b._pe.ensureFloat64(h); h = g(v, b.PeDefs.PE_MGRS_MAX); const A = b._pe.ensureInt32(h); if (B = b._pe._pe_geog_to_usng(C, v, y, B, w, x,
  3752. A)) for (w = 0; w < v; w++)z[w] = b._pe.UTF8ToString(h[w]); return B
  3753. }; f.usngToGeog = function (h, v, y, B) { b._pe.ensureCache.prepare(); var w = 0; h && (w = b._pe.getPointer(h)); h = y.map(x => b._pe.ensureString(x)); y = b._pe.ensureInt32(h); h = b._pe.ensureFloat64(Array(2 * v)); (w = b._pe._pe_usng_to_geog(w, v, y, h)) && t(B, v, h); return w }
  3754. })(b.PeNotationUsng || (b.PeNotationUsng = {})); b.PeNotationUtm = void 0; (function (f) {
  3755. f.init = function () {
  3756. f.PE_UTM_OPTS_NONE = b._pe.PeNotationUtm.prototype.PE_UTM_OPTS_NONE; f.PE_UTM_OPTS_ADD_SPACES = b._pe.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES;
  3757. f.PE_UTM_OPTS_NS = b._pe.PeNotationUtm.prototype.PE_UTM_OPTS_NS
  3758. }; f.geogToUtm = function (h, v, y, B, w) { b._pe.ensureCache.prepare(); var x = 0; h && (x = b._pe.getPointer(h)); h = p(y); y = b._pe.ensureFloat64(h); h = g(v, b.PeDefs.PE_UTM_MAX); const z = b._pe.ensureInt32(h); if (B = b._pe._pe_geog_to_utm(x, v, y, B, z)) for (x = 0; x < v; x++)w[x] = b._pe.UTF8ToString(h[x]); return B }; f.utmToGeog = function (h, v, y, B, w) {
  3759. b._pe.ensureCache.prepare(); let x = 0; h && (x = b._pe.getPointer(h)); h = y.map(z => b._pe.ensureString(z)); y = b._pe.ensureInt32(h); h = b._pe.ensureFloat64(Array(2 *
  3760. v)); (B = b._pe._pe_utm_to_geog(x, v, y, B, h)) && t(w, v, h); return B
  3761. }
  3762. })(b.PeNotationUtm || (b.PeNotationUtm = {})); b.PePCSInfo = void 0; (function (f) {
  3763. const h = new Map; f.init = function () { f.PE_PCSINFO_OPTION_NONE = b._pe.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE; f.PE_PCSINFO_OPTION_DOMAIN = b._pe.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN; f.PE_POLE_OUTSIDE_BOUNDARY = b._pe.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY; f.PE_POLE_POINT = b._pe.PePCSInfo.prototype.PE_POLE_POINT }; f.generate = function (v, y = f.PE_PCSINFO_OPTION_DOMAIN) {
  3764. let B,
  3765. w; h.has(v) && (w = h.get(v), w[y] && (B = w[y])); B || (B = b._pe.PePCSInfo.prototype.generate(v, y), w || (w = [], h.set(v, w)), w[y] = B); return B
  3766. }
  3767. })(b.PePCSInfo || (b.PePCSInfo = {})); b.PeVersion = void 0; (function (f) { f.versionString = function () { return b._pe.PeVersion.prototype.version_string() } })(b.PeVersion || (b.PeVersion = {})); const u = Object.freeze(Object.defineProperty({
  3768. __proto__: null, get _pe() { return b._pe }, isLoaded: l, isSupported: r, load: q, get PeCSTransformations() { return b.PeCSTransformations }, get PeDefs() { return b.PeDefs },
  3769. get PeFactory() { return b.PeFactory }, get PeGCSExtent() { return b.PeGCSExtent }, get PeGTlistExtended() { return b.PeGTlistExtended }, get PeGTlistExtendedEntry() { return b.PeGTlistExtendedEntry }, get PeGTTransformations() { return b.PeGTTransformations }, get PeNotationDms() { return b.PeNotationDms }, get PeNotationMgrs() { return b.PeNotationMgrs }, get PeNotationUsng() { return b.PeNotationUsng }, get PeNotationUtm() { return b.PeNotationUtm }, get PePCSInfo() { return b.PePCSInfo }, get PeVersion() { return b.PeVersion }, _init: k
  3770. },
  3771. Symbol.toStringTag, { value: "Module" })); b._init = k; b.isLoaded = l; b.isSupported = r; b.load = q; b.pe = u
  3772. })
  3773. }, "esri/geometry/support/aaBoundingRect": function () {
  3774. define(["exports", "../../core/has", "../../core/mathUtils", "../../core/maybe", "../Extent"], function (a, b, c, e, d) {
  3775. function l(n = t) { return [n[0], n[1], n[2], n[3]] } function r(n, u) { n !== u && (n[0] = u[0], n[1] = u[1], n[2] = u[2], n[3] = u[3]); return n } function q(n) { return e.isNone(n) || n[0] >= n[2] ? 0 : n[2] - n[0] } function k(n) { return n[1] >= n[3] ? 0 : n[3] - n[1] } function m(n, u, f) {
  3776. return u >=
  3777. n[0] && f >= n[1] && u <= n[2] && f <= n[3]
  3778. } function g(n) { return null != n && 4 === n.length } const p = [Infinity, Infinity, -Infinity, -Infinity], t = [0, 0, 0, 0]; a.NEGATIVE_INFINITY = p; a.POSITIVE_INFINITY = [-Infinity, -Infinity, Infinity, Infinity]; a.UNIT = [0, 0, 1, 1]; a.ZERO = t; a.allFinite = function (n) { for (let u = 0; 4 > u; u++)if (!isFinite(n[u])) return !1; return !0 }; a.area = function (n) { return q(n) * k(n) }; a.center = function (n, u = [0, 0]) { u[0] = (n[0] + n[2]) / 2; u[1] = (n[1] + n[3]) / 2; return u }; a.clone = function (n) { return [n[0], n[1], n[2], n[3]] }; a.contains = function (n,
  3779. u) { return u[0] >= n[0] && u[2] <= n[2] && u[1] >= n[1] && u[3] <= n[3] }; a.containsPoint = function (n, u) { return m(n, u[0], u[1]) }; a.containsPointObject = function (n, u) { return m(n, u.x, u.y) }; a.containsPointWithMargin = function (n, u, f) { return u[0] >= n[0] - f && u[1] >= n[1] - f && u[0] <= n[2] + f && u[1] <= n[3] + f }; a.containsXY = m; a.containsXYWithMargin = function (n, u, f, h) { return u >= n[0] - h && f >= n[1] - h && u <= n[2] + h && f <= n[3] + h }; a.copy = r; a.create = l; a.distance = function (n, u) {
  3780. const f = (n[1] + n[3]) / 2, h = Math.max(Math.abs(u[0] - (n[0] + n[2]) / 2) - q(n) / 2, 0); n = Math.max(Math.abs(u[1] -
  3781. f) - k(n) / 2, 0); return Math.sqrt(h * h + n * n)
  3782. }; a.empty = function (n) { return n ? r(n, p) : l(p) }; a.equals = function (n, u) { return g(n) && g(u) ? n[0] === u[0] && n[1] === u[1] && n[2] === u[2] && n[3] === u[3] : n === u }; a.expand = function (n, u, f) {
  3783. if (e.isNone(u)) r(f, n); else if ("length" in u) if (g(u)) f[0] = Math.min(n[0], u[0]), f[1] = Math.min(n[1], u[1]), f[2] = Math.max(n[2], u[2]), f[3] = Math.max(n[3], u[3]); else { if (2 === u.length || 3 === u.length) f[0] = Math.min(n[0], u[0]), f[1] = Math.min(n[1], u[1]), f[2] = Math.max(n[2], u[0]), f[3] = Math.max(n[3], u[1]) } else switch (u.type) {
  3784. case "extent": f[0] =
  3785. Math.min(n[0], u.xmin); f[1] = Math.min(n[1], u.ymin); f[2] = Math.max(n[2], u.xmax); f[3] = Math.max(n[3], u.ymax); break; case "point": f[0] = Math.min(n[0], u.x), f[1] = Math.min(n[1], u.y), f[2] = Math.max(n[2], u.x), f[3] = Math.max(n[3], u.y)
  3786. }
  3787. }; a.expandPointInPlace = function (n, u) { u[0] < n[0] && (n[0] = u[0]); u[0] > n[2] && (n[2] = u[0]); u[1] < n[1] && (n[1] = u[1]); u[1] > n[3] && (n[3] = u[1]) }; a.expandWithNestedArray = function (n, u, f = n) {
  3788. const h = u.length; let v = n[0], y = n[1], B = n[2]; n = n[3]; for (let w = 0; w < h; w++) {
  3789. const x = u[w]; v = Math.min(v, x[0]); y = Math.min(y,
  3790. x[1]); B = Math.max(B, x[0]); n = Math.max(n, x[1])
  3791. } f[0] = v; f[1] = y; f[2] = B; f[3] = n; return f
  3792. }; a.fromExtent = function (n, u = l()) { u[0] = n.xmin; u[1] = n.ymin; u[2] = n.xmax; u[3] = n.ymax; return u }; a.fromValues = function (n, u, f, h, v = l()) { v[0] = n; v[1] = u; v[2] = f; v[3] = h; return v }; a.height = k; a.intersection = function (n, u, f) { if (e.isNone(u)) return r(f, n); const h = u[0], v = u[1], y = u[2]; u = u[3]; f[0] = c.clamp(n[0], h, y); f[1] = c.clamp(n[1], v, u); f[2] = c.clamp(n[2], h, y); f[3] = c.clamp(n[3], v, u); return f }; a.intersects = function (n, u) {
  3793. return Math.max(u[0],
  3794. n[0]) <= Math.min(u[2], n[2]) && Math.max(u[1], n[1]) <= Math.min(u[3], n[3])
  3795. }; a.intersectsSegment = function (n, u, f) { const h = n[0], v = n[1], y = n[2]; n = n[3]; const { x: B, y: w } = u, { x, y: z } = f; var C = (D, F) => 0 > (z - w) * D + (B - x) * F + (x * w - B * z); u = C(h, n); f = C(y, n); const A = C(y, v); C = C(h, v); return u === f && f === A && A === C && C === u || B < h && x < h || B > y && x > y || w > n && z > n || w < v && z < v ? !1 : !0 }; a.intersectsSphere = function (n, u) {
  3796. const f = u[3]; var h = Math.abs(u[0] - .5 * (n[0] + n[2])); const v = .5 * (n[2] - n[0]); if (h > f + v) return !1; var y = .5 * (n[3] - n[1]); n = Math.abs(u[1] - .5 * (n[1] +
  3797. n[3])); if (n > f + y) return !1; if (h < v || n < y) return !0; h -= v; y = n - y; return h * h + y * y <= f * f
  3798. }; a.is = g; a.isPoint = function (n) { return (0 === q(n) || !isFinite(n[0])) && (0 === k(n) || !isFinite(n[1])) }; a.offset = function (n, u, f, h = n) { h[0] = n[0] + u; h[1] = n[1] + f; h[2] = n[2] + u; h[3] = n[3] + f; return h }; a.pad = function (n, u, f = n) { f[0] = n[0] - u; f[1] = n[1] - u; f[2] = n[2] + u; f[3] = n[3] + u; return f }; a.setMax = function (n, u, f = n) { f[2] = u[0]; f[3] = u[1]; f !== n && (f[0] = n[0], f[1] = n[1]); return n }; a.setMin = function (n, u, f = n) {
  3799. f[0] = u[0]; f[1] = u[1]; f !== n && (f[2] = n[2], f[3] = n[3]);
  3800. return f
  3801. }; a.size = function (n, u) { u[0] = n[2] - n[0]; u[1] = n[3] - n[1] }; a.toExtent = function (n, u) { return new d({ xmin: n[0], ymin: n[1], xmax: n[2], ymax: n[3], spatialReference: u }) }; a.width = q; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3802. })
  3803. }, "esri/geometry/support/geodesicConstants": function () {
  3804. define(["exports", "./Ellipsoid"], function (a, b) {
  3805. const c = Math.PI / 180; var e = b.earth.radius; const d = b.earth.eccentricitySquared; e = {
  3806. a1: e * d, a2: e * d * e * d, a3: e * d * d / 2, a4: e * d * e * d * 2.5, a5: e * d + e * d * d /
  3807. 2, a6: 1 - d
  3808. }; b = {
  3809. 4267: { a: 6378206.4, f: 1 / 294.9786982 }, 4269: { a: 6378137, f: 1 / 298.257222101 }, 4326: { a: b.earth.radius, f: b.earth.flattening }, 104900: { a: 2439700, f: 0 }, 104901: { a: 6051E3, f: 0 }, 104902: { a: 6051800, f: 0 }, 104903: { a: b.moon.radius, f: b.moon.flattening }, 104904: { a: 3393400, f: .005207166853303471 }, 104905: { a: b.mars.radius, f: b.mars.flattening }, 104906: { a: 6200, f: 0 }, 104907: { a: 11100, f: 0 }, 104908: { a: 71492E3, f: .06487439154031222 }, 104909: { a: 8200, f: 0 }, 104910: { a: 83500, f: 0 }, 104911: { a: 1E4, f: 0 }, 104912: { a: 2409300, f: 0 }, 104913: {
  3810. a: 15E3,
  3811. f: 0
  3812. }, 104914: { a: 4E4, f: 0 }, 104915: { a: 1562090, f: 0 }, 104916: { a: 2632345, f: 0 }, 104917: { a: 85E3, f: 0 }, 104918: { a: 1821460, f: 0 }, 104919: { a: 5E3, f: 0 }, 104920: { a: 12E3, f: 0 }, 104921: { a: 3E4, f: 3 }, 104922: { a: 18E3, f: 0 }, 104923: { a: 14E3, f: 0 }, 104924: { a: 49300, f: 0 }, 104925: { a: 60268E3, f: .09796243445941462 }, 104926: { a: 16E3, f: 0 }, 104927: { a: 9500, f: 0 }, 104928: { a: 56E4, f: 0 }, 104929: { a: 249400, f: 0 }, 104930: { a: 59500, f: 0 }, 104931: { a: 16E3, f: 0 }, 104932: { a: 133E3, f: 0 }, 104933: { a: 718E3, f: 0 }, 104934: { a: 888E3, f: 0 }, 104935: { a: 1986300, f: 0 }, 104936: { a: 1E4, f: 0 }, 104937: {
  3813. a: 41900,
  3814. f: 0
  3815. }, 104938: { a: 11E4, f: 0 }, 104939: { a: 50100, f: 0 }, 104940: { a: 764E3, f: 0 }, 104941: { a: 11E3, f: 0 }, 104942: { a: 529800, f: 0 }, 104943: { a: 2575E3, f: 0 }, 104944: { a: 25559E3, f: .022927344575296365 }, 104945: { a: 578900, f: 0 }, 104946: { a: 33E3, f: 0 }, 104947: { a: 21E3, f: 0 }, 104948: { a: 13E3, f: 0 }, 104949: { a: 31E3, f: 0 }, 104950: { a: 27E3, f: 0 }, 104951: { a: 42E3, f: 0 }, 104952: { a: 235800, f: 0 }, 104953: { a: 761400, f: 0 }, 104954: { a: 15E3, f: 0 }, 104955: { a: 54E3, f: 0 }, 104956: { a: 77E3, f: 0 }, 104957: { a: 27E3, f: 0 }, 104958: { a: 788900, f: 0 }, 104959: { a: 584700, f: 0 }, 104960: { a: 24764E3, f: .01708124697141011 },
  3816. 104961: { a: 74E3, f: 0 }, 104962: { a: 79E3, f: 0 }, 104963: { a: 104E3, f: .14423076923076922 }, 104964: { a: 29E3, f: 0 }, 104965: { a: 17E4, f: 0 }, 104966: { a: 208E3, f: 0 }, 104967: { a: 4E4, f: 0 }, 104968: { a: 1352600, f: 0 }, 104969: { a: 1195E3, f: 0 }, 104970: { a: 593E3, f: 0 }, 104971: { a: b.mars.radius, f: 0 }, 104972: { a: 47E4, f: 0 }, 104973: { a: 255E3, f: 0 }, 104974: { a: 2439400, f: 0 }
  3817. }; a.WKT_SPHEROID_REGEX = /SPHEROID\[([^\]]+)]/i; a.earthEllipsoidConstants = e; a.spheroids = b; a.toRadians = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3818. })
  3819. },
  3820. "esri/geometry/support/GeographicTransformation": function () {
  3821. define(["./GeographicTransformationStep"], function (a) {
  3822. return function () {
  3823. function b(e) { this.steps = []; this._cached_projection = {}; this._chain = ""; this._gtlistentry = null; if (e && e.steps) for (const d of e.steps) d instanceof a ? this.steps.push(d) : this.steps.push(new a({ wkid: d.wkid, wkt: d.wkt, isInverse: d.isInverse })) } b.cacheKey = function (e, d) {
  3824. return [void 0 !== e.wkid && null !== e.wkid ? e.wkid.toString() : "-1", void 0 !== e.wkt && null !== e.wkt ? e.wkt.toString() : "",
  3825. void 0 !== d.wkid && null !== d.wkid ? d.wkid.toString() : "-1", void 0 !== d.wkt && null !== d.wkt ? d.wkt.toString() : ""].join()
  3826. }; b.fromGE = function (e) { const d = new b; let l = ""; for (const r of e.steps) e = a.fromGE(r), d.steps.push(e), l += e.uid.toString() + ","; d._cached_projection = {}; d._gtlistentry = null; d._chain = l; return d }; var c = b.prototype; c.getInverse = function () { const e = new b; e.steps = []; for (let d = this.steps.length - 1; 0 <= d; d--)e.steps.push(this.steps[d].getInverse()); return e }; c.getGTListEntry = function () {
  3827. let e = ""; for (const d of this.steps) e +=
  3828. d.uid.toString() + ","; e !== this._chain && (this._gtlistentry = null, this._cached_projection = {}, this._chain = e); return this._gtlistentry
  3829. }; c.assignCachedGe = function (e, d, l) { this._cached_projection[b.cacheKey(e, d)] = l }; c.getCachedGeTransformation = function (e, d) { let l = ""; for (const r of this.steps) l += r.uid.toString() + ","; l !== this._chain && (this._gtlistentry = null, this._cached_projection = {}, this._chain = l); e = this._cached_projection[b.cacheKey(e, d)]; return void 0 === e ? null : e }; return b
  3830. }()
  3831. })
  3832. }, "esri/geometry/support/GeographicTransformationStep": function () {
  3833. define(["../../chunks/_rollupPluginBabelHelpers"],
  3834. function (a) {
  3835. let b = 0; return function () {
  3836. function c(e = null) { this.uid = b++; e ? (this._wkt = void 0 !== e.wkt ? e.wkt : null, this._wkid = void 0 !== e.wkid ? e.wkid : -1, this._isInverse = void 0 !== e.isInverse ? !0 === e.isInverse : !1) : (this._wkt = null, this._wkid = -1, this._isInverse = !1) } c.fromGE = function (e) { const d = new c; d._wkt = e.wkt; d._wkid = e.wkid; d._isInverse = e.isInverse; return d }; c.prototype.getInverse = function () { const e = new c; e._wkt = this.wkt; e._wkid = this._wkid; e._isInverse = !this.isInverse; return e }; a._createClass(c, [{
  3837. key: "wkt",
  3838. get: function () { return this._wkt }, set: function (e) { this._wkt = e; this.uid = b++ }
  3839. }, { key: "wkid", get: function () { return this._wkid }, set: function (e) { this._wkid = e; this.uid = b++ } }, { key: "isInverse", get: function () { return this._isInverse }, set: function (e) { this._isInverse = e; this.uid = b++ } }]); return c
  3840. }()
  3841. })
  3842. }, "esri/geometry/support/zscale": function () {
  3843. define(["exports", "../../core/maybe", "../../core/unitUtils", "./spatialReferenceUtils"], function (a, b, c, e) {
  3844. a.getGeometryZScaler = function (d, l, r) {
  3845. if (b.isNone(l) || b.isNone(r) ||
  3846. r.vcsWkid || e.equals(l, r)) return null; l = c.getMetersPerVerticalUnitForSR(l); r = c.getMetersPerVerticalUnitForSR(r); const q = l / r; if (1 === q) return null; switch (d) {
  3847. case "point": case "esriGeometryPoint": return k => { k && null != k.z && (k.z *= q) }; case "polyline": case "esriGeometryPolyline": return k => { if (k) for (const m of k.paths) for (const g of m) 2 < g.length && (g[2] *= q) }; case "polygon": case "esriGeometryPolygon": return k => { if (k) for (const m of k.rings) for (const g of m) 2 < g.length && (g[2] *= q) }; case "multipoint": case "esriGeometryMultipoint": return k => { if (k) for (const m of k.points) 2 < m.length && (m[2] *= q) }; case "extent": case "esriGeometryExtent": return k => { k && null != k.zmin && null != k.zmax && (k.zmin *= q, k.zmax *= q) }; default: return null
  3848. }
  3849. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  3850. })
  3851. }, "esri/layers/FeatureLayer": function () {
  3852. define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../PopupTemplate ../renderers/ClassBreaksRenderer ../renderers/DictionaryRenderer ../renderers/DotDensityRenderer ../renderers/HeatmapRenderer ../renderers/PieChartRenderer ../renderers/Renderer ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/support/jsonUtils ../renderers/support/types ../request ../symbols ../core/Clonable ../core/Collection ../core/Error ../core/Handles ../core/has ../core/jsonMap ../core/lang ../core/Logger ../core/maybe ../core/MultiOriginJSONSupport ../core/object ../core/promiseUtils ../core/sql ../core/urlUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/extensions/serializableProperty/reader ../form/FormTemplate ../geometry/Extent ../geometry/HeightModelInfo ../geometry/SpatialReference ./Layer ./graphics/sources/MemorySource ./mixins/APIKeyMixin ./mixins/ArcGISService ./mixins/BlendLayer ./mixins/CustomParametersMixin ./mixins/FeatureEffectLayer ./mixins/OperationalLayer ./mixins/OrderedLayer ./mixins/PortalLayer ./mixins/RefreshableLayer ./mixins/ScaleRangeLayer ./mixins/TemporalLayer ./support/arcgisLayerUrl ./support/commonProperties ./support/FeatureIndex ./support/featureReductionUtils ./support/FeatureTemplate ./support/FeatureType ./support/fieldProperties ./support/fieldUtils ./support/GeometryFieldsInfo ./support/LabelClass ./support/labelingInfo ./support/LayerFloorInfo ./support/Relationship ./support/TimeInfo ./support/versionUtils ./support/source/DataLayerSource ../renderers/support/styleUtils ../rest/support/AttachmentQuery ../rest/support/FeatureSet ../rest/support/Query ../rest/support/RelationshipQuery ../rest/support/TopFeaturesQuery ../support/popupUtils ../webdoc/support/opacityUtils".split(" "),
  3853. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F, J, M, N, E, G, H, K, S, fa, ha, ba, O, na, ra, Da, Ka, sa, W, oa, ya, I, P, Z, Q, V, da, ea, pa, la, L, R, X, ta, Ca, Ha, Ra, Ua, Xa, ja, wa, za, Ga, Na, ca, ma, Ba, xa, Ea, Oa, Ia) {
  3854. function Ta(Ya, db) { return new y("layer:unsupported", `Layer (${Ya.title}, ${Ya.id}) of type '${Ya.declaredClass}' ${db}`, { layer: Ya }) } function Qa(Ya, db, aa) { return !(Ya && Ya.hasOwnProperty(db) ? !Ya[db] : !aa) } function Za(Ya, db, aa) { return Ya && Ya.hasOwnProperty(db) ? Ya[db] : aa } function $a(Ya) {
  3855. var db; Ya = null == Ya ? void 0 :
  3856. null == (db = Ya.supportedSpatialAggregationStatistics) ? void 0 : db.map(aa => aa.toLowerCase()); return { envelope: !(null == Ya || !Ya.includes("envelopeaggregate")), centroid: !(null == Ya || !Ya.includes("centroidaggregate")), convexHull: !(null == Ya || !Ya.includes("convexhullaggregate")) }
  3857. } function cb(Ya, db) { var aa; Ya = null == Ya ? void 0 : null == (aa = Ya.supportedOperationsWithCacheHint) ? void 0 : aa.map(U => U.toLowerCase()); return !(null == Ya || !Ya.includes(db.toLowerCase())) } function qa(Ya, db, aa) {
  3858. Ya = !(null == aa || !aa.writeLayerSchema);
  3859. return { enabled: Ya, ignoreOrigin: Ya }
  3860. } const fb = new x.JSONMap({ esriGeometryPoint: "point", esriGeometryMultipoint: "multipoint", esriGeometryPolyline: "polyline", esriGeometryPolygon: "polygon", esriGeometryMultiPatch: "multipatch" }), hb = { name: "supportsName", size: "supportsSize", contentType: "supportsContentType", keywords: "supportsKeywords", exifInfo: "supportsExifInfo" }, gb = C.getLogger("esri.layers.FeatureLayer"); d = ta.defineFieldProperties(); h = function (Ya) {
  3861. function db(...U) {
  3862. U = Ya.call(this, ...U) || this; U._handles = new B;
  3863. U.capabilities = null; U.charts = null; U.copyright = null; U.datesInUnknownTimezone = !1; U.displayField = null; U.definitionExpression = null; U.dynamicDataSource = null; U.editFieldsInfo = null; U.editingInfo = null; U.elevationInfo = null; U.featureReduction = null; U.fields = null; U.fieldsIndex = null; U.floorInfo = null; U.formTemplate = null; U.fullExtent = null; U.gdbVersion = null; U.geometryFieldsInfo = null; U.geometryType = null; U.hasM = void 0; U.hasZ = void 0; U.heightModelInfo = null; U.historicMoment = null; U.infoFor3D = null; U.isTable = !1; U.labelsVisible =
  3864. !0; U.labelingInfo = null; U.layerId = void 0; U.legendEnabled = !0; U.minScale = 0; U.maxScale = 0; U.globalIdField = null; U.objectIdField = null; U.outFields = null; U.path = null; U.popupEnabled = !0; U.popupTemplate = null; U.relationships = null; U.sourceJSON = null; U.returnM = void 0; U.returnZ = void 0; U.screenSizePerspectiveEnabled = !0; U.serviceDefinitionExpression = null; U.spatialReference = na.WGS84; U.subtypeCode = null; U.subtypeField = null; U.templates = null; U.timeInfo = null; U.title = null; U.sublayerTitleMode = "item-title"; U.trackIdField = null;
  3865. U.type = "feature"; U.typeIdField = null; U.types = null; U.indexes = new (v.ofType(la.FeatureIndex)); U.userIsAdmin = !1; U.version = void 0; U.visible = !0; return U
  3866. } b._inheritsLoose(db, Ya); var aa = db.prototype; aa.destroy = function () { var U; null == (U = this.source) ? void 0 : U.destroy(); this._handles = A.destroyMaybe(this._handles) }; aa.normalizeCtorArgs = function (U, Y) { return "string" === typeof U ? { url: U, ...Y } : U }; aa.load = function (U) {
  3867. var Y = this; const ua = A.isSome(U) ? U.signal : null; if (this.portalItem && this.portalItem.loaded && this.source) this.addResolvingPromise(this.createGraphicsSource(ua).then(La =>
  3868. this._initLayerProperties(La))); else {
  3869. var Ja = this.loadFromPortal({ supportedTypes: ["Feature Service", "Feature Collection"] }, U).catch(J.throwIfAbortError).then(b._asyncToGenerator(function* () { if (Y.url && null == Y.layerId && /FeatureServer|MapServer\/*$/i.test(Y.url)) { const La = yield Y._fetchFirstLayerId(ua); null != La && (Y.layerId = La) } if (!Y.url && !Y._hasMemorySource()) throw new y("feature-layer:missing-url-or-source", "Feature layer must be created with either a url or a source"); return Y._initLayerProperties(yield Y.createGraphicsSource(ua)) })).then(() =>
  3870. this.finishLoadEditablePortalLayer(U)); this.addResolvingPromise(Ja); return Promise.resolve(this)
  3871. }
  3872. }; aa.readCapabilities = function (U, Y) {
  3873. Y = Y.layerDefinition || Y; return {
  3874. analytics: this._readAnalyticsCapabilities(Y), attachment: this._readAttachmentCapabilities(Y), data: this._readDataCapabilities(Y), metadata: this._readMetadataCapabilities(Y), operations: this._readOperationsCapabilities(Y.capabilities || U, Y), query: this._readQueryCapabilities(Y), queryRelated: this._readQueryRelatedCapabilities(Y), queryTopFeatures: this._readQueryTopFeaturesCapabilities(Y),
  3875. editing: this._readEditingCapabilities(Y)
  3876. }
  3877. }; aa.readEditingEnabled = function (U, Y) { return this._readEditingEnabled(Y, !1) }; aa.readEditingEnabledFromWebMap = function (U, Y, ua) { return this._readEditingEnabled(Y, !0, ua) }; aa.writeEditingEnabled = function (U, Y) { this._writeEditingEnabled(U, Y, !1) }; aa.writeEditingEnabledToWebMap = function (U, Y, ua, Ja) { this._writeEditingEnabled(U, Y, !0, Ja) }; aa.readEditingInfo = function (U, Y) { ({ editingInfo: U } = Y); return U ? { lastEditDate: null != U.lastEditDate ? new Date(U.lastEditDate) : null } : null };
  3878. aa.readIsTable = function (U, Y) { Y = Y && Y.layerDefinition || Y; return "Table" === Y.type || !Y.geometryType }; aa.writeIsTable = function (U, Y, ua, Ja) { null != Ja && Ja.writeLayerSchema && F.setDeepValue(ua, U ? "Table" : "Feature Layer", Y) }; aa.readMinScale = function (U, Y) { return Y.effectiveMinScale || U || 0 }; aa.readMaxScale = function (U, Y) { return Y.effectiveMaxScale || U || 0 }; aa.readGlobalIdFieldFromService = function (U, Y) {
  3879. Y = Y.layerDefinition || Y; if (Y.globalIdField) return Y.globalIdField; if (Y.fields) for (const ua of Y.fields) if ("esriFieldTypeGlobalID" ===
  3880. ua.type) return ua.name
  3881. }; aa.readObjectIdFieldFromService = function (U, Y) { Y = Y.layerDefinition || Y; if (Y.objectIdField) return Y.objectIdField; if (Y.fields) for (const ua of Y.fields) if ("esriFieldTypeOID" === ua.type) return ua.name }; aa.readRenderer = function (U, Y, ua) {
  3882. Y = Y.layerDefinition || Y; if (U = Y.drawingInfo && Y.drawingInfo.renderer || void 0) return (U = t.read(U, Y, ua) || void 0) || gb.error("Failed to create renderer", { rendererDefinition: Y.drawingInfo.renderer, layer: this, context: ua }), U; if (Y.defaultSymbol) return Y.types &&
  3883. Y.types.length ? new p({ defaultSymbol: jb(Y.defaultSymbol, Y, ua), field: Y.typeIdField, uniqueValueInfos: Y.types.map(Ja => ({ id: Ja.id, symbol: jb(Ja.symbol, Ja, ua) })) }) : new g({ symbol: jb(Y.defaultSymbol, Y, ua) })
  3884. }; aa.castSource = function (U) { return U ? Array.isArray(U) || U instanceof v ? new Da.MemorySource({ layer: this, items: U }) : U : null }; aa.readSource = function (U, Y) { U = ma.fromJSON(Y.featureSet); return new Da.MemorySource({ layer: this, items: U && U.features || [] }) }; aa.readServiceDefinitionExpression = function (U, Y) {
  3885. return Y.definitionQuery ||
  3886. Y.definitionExpression
  3887. }; aa.readTemplates = function (U, Y) { var ua = Y.editFieldsInfo; Y = ua && ua.creatorField; ua = ua && ua.editorField; U = U && U.map(Ja => R.fromJSON(Ja)); this._fixTemplates(U, Y); this._fixTemplates(U, ua); return U }; aa.readTitle = function (U, Y) {
  3888. U = Y.layerDefinition && Y.layerDefinition.name || Y.name; Y = Y.title || Y.layerDefinition && Y.layerDefinition.title; if (U) {
  3889. Y = this.portalItem && this.portalItem.title; if ("item-title" === this.sublayerTitleMode) return this.url ? ea.titleFromUrlAndName(this.url, U) : U; if (!U && this.url) {
  3890. const ua =
  3891. ea.parse(this.url); A.isSome(ua) && (U = ua.title)
  3892. } if (!U) return; "item-title-and-service-name" === this.sublayerTitleMode && Y && Y !== U && (U = Y + " - " + U); return ea.cleanTitle(U)
  3893. } if ("item-title" === this.sublayerTitleMode && Y) return Y
  3894. }; aa.readTitleFromWebMap = function (U, Y) { return Y.title || Y.layerDefinition && Y.layerDefinition.name }; aa.readTypeIdField = function (U, Y) { Y = Y.layerDefinition || Y; let ua = Y.typeIdField; ua && Y.fields && (ua = ua.toLowerCase(), U = Y.fields.find(Ja => Ja.name.toLowerCase() === ua)) && (ua = U.name); return ua }; aa.readTypes =
  3895. function (U, Y) { Y = Y.layerDefinition || Y; U = Y.types; const ua = (Y = Y.editFieldsInfo) && Y.creatorField, Ja = Y && Y.editorField; return U && U.map(La => { La = X.fromJSON(La); this._fixTemplates(La.templates, ua); this._fixTemplates(La.templates, Ja); return La }) }; aa.writeUrl = function (U, Y, ua, Ja) { ea.writeUrlWithLayerId(this, U, null, Y, Ja) }; aa.readVersion = function (U, Y) {
  3896. return Y.currentVersion ? Y.currentVersion : Y.hasOwnProperty("capabilities") || Y.hasOwnProperty("drawingInfo") || Y.hasOwnProperty("hasAttachments") || Y.hasOwnProperty("htmlPopupType") ||
  3897. Y.hasOwnProperty("relationships") || Y.hasOwnProperty("timeInfo") || Y.hasOwnProperty("typeIdField") || Y.hasOwnProperty("types") ? 10 : 9.3
  3898. }; aa.readVisible = function (U, Y) { if (Y.layerDefinition && null != Y.layerDefinition.defaultVisibility) return !!Y.layerDefinition.defaultVisibility; if (null != Y.visibility) return !!Y.visibility }; aa.addAttachment = function (U, Y) {
  3899. return this.load().then(() => this._checkAttachmentSupport(U)).then(() => {
  3900. if (!("addAttachment" in this.source)) throw new y("FeatureLayer", "Layer source does not support addAttachment capability");
  3901. return this.source.addAttachment(U, Y)
  3902. })
  3903. }; aa.updateAttachment = function (U, Y, ua) { return this.load().then(() => this._checkAttachmentSupport(U)).then(() => { if (!("updateAttachment" in this.source)) throw new y("FeatureLayer", "Layer source does not support updateAttachment capability"); return this.source.updateAttachment(U, Y, ua) }) }; aa.applyEdits = function () {
  3904. var U = b._asyncToGenerator(function* (Y, ua) {
  3905. const Ja = yield new Promise((La, Wa) => a(["./graphics/editingSupport"], La, Wa)); yield this.load(); return Ja.applyEdits(this,
  3906. this.source, Y, ua)
  3907. }); return function (Y, ua) { return U.apply(this, arguments) }
  3908. }(); aa.on = function (U, Y) { return Ya.prototype.on.call(this, U, Y) }; aa.createPopupTemplate = function (U) { return Oa.createPopupTemplate(this, U) }; aa.createGraphicsSource = function () {
  3909. var U = b._asyncToGenerator(function* (Y) {
  3910. if (this._hasMemorySource()) return this.source.load({ signal: Y }); const { default: ua } = yield J.whenOrAbort(new Promise((Ja, La) => a(["./graphics/sources/FeatureLayerSource"], Wa => Ja(Object.freeze(Object.defineProperty({
  3911. __proto__: null,
  3912. default: Wa
  3913. }, Symbol.toStringTag, { value: "Module" }))), La)), Y); return (new ua({ layer: this })).load({ signal: Y })
  3914. }); return function (Y) { return U.apply(this, arguments) }
  3915. }(); aa.createQuery = function () {
  3916. const U = new Ba; var Y = this.get("capabilities.data"); const ua = this.get("capabilities.query"); U.dynamicDataSource = this.dynamicDataSource; U.historicMoment = this.historicMoment; U.gdbVersion = this.gdbVersion; U.returnGeometry = !0; ua && (U.compactGeometryEnabled = ua.supportsCompactGeometry, U.defaultSpatialReferenceEnabled = ua.supportsDefaultSpatialReference);
  3917. Y && (Y.supportsZ && null != this.returnZ && (U.returnZ = this.returnZ), Y.supportsM && null != this.returnM && (U.returnM = this.returnM)); U.outFields = ["*"]; Y = A.isSome(this.subtypeCode) ? `${this.subtypeField} = ${this.subtypeCode}` : null; Y = M.sqlAnd(this.definitionExpression, Y); U.where = Y || "1\x3d1"; const { timeOffset: Ja, timeExtent: La } = this; U.timeExtent = null != Ja && null != La ? La.offset(-Ja.value, Ja.unit) : La || null; U.multipatchOption = "multipatch" === this.geometryType ? "xyFootprint" : null; return U
  3918. }; aa.deleteAttachments = function (U,
  3919. Y) { return this.load().then(() => this._checkAttachmentSupport(U)).then(() => { if (!("deleteAttachments" in this.source)) throw new y("FeatureLayer", "Layer source does not support deleteAttachments capability"); return this.source.deleteAttachments(U, Y) }) }; aa.fetchRecomputedExtents = function (U) {
  3920. return this.load({ signal: null == U ? void 0 : U.signal }).then(() => {
  3921. if (this.source.fetchRecomputedExtents) return this.source.fetchRecomputedExtents(U); throw new y("FeatureLayer", "Layer source does not support fetchUpdates capability");
  3922. })
  3923. }; aa.getFeatureType = function (U) { const { typeIdField: Y, types: ua } = this; if (!Y || !U) return null; const Ja = U.attributes ? U.attributes[Y] : void 0; if (null == Ja) return null; let La = null; ua.some(Wa => { const { id: eb } = Wa; if (null == eb) return !1; eb.toString() === Ja.toString() && (La = Wa); return !!La }); return La }; aa.getFieldDomain = function (U, Y) { return (Y = this.getFeatureType(Y && Y.feature)) && (Y = Y.domains && Y.domains[U]) && "inherited" !== Y.type ? Y : this._getLayerDomain(U) }; aa.getField = function (U) { return this.fieldsIndex.get(U) }; aa.queryAttachments =
  3924. function (U, Y) {
  3925. U = ca.from(U); return this.load().then(() => {
  3926. if (!this.get("capabilities.data.supportsAttachment")) throw new y("FeatureLayer", "this layer doesn't support attachments"); const { attachmentTypes: ua, objectIds: Ja, globalIds: La, num: Wa, size: eb, start: T, where: ka } = U; if (!this.get("capabilities.operations.supportsQueryAttachments")) {
  3927. const ia = ua && ua.length, Aa = La && La.length, Sa = eb && eb.length; if (Ja && 1 < Ja.length || ia || Aa || Sa || Wa || T || ka) throw new y("FeatureLayer", "when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",
  3928. U);
  3929. } if (!(Ja && Ja.length || ka)) throw new y("FeatureLayer", "'objectIds' or 'where' are required to perform attachment query", U); if (!("queryAttachments" in this.source)) throw new y("FeatureLayer", "Layer source does not support queryAttachments capability", U); return this.source.queryAttachments(U)
  3930. })
  3931. }; aa.queryFeatures = function (U, Y) {
  3932. return this.load().then(() => this.source.queryFeatures(Ba.from(U) || this.createQuery(), Y)).then(ua => {
  3933. if (null != ua && ua.features) for (const Ja of ua.features) Ja.layer = Ja.sourceLayer =
  3934. this; return ua
  3935. })
  3936. }; aa.queryObjectIds = function (U, Y) { return this.load().then(() => { if (this.source.queryObjectIds) return this.source.queryObjectIds(Ba.from(U) || this.createQuery(), Y); throw new y("FeatureLayer", "Layer source does not support queryObjectIds capability"); }) }; aa.queryFeatureCount = function (U, Y) {
  3937. return this.load().then(() => {
  3938. if (this.source.queryFeatureCount) return this.source.queryFeatureCount(Ba.from(U) || this.createQuery(), Y); throw new y("FeatureLayer", "Layer source does not support queryFeatureCount capability");
  3939. })
  3940. }; aa.queryExtent = function (U, Y) { return this.load().then(() => { if (this.source.queryExtent) return this.source.queryExtent(Ba.from(U) || this.createQuery(), Y); throw new y("FeatureLayer", "Layer source does not support queryExtent capability"); }) }; aa.queryRelatedFeatures = function (U, Y) { return this.load().then(() => { if ("queryRelatedFeatures" in this.source) return this.source.queryRelatedFeatures(xa.from(U), Y); throw new y("FeatureLayer", "Layer source does not support queryRelatedFeatures capability"); }) }; aa.queryRelatedFeaturesCount =
  3941. function (U, Y) { return this.load().then(() => { if ("queryRelatedFeaturesCount" in this.source) return this.source.queryRelatedFeaturesCount(xa.from(U), Y); throw new y("FeatureLayer", "Layer source does not support queryRelatedFeaturesCount capability"); }) }; aa.queryTopFeatures = function (U, Y) {
  3942. return this.load().then(() => {
  3943. if ("queryTopFeatures" in this.source && this.get("capabilities.query.supportsTopFeaturesQuery")) return this.source.queryTopFeatures(Ea.from(U), Y).then(ua => {
  3944. if (null != ua && ua.features) for (const Ja of ua.features) Ja.layer =
  3945. Ja.sourceLayer = this; return ua
  3946. }); throw new y("FeatureLayer", "Layer source does not support queryTopFeatures capability");
  3947. })
  3948. }; aa.queryTopObjectIds = function (U, Y) { return this.load().then(() => { if ("queryTopObjectIds" in this.source && this.get("capabilities.query.supportsTopFeaturesQuery")) return this.source.queryTopObjectIds(Ea.from(U), Y); throw new y("FeatureLayer", "Layer source does not support queryTopObjectIds capability"); }) }; aa.queryTopFeaturesExtent = function (U, Y) {
  3949. return this.load().then(() => {
  3950. if ("queryTopExtents" in
  3951. this.source && this.get("capabilities.query.supportsTopFeaturesQuery")) return this.source.queryTopExtents(Ea.from(U), Y); throw new y("FeatureLayer", "Layer source does not support queryTopExtents capability");
  3952. })
  3953. }; aa.queryTopFeatureCount = function (U, Y) {
  3954. return this.load().then(() => {
  3955. if ("queryTopCount" in this.source && this.get("capabilities.query.supportsTopFeaturesQuery")) return this.source.queryTopCount(Ea.from(U), Y); throw new y("FeatureLayer", "Layer source does not support queryFeatureCount capability");
  3956. })
  3957. }; aa.read = function (U, Y) { const ua = U.featureCollection; if (ua) { const Ja = ua.layers; Ja && 1 === Ja.length && (Ya.prototype.read.call(this, Ja[0], Y), null != ua.showLegend && Ya.prototype.read.call(this, { showLegend: ua.showLegend }, Y)) } Ya.prototype.read.call(this, U, Y); Y && "service" === Y.origin && this.revert(["objectIdField", "fields", "timeInfo", "spatialReference"], "service") }; aa.write = function (U, Y) {
  3958. var ua, Ja; Y = { ...Y, writeLayerSchema: null != (ua = null == (Ja = Y) ? void 0 : Ja.writeLayerSchema) ? ua : this._hasMemorySource() }; const { origin: La,
  3959. layerContainerType: Wa, messages: eb } = Y; if (this.dynamicDataSource) return null == eb ? void 0 : eb.push(Ta(this, "using a dynamic data source cannot be written to web scenes, web maps and feature service items")), null; if (this.isTable) {
  3960. if ("web-scene" === La || "web-map" === La && "tables" !== Wa) return null == eb ? void 0 : eb.push(Ta(this, "using a table source cannot be written to web scenes and web maps")), null; if (this._hasMemorySource()) return null == eb ? void 0 : eb.push(Ta(this, "using an in-memory table source cannot be written to web scenes and web maps")),
  3961. null
  3962. } else if (this.loaded && "web-map" === La && "tables" === Wa) return null == eb ? void 0 : eb.push(Ta(this, "using a non-table source cannot be written to tables in web maps")), null; return Ya.prototype.write.call(this, U, Y)
  3963. }; aa.clone = function () { if (this._hasMemorySource()) throw new y("FeatureLayer", `FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`); return Ya.prototype.clone.call(this) }; aa.serviceSupportsSpatialReference = function (U) {
  3964. return this.loaded ? "memory" ===
  3965. this.source.type ? !0 : za.serviceSupportsSpatialReference(this, U) : !1
  3966. }; aa.save = function () { var U = b._asyncToGenerator(function* (Y) { return (yield new Promise((ua, Ja) => a(["./save/featureLayerUtils"], ua, Ja))).save(this, Y) }); return function (Y) { return U.apply(this, arguments) } }(); aa.saveAs = function () { var U = b._asyncToGenerator(function* (Y, ua) { return (yield new Promise((Ja, La) => a(["./save/featureLayerUtils"], Ja, La))).saveAs(this, Y, ua) }); return function (Y, ua) { return U.apply(this, arguments) } }(); aa._readEditingEnabled =
  3967. function (U, Y, ua) { var Ja; let La = null == (Ja = U.layerDefinition) ? void 0 : Ja.capabilities; if (La) return this._hasEditingCapability(La); La = U.capabilities; if (Y && "web-map" === (null == ua ? void 0 : ua.origin) && !this._hasMemorySource() && La) return this._hasEditingCapability(La) }; aa._hasEditingCapability = function (U) { return U.toLowerCase().split(",").map(Y => Y.trim()).includes("editing") }; aa._writeEditingEnabled = function (U, Y, ua, Ja) {
  3968. if (!U) {
  3969. var La, Wa; U = null != (La = this.capabilities) && null != (Wa = La.operations) && Wa.supportsSync ?
  3970. "Query,Sync" : "Query"; F.setDeepValue("layerDefinition.capabilities", U, Y); !ua || null != Ja && Ja.writeLayerSchema || (Y.capabilities = U)
  3971. }
  3972. }; aa._checkAttachmentSupport = function (U) {
  3973. const { attributes: Y } = U, { objectIdField: ua } = this; if (!this.get("capabilities.data.supportsAttachment")) return Promise.reject(new y("FeatureLayer", "this layer doesn't support attachments")); if (!U) return Promise.reject(new y("FeatureLayer", "A feature is required to add/delete/update attachments")); if (!Y) return Promise.reject(new y("FeatureLayer",
  3974. "'attributes' are required on a feature to query attachments")); if (!Y[ua]) return Promise.reject(new y("FeatureLayer", `feature is missing the identifying attribute ${ua}`))
  3975. }; aa._getLayerDomain = function (U) { return (U = this.fieldsIndex.get(U)) ? U.domain : null }; aa._fetchFirstLayerId = function (U) {
  3976. return u(this.url, { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: U }).then(Y => {
  3977. if (Y = Y.data) {
  3978. if (Array.isArray(Y.layers) && 0 < Y.layers.length) return Y.layers[0].id; if (Array.isArray(Y.tables) &&
  3979. 0 < Y.tables.length) return Y.tables[0].id
  3980. }
  3981. })
  3982. }; aa._initLayerProperties = function () { var U = b._asyncToGenerator(function* (Y) { this._set("source", Y); Y.sourceJSON && (this.sourceJSON = Y.sourceJSON, this.read(Y.sourceJSON, { origin: "service", url: this.parsedUrl })); this._verifySource(); this._verifyFields(); Ca.fixRendererFields(this.renderer, this.fieldsIndex); Ca.fixTimeInfoFields(this.timeInfo, this.fieldsIndex); return Na.loadStyleRenderer(this, { origin: "service" }) }); return function (Y) { return U.apply(this, arguments) } }();
  3983. aa.hasDataChanged = function () {
  3984. var U = b._asyncToGenerator(function* () { var Y; if (null != (Y = this.source) && Y.refresh) try { var ua; const { dataChanged: Ja, updates: La } = yield null == (ua = this.source) ? void 0 : ua.refresh(); A.isSome(La) && (this.sourceJSON = { ...this.sourceJSON, ...La }, this.read(La, { origin: "service", url: this.parsedUrl })); if (Ja) return !0 } catch { } if (this.definitionExpression) try { return (yield M.parseWhereClause(this.definitionExpression, this.fieldsIndex)).hasDateFunctions } catch { } return !1 }); return function () {
  3985. return U.apply(this,
  3986. arguments)
  3987. }
  3988. }(); aa._verifyFields = function () {
  3989. var U; const Y = this.parsedUrl && this.parsedUrl.path || "undefined"; this.objectIdField || console.log("FeatureLayer: 'objectIdField' property is not defined (url: " + Y + ")"); this.isTable || this._hasMemorySource() || -1 !== Y.search(/\/FeatureServer\//i) || null != (U = this.fields) && U.some(ua => "geometry" === ua.type) || console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: " +
  3990. Y + ")")
  3991. }; aa._fixTemplates = function (U, Y) { U && U.forEach(ua => { (ua = ua.prototype && ua.prototype.attributes) && Y && delete ua[Y] }) }; aa._verifySource = function () { if (this._hasMemorySource()) { if (this.url) throw new y("feature-layer:mixed-source-and-url", "FeatureLayer cannot be created with both an in-memory source and a url"); } else if (!this.url) throw new y("feature-layer:source-or-url-required", "FeatureLayer requires either a url, a valid portal item or a source"); }; aa._initMemorySource = function (U) {
  3992. U.forEach(Y => {
  3993. Y.layer =
  3994. this; Y.sourceLayer = this
  3995. }); this._handles.add([U.on("after-add", Y => { Y.item.layer = this; Y.item.sourceLayer = this }), U.on("after-remove", Y => { Y.item.layer = null; Y.item.sourceLayer = null })], "fl-source")
  3996. }; aa._resetMemorySource = function (U) { U.forEach(Y => { Y.layer = null; Y.sourceLayer = null }); this._handles.remove("fl-source") }; aa._hasMemorySource = function () { return !(this.url || !this.source) }; aa._readAnalyticsCapabilities = function (U) { return { supportsCacheHint: cb(U.advancedQueryCapabilities, "queryAnalytics") } }; aa._readAttachmentCapabilities =
  3997. function (U) { const Y = U.attachmentProperties, ua = { supportsName: !1, supportsSize: !1, supportsContentType: !1, supportsKeywords: !1, supportsExifInfo: !1, supportsCacheHint: cb(U.advancedQueryCapabilities, "queryAttachments"), supportsResize: Qa(U, "supportsAttachmentsResizing", !1) }; Y && Array.isArray(Y) && Y.forEach(Ja => { const La = hb[Ja.name]; La && (ua[La] = !!Ja.isEnabled) }); return ua }; aa._readDataCapabilities = function (U) {
  3998. return {
  3999. isVersioned: Qa(U, "isDataVersioned", !1), supportsAttachment: Qa(U, "hasAttachments", !1), supportsM: Qa(U,
  4000. "hasM", !1), supportsZ: Qa(U, "hasZ", !1)
  4001. }
  4002. }; aa._readMetadataCapabilities = function (U) { return { supportsAdvancedFieldProperties: Qa(U, "supportsFieldDescriptionProperty", !1) } }; aa._readOperationsCapabilities = function (U, Y) {
  4003. U = U ? U.toLowerCase().split(",").map(ia => ia.trim()) : []; var ua = this.url ? ea.parse(this.url) : null; ua = U.includes(A.isSome(ua) && "MapServer" === ua.serverType ? "data" : "query"); const Ja = U.includes("editing") && !Y.datesInUnknownTimezone; let La = Ja && U.includes("create"), Wa = Ja && U.includes("delete"), eb = Ja && U.includes("update");
  4004. const T = U.includes("changetracking"), ka = Y.advancedQueryCapabilities; !Ja || La || Wa || eb || (La = Wa = eb = !0); return {
  4005. supportsCalculate: Qa(Y, "supportsCalculate", !1), supportsTruncate: Qa(Y, "supportsTruncate", !1), supportsValidateSql: Qa(Y, "supportsValidateSql", !1), supportsAdd: La, supportsDelete: Wa, supportsEditing: Ja, supportsChangeTracking: T, supportsQuery: ua, supportsQueryAnalytics: Qa(ka, "supportsQueryAnalytic", !1), supportsQueryAttachments: Qa(ka, "supportsQueryAttachments", !1), supportsQueryTopFeatures: Qa(ka, "supportsTopFeaturesQuery",
  4006. !1), supportsResizeAttachments: Qa(Y, "supportsAttachmentsResizing", !1), supportsSync: U.includes("sync"), supportsUpdate: eb, supportsExceedsLimitStatistics: Qa(Y, "supportsExceedsLimitStatistics", !1)
  4007. }
  4008. }; aa._readQueryCapabilities = function (U) {
  4009. var Y; const ua = U.advancedQueryCapabilities, Ja = U.ownershipBasedAccessControlForFeatures, La = U.archivingInfo; var Wa = null == (Y = this.url) ? void 0 : Y.includes("MapServer"); Y = !w("mapserver-pbf-enabled") && Wa && 10.81 > this.version; Wa = ea.isHostedAgolService(this.url); const eb = (U.supportedQueryFormats ||
  4010. "").split(",").reduce((T, ka) => { (ka = ka.toLowerCase().trim()) && T.add(ka); return T }, new Set); return {
  4011. supportsStatistics: Qa(ua, "supportsStatistics", U.supportsStatistics), supportsPercentileStatistics: Qa(ua, "supportsPercentileStatistics", !1), supportsSpatialAggregationStatistics: Qa(ua, "supportsSpatialAggregationStatistics", !1), supportedSpatialAggregationStatistics: $a(ua), supportsCentroid: Qa(ua, "supportsReturningGeometryCentroid", !1), supportsDistance: Qa(ua, "supportsQueryWithDistance", !1), supportsDistinct: Qa(ua,
  4012. "supportsDistinct", U.supportsAdvancedQueries), supportsExtent: Qa(ua, "supportsReturningQueryExtent", !1), supportsGeometryProperties: Qa(ua, "supportsReturningGeometryProperties", !1), supportsHavingClause: Qa(ua, "supportsHavingClause", !1), supportsOrderBy: Qa(ua, "supportsOrderBy", U.supportsAdvancedQueries), supportsPagination: Qa(ua, "supportsPagination", !1), supportsQuantization: Qa(U, "supportsCoordinatesQuantization", !1), supportsQuantizationEditMode: Qa(U, "supportsQuantizationEditMode", !1), supportsQueryGeometry: Qa(U,
  4013. "supportsReturningQueryGeometry", !1), supportsResultType: Qa(ua, "supportsQueryWithResultType", !1), supportsMaxRecordCountFactor: Qa(ua, "supportsMaxRecordCountFactor", !1), supportsSqlExpression: Qa(ua, "supportsSqlExpression", !1), supportsStandardizedQueriesOnly: Qa(U, "useStandardizedQueries", !1), supportsTopFeaturesQuery: Qa(ua, "supportsTopFeaturesQuery", !1), supportsQueryByOthers: Qa(Ja, "allowOthersToQuery", !0), supportsHistoricMoment: Qa(La, "supportsQueryWithHistoricMoment", !1), supportsFormatPBF: !Y && eb.has("pbf"),
  4014. supportsDisjointSpatialRelationship: Qa(ua, "supportsDisjointSpatialRel", !1), supportsCacheHint: Qa(ua, "supportsQueryWithCacheHint", !1) || cb(ua, "query"), supportsDefaultSpatialReference: Qa(ua, "supportsDefaultSR", !1), supportsCompactGeometry: Wa, maxRecordCountFactor: Za(U, "maxRecordCountFactor", void 0), maxRecordCount: Za(U, "maxRecordCount", void 0), standardMaxRecordCount: Za(U, "standardMaxRecordCount", void 0), tileMaxRecordCount: Za(U, "tileMaxRecordCount", void 0)
  4015. }
  4016. }; aa._readQueryRelatedCapabilities = function (U) {
  4017. U =
  4018. U.advancedQueryCapabilities; const Y = Qa(U, "supportsAdvancedQueryRelated", !1); return { supportsPagination: Qa(U, "supportsQueryRelatedPagination", !1), supportsCount: Y, supportsOrderBy: Y, supportsCacheHint: cb(U, "queryRelated") }
  4019. }; aa._readQueryTopFeaturesCapabilities = function (U) { return { supportsCacheHint: cb(U.advancedQueryCapabilities, "queryTopFilter") } }; aa._readEditingCapabilities = function (U) {
  4020. const Y = U.ownershipBasedAccessControlForFeatures; return {
  4021. supportsGeometryUpdate: Qa(U, "allowGeometryUpdates", !0), supportsGlobalId: Qa(U,
  4022. "supportsApplyEditsWithGlobalIds", !1), supportsReturnServiceEditsInSourceSpatialReference: Qa(U, "supportsReturnServiceEditsInSourceSR", !1), supportsRollbackOnFailure: Qa(U, "supportsRollbackOnFailureParameter", !1), supportsUpdateWithoutM: Qa(U, "allowUpdateWithoutMValues", !1), supportsUploadWithItemId: Qa(U, "supportsAttachmentsByUploadId", !1), supportsDeleteByAnonymous: Qa(Y, "allowAnonymousToDelete", !0), supportsDeleteByOthers: Qa(Y, "allowOthersToDelete", !0), supportsUpdateByAnonymous: Qa(Y, "allowAnonymousToUpdate",
  4023. !0), supportsUpdateByOthers: Qa(Y, "allowOthersToUpdate", !0)
  4024. }
  4025. }; b._createClass(db, [{
  4026. key: "createQueryVersion", get: function () {
  4027. this.commitProperty("definitionExpression"); this.commitProperty("dynamicDataSource"); this.commitProperty("timeExtent"); this.commitProperty("timeOffset"); this.commitProperty("geometryType"); this.commitProperty("gdbVersion"); this.commitProperty("historicMoment"); this.commitProperty("returnZ"); this.commitProperty("capabilities"); this.commitProperty("returnM"); return (this._get("createQueryVersion") ||
  4028. 0) + 1
  4029. }
  4030. }, { key: "editingEnabled", get: function () { return this.loaded && !this.capabilities.operations.supportsEditing ? !1 : this._isOverridden("editingEnabled") ? this._get("editingEnabled") : this._hasMemorySource() || this.userHasEditingPrivileges }, set: function (U) { null != U ? this._override("editingEnabled", U) : this._clearOverride("editingEnabled") } }, {
  4031. key: "parsedUrl", get: function () {
  4032. const U = this.url ? N.urlToObject(this.url) : null; null != U && (null != this.dynamicDataSource ? U.path = N.join(U.path, "dynamicLayer") : null != this.layerId &&
  4033. (U.path = N.join(U.path, this.layerId.toString()))); return U
  4034. }
  4035. }, { key: "defaultPopupTemplate", get: function () { return this.createPopupTemplate() } }, { key: "renderer", set: function (U) { Ca.fixRendererFields(U, this.fieldsIndex); this._set("renderer", U) } }, { key: "source", set: function (U) { const Y = this._get("source"); Y !== U && (Y && Y instanceof v && this._resetMemorySource(Y), U && U instanceof v && this._initMemorySource(U), this._set("source", U)) } }, {
  4036. key: "url", set: function (U) {
  4037. U = ea.sanitizeUrlWithLayerId({
  4038. layer: this, url: U, nonStandardUrlAllowed: !0,
  4039. logger: gb
  4040. }); this._set("url", U.url); null != U.layerId && this._set("layerId", U.layerId)
  4041. }
  4042. }]); return db
  4043. }(ya.FeatureEffectLayer(W.BlendLayer(P.OrderedLayer(da.TemporalLayer(V.ScaleRangeLayer(Q.RefreshableLayer(sa.ArcGISService(I.OperationalLayer(Z.PortalLayer(D.MultiOriginJSONMixin(oa.CustomParametersMixin(Ka.APIKeyMixin(h.ClonableMixin(ra)))))))))))))); c.__decorate([E.property({ readOnly: !0, json: { read: !1 } })], h.prototype, "capabilities", void 0); c.__decorate([H.reader("service", "capabilities", "advancedQueryCapabilities allowGeometryUpdates allowUpdateWithoutMValues archivingInfo capabilities datesInUnknownTimezone hasAttachments hasM hasZ maxRecordCount maxRecordCountFactor ownershipBasedAccessControlForFeatures standardMaxRecordCount supportedQueryFormats supportsAdvancedQueries supportsApplyEditsWithGlobalIds supportsAttachmentsByUploadId supportsAttachmentsResizing supportsCalculate supportsCoordinatesQuantization supportsExceedsLimitStatistics supportsFieldDescriptionProperty supportsQuantizationEditMode supportsRollbackOnFailureParameter supportsStatistics supportsTruncate supportsValidateSql tileMaxRecordCount useStandardizedQueries".split(" "))],
  4044. h.prototype, "readCapabilities", null); c.__decorate([E.property({ json: { origins: { "portal-item": { write: !0 }, "web-map": { write: !0 } } } })], h.prototype, "charts", void 0); c.__decorate([E.property({ readOnly: !0 })], h.prototype, "createQueryVersion", null); c.__decorate([E.property({ type: String, json: { read: { source: "layerDefinition.copyrightText" }, origins: { service: { read: { source: "copyrightText" } } } } })], h.prototype, "copyright", void 0); c.__decorate([E.property({ type: Boolean })], h.prototype, "datesInUnknownTimezone", void 0);
  4045. c.__decorate([E.property({ type: String, json: { read: { source: "layerDefinition.displayField" }, origins: { service: { read: { source: "displayField" } } } } })], h.prototype, "displayField", void 0); c.__decorate([E.property({ type: String, json: { origins: { service: { read: !1, write: !1 } }, name: "layerDefinition.definitionExpression", write: { enabled: !0, allowNull: !0 } } })], h.prototype, "definitionExpression", void 0); c.__decorate([E.property({ types: f.symbolTypes, readOnly: !0 })], h.prototype, "defaultSymbol", void 0); c.__decorate([E.property({ type: Ga.DataLayerSource })],
  4046. h.prototype, "dynamicDataSource", void 0); c.__decorate([E.property({ readOnly: !0 })], h.prototype, "editFieldsInfo", void 0); c.__decorate([E.property({ type: Boolean })], h.prototype, "editingEnabled", null); c.__decorate([H.reader(["portal-item", "web-scene"], "editingEnabled", ["layerDefinition.capabilities"])], h.prototype, "readEditingEnabled", null); c.__decorate([H.reader("web-map", "editingEnabled", ["capabilities", "layerDefinition.capabilities"])], h.prototype, "readEditingEnabledFromWebMap", null); c.__decorate([S.writer(["portal-item",
  4047. "web-scene"], "editingEnabled", { "layerDefinition.capabilities": { type: String } })], h.prototype, "writeEditingEnabled", null); c.__decorate([S.writer("web-map", "editingEnabled", { capabilities: { type: String }, "layerDefinition.capabilities": { type: String } })], h.prototype, "writeEditingEnabledToWebMap", null); c.__decorate([E.property({ readOnly: !0 })], h.prototype, "editingInfo", void 0); c.__decorate([H.reader("editingInfo")], h.prototype, "readEditingInfo", null); c.__decorate([E.property((() => {
  4048. const Ya = z.clone(pa.elevationInfo),
  4049. db = Ya.json.origins; db["web-map"] = { read: !1, write: !1 }; db["portal-item"] = { read: !1, write: !1 }; return Ya
  4050. })())], h.prototype, "elevationInfo", void 0); c.__decorate([E.property(L.featureReductionProperty)], h.prototype, "featureReduction", void 0); c.__decorate([E.property({ ...d.fields, json: { read: { source: "layerDefinition.fields" }, origins: { service: { name: "fields" }, "web-map": { write: { target: "layerDefinition.fields", overridePolicy: qa } } } } })], h.prototype, "fields", void 0); c.__decorate([E.property(d.fieldsIndex)], h.prototype,
  4051. "fieldsIndex", void 0); c.__decorate([E.property({ type: Xa, json: { read: { source: "layerDefinition.floorInfo" }, write: { target: "layerDefinition.floorInfo" } } })], h.prototype, "floorInfo", void 0); c.__decorate([E.property({ type: ha, json: { name: "formInfo", write: !0, origins: { "web-scene": { read: !1, write: !1 } } } })], h.prototype, "formTemplate", void 0); c.__decorate([E.property({ type: ba, json: { origins: { service: { read: { source: "extent" } } }, read: { source: "layerDefinition.extent" } } })], h.prototype, "fullExtent", void 0); c.__decorate([E.property()],
  4052. h.prototype, "gdbVersion", void 0); c.__decorate([E.property({ readOnly: !0, type: Ha, json: { read: { source: "geometryProperties" } } })], h.prototype, "geometryFieldsInfo", void 0); c.__decorate([E.property({ type: "point polygon polyline multipoint multipatch mesh".split(" "), json: { origins: { service: { read: fb.read }, "web-map": { write: { target: "layerDefinition.geometryType", overridePolicy: qa, writer(Ya, db, aa) { (Ya = Ya ? fb.toJSON(Ya) : null) && F.setDeepValue(aa, Ya, db) } } } }, read: { source: "layerDefinition.geometryType", reader: fb.read } } })],
  4053. h.prototype, "geometryType", void 0); c.__decorate([E.property({ type: Boolean, json: { origins: { service: { read: !0 } }, read: { source: "layerDefinition.hasM" } } })], h.prototype, "hasM", void 0); c.__decorate([E.property({ type: Boolean, json: { origins: { service: { read: !0 } }, read: { source: "layerDefinition.hasZ" } } })], h.prototype, "hasZ", void 0); c.__decorate([E.property({ readOnly: !0, type: O })], h.prototype, "heightModelInfo", void 0); c.__decorate([E.property({ type: Date })], h.prototype, "historicMoment", void 0); c.__decorate([E.property(pa.id)],
  4054. h.prototype, "id", void 0); c.__decorate([E.property({ readOnly: !0, json: { origins: { service: { read: !0 } }, read: !1 } })], h.prototype, "infoFor3D", void 0); c.__decorate([E.property({ readOnly: !0, json: { origins: { "web-map": { write: { target: "layerDefinition.type" } } } } })], h.prototype, "isTable", void 0); c.__decorate([H.reader("service", "isTable", ["type", "geometryType"]), H.reader("isTable", ["layerDefinition.type", "layerDefinition.geometryType"])], h.prototype, "readIsTable", null); c.__decorate([S.writer("web-map", "isTable")],
  4055. h.prototype, "writeIsTable", null); c.__decorate([E.property(pa.labelsVisible)], h.prototype, "labelsVisible", void 0); c.__decorate([E.property({ type: [Ra], json: { origins: { service: { read: { source: "drawingInfo.labelingInfo", reader: Ua.reader }, write: { target: "drawingInfo.labelingInfo", enabled: !1 } } }, read: { source: "layerDefinition.drawingInfo.labelingInfo", reader: Ua.reader }, write: { target: "layerDefinition.drawingInfo.labelingInfo" } } })], h.prototype, "labelingInfo", void 0); c.__decorate([E.property((() => {
  4056. const Ya = z.clone(pa.opacityDrawingInfo);
  4057. Ya.json.origins["portal-item"] = { write: { target: "layerDefinition.drawingInfo.transparency", writer(db, aa, U) { F.setDeepValue(U, Ia.opacityToTransparency(db), aa) } } }; return Ya
  4058. })())], h.prototype, "opacity", void 0); c.__decorate([E.property({ type: Number, json: { origins: { service: { read: { source: "id" } }, "portal-item": { read: !1, write: { target: "id" } } }, read: !1 } })], h.prototype, "layerId", void 0); c.__decorate([E.property(pa.legendEnabled)], h.prototype, "legendEnabled", void 0); c.__decorate([E.property({
  4059. type: ["show", "hide"], json: (() => { const Ya = z.clone(pa.listMode.json); Ya.origins["portal-item"] = { read: !1, write: !1 }; return Ya })()
  4060. })], h.prototype, "listMode", void 0); c.__decorate([E.property(pa.minScale)], h.prototype, "minScale", void 0); c.__decorate([H.reader("service", "minScale", ["minScale", "effectiveMinScale"])], h.prototype, "readMinScale", null); c.__decorate([E.property(pa.maxScale)], h.prototype, "maxScale", void 0); c.__decorate([H.reader("service", "maxScale", ["maxScale", "effectiveMaxScale"])], h.prototype, "readMaxScale", null); c.__decorate([E.property({ type: String })],
  4061. h.prototype, "globalIdField", void 0); c.__decorate([H.reader("globalIdField", ["layerDefinition.globalIdField", "layerDefinition.fields"]), H.reader("service", "globalIdField", ["globalIdField", "fields"])], h.prototype, "readGlobalIdFieldFromService", null); c.__decorate([E.property({ type: String, json: { origins: { "web-map": { write: { target: "layerDefinition.objectIdField", overridePolicy: qa } } } } })], h.prototype, "objectIdField", void 0); c.__decorate([H.reader("objectIdField", ["layerDefinition.objectIdField", "layerDefinition.fields"]),
  4062. H.reader("service", "objectIdField", ["objectIdField", "fields"])], h.prototype, "readObjectIdFieldFromService", null); c.__decorate([E.property({ value: "ArcGISFeatureLayer", type: ["ArcGISFeatureLayer"] })], h.prototype, "operationalLayerType", void 0); c.__decorate([E.property(d.outFields)], h.prototype, "outFields", void 0); c.__decorate([E.property({ readOnly: !0 })], h.prototype, "parsedUrl", null); c.__decorate([E.property({ type: String, json: { origins: { "web-scene": { read: !0, write: !0 } }, read: !1 } })], h.prototype, "path", void 0);
  4063. c.__decorate([E.property(pa.popupEnabled)], h.prototype, "popupEnabled", void 0); c.__decorate([E.property({ type: e, json: { name: "popupInfo", write: !0 } })], h.prototype, "popupTemplate", void 0); c.__decorate([E.property({ readOnly: !0 })], h.prototype, "defaultPopupTemplate", null); c.__decorate([E.property({ type: [ja], readOnly: !0 })], h.prototype, "relationships", void 0); c.__decorate([E.property({
  4064. types: n.rendererTypes, json: {
  4065. origins: {
  4066. service: { write: { target: "drawingInfo.renderer", enabled: !1 } }, "web-scene": {
  4067. types: n.webSceneRendererTypes,
  4068. name: "layerDefinition.drawingInfo.renderer", write: { overridePolicy(Ya, db, aa) { return { ignoreOrigin: null == aa ? void 0 : aa.writeLayerSchema } } }
  4069. }
  4070. }, write: { target: "layerDefinition.drawingInfo.renderer", overridePolicy(Ya, db, aa) { return { ignoreOrigin: null == aa ? void 0 : aa.writeLayerSchema } } }
  4071. }
  4072. })], h.prototype, "renderer", null); c.__decorate([H.reader("service", "renderer", ["drawingInfo.renderer", "defaultSymbol"]), H.reader("renderer", ["layerDefinition.drawingInfo.renderer", "layerDefinition.defaultSymbol"])], h.prototype, "readRenderer",
  4073. null); c.__decorate([E.property()], h.prototype, "sourceJSON", void 0); c.__decorate([E.property({ type: Boolean })], h.prototype, "returnM", void 0); c.__decorate([E.property({ type: Boolean })], h.prototype, "returnZ", void 0); c.__decorate([E.property((() => { const Ya = z.clone(pa.screenSizePerspectiveEnabled); Ya.json.origins["portal-item"] = { read: !1, write: !1 }; return Ya })())], h.prototype, "screenSizePerspectiveEnabled", void 0); c.__decorate([E.property({ clonable: !1 })], h.prototype, "source", null); c.__decorate([G.cast("source")],
  4074. h.prototype, "castSource", null); c.__decorate([H.reader("portal-item", "source", ["featureSet"]), H.reader("web-map", "source", ["featureSet"])], h.prototype, "readSource", null); c.__decorate([E.property({ readOnly: !0 })], h.prototype, "serviceDefinitionExpression", void 0); c.__decorate([H.reader("service", "serviceDefinitionExpression", ["definitionQuery", "definitionExpression"])], h.prototype, "readServiceDefinitionExpression", null); c.__decorate([E.property({
  4075. type: na, json: {
  4076. origins: { service: { read: { source: "extent.spatialReference" } } },
  4077. read: { source: "layerDefinition.extent.spatialReference" }
  4078. }
  4079. })], h.prototype, "spatialReference", void 0); c.__decorate([E.property({ type: Number })], h.prototype, "subtypeCode", void 0); c.__decorate([E.property({ type: String, json: { origins: { service: { read: !0 } } } })], h.prototype, "subtypeField", void 0); c.__decorate([E.property({ type: [R] })], h.prototype, "templates", void 0); c.__decorate([H.reader("templates", ["editFieldsInfo", "creatorField", "editorField", "templates"])], h.prototype, "readTemplates", null); c.__decorate([E.property({ type: wa })],
  4080. h.prototype, "timeInfo", void 0); c.__decorate([E.property()], h.prototype, "title", void 0); c.__decorate([H.reader("service", "title", ["name"]), H.reader("portal-item", "title", ["layerDefinition.title", "layerDefinition.name", "title"])], h.prototype, "readTitle", null); c.__decorate([H.reader("web-map", "title", ["layerDefinition.name", "title"])], h.prototype, "readTitleFromWebMap", null); c.__decorate([E.property({ type: String })], h.prototype, "sublayerTitleMode", void 0); c.__decorate([E.property({ type: String, json: { read: { source: "timeInfo.trackIdField" } } })],
  4081. h.prototype, "trackIdField", void 0); c.__decorate([E.property({ json: { read: !1 } })], h.prototype, "type", void 0); c.__decorate([E.property({ type: String })], h.prototype, "typeIdField", void 0); c.__decorate([H.reader("service", "typeIdField"), H.reader("typeIdField", ["layerDefinition.typeIdField"])], h.prototype, "readTypeIdField", null); c.__decorate([E.property({ type: [X] })], h.prototype, "types", void 0); c.__decorate([H.reader("service", "types", ["types"]), H.reader("types", ["layerDefinition.types"])], h.prototype, "readTypes",
  4082. null); c.__decorate([E.property({ readOnly: !0, json: { write: !1 } })], h.prototype, "serverGens", void 0); c.__decorate([E.property({ type: v.ofType(la.FeatureIndex), readOnly: !0 })], h.prototype, "indexes", void 0); c.__decorate([E.property(pa.url)], h.prototype, "url", null); c.__decorate([S.writer("url")], h.prototype, "writeUrl", null); c.__decorate([E.property({ readOnly: !0 })], h.prototype, "userIsAdmin", void 0); c.__decorate([E.property({ json: { origins: { service: { read: !0 } }, read: !1 } })], h.prototype, "version", void 0); c.__decorate([H.reader("service",
  4083. "version", "currentVersion capabilities drawingInfo hasAttachments htmlPopupType relationships timeInfo typeIdField types".split(" "))], h.prototype, "readVersion", null); c.__decorate([E.property({ type: Boolean, json: { origins: { "portal-item": { write: { target: "layerDefinition.defaultVisibility" } } } } })], h.prototype, "visible", void 0); c.__decorate([H.reader("portal-item", "visible", ["visibility", "layerDefinition.defaultVisibility"])], h.prototype, "readVisible", null); h = c.__decorate([K.subclass("esri.layers.FeatureLayer")],
  4084. h); const jb = fa.createTypeReader({ types: f.symbolTypesRenderer }); return h
  4085. })
  4086. }, "esri/PopupTemplate": function () {
  4087. define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Collection ./core/JSONSupport ./core/lang ./core/Logger ./core/promiseUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./core/accessorSupport/ensureType ./layers/support/fieldUtils ./popup/content ./popup/ExpressionInfo ./popup/FieldInfo ./popup/LayerOptions ./popup/RelatedRecordsInfo ./popup/content/support/mediaInfoTypes ./support/actions/ActionBase ./support/actions/ActionButton ./support/actions/ActionToggle ./popup/content/MediaContent ./popup/content/TextContent ./popup/content/AttachmentsContent ./popup/content/FieldsContent ./popup/content/ExpressionContent ./popup/content/Content ./popup/content/CustomContent".split(" "),
  4088. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F, J, M, N) {
  4089. var E; w = c.ofType({ key: "type", defaultKeyValue: "button", base: w, typeMap: { button: x, toggle: z } }); const G = { base: M, key: "type", typeMap: { media: C, custom: N, text: A, attachments: D, fields: F, expression: J } }, H = l.getLogger("esri.PopupTemplate"), K = ["attachments", "fields", "media", "text", "expression"]; e = E = function (S) {
  4090. function fa() {
  4091. var ba = S.apply(this, arguments) || this; ba.actions = null; ba.content = ""; ba.expressionInfos = null; ba.fieldInfos = null; ba.layerOptions =
  4092. null; ba.lastEditInfoEnabled = !0; ba.outFields = null; ba.overwriteActions = !1; ba.returnGeometry = !1; ba.title = ""; ba.relatedRecordsInfo = null; return ba
  4093. } a._inheritsLoose(fa, S); var ha = fa.prototype; ha.castContent = function (ba) { if (Array.isArray(ba)) return ba.map(O => t.ensureOneOfType(G, O)); if ("string" === typeof ba || "function" === typeof ba || ba instanceof HTMLElement || r.isPromiseLike(ba)) return ba; H.error("content error", "unsupported content value", { value: ba }); return null }; ha.readContent = function (ba, O) {
  4094. ({ popupElements: ba } =
  4095. O); return Array.isArray(ba) && 0 < ba.length ? this._readPopupInfoElements(O) : this._readPopupInfo(O)
  4096. }; ha.writeContent = function (ba, O, na, ra) { "string" === typeof ba ? O.description = ba : Array.isArray(ba) && (O.popupElements = ba.filter(Da => K.includes(Da.type)).map(Da => Da && Da.toJSON(ra)), O.popupElements.forEach(Da => { "attachments" === Da.type ? this._writeAttachmentContent(O) : "media" === Da.type ? this._writeMediaContent(Da, O) : "text" === Da.type && this._writeTextContent(Da, O) })) }; ha.writeFieldInfos = function (ba, O, na, ra) {
  4097. ({ content: na } =
  4098. this); na = Array.isArray(na) ? na : null; if (ba) { const Da = na ? na.filter(sa => "fields" === sa.type) : [], Ka = Da.length && Da.every(sa => { var W; return null == (W = sa.fieldInfos) ? void 0 : W.length }); O.fieldInfos = ba.filter(Boolean).map(sa => { sa = sa.toJSON(ra); Ka && (sa.visible = !1); return sa }) } if (na) for (const Da of na) "fields" === Da.type && this._writeFieldsContent(Da, O)
  4099. }; ha.writeLayerOptions = function (ba, O, na, ra) { O[na] = !ba || null === ba.showNoDataRecords && null === ba.returnTopmostRaster ? null : ba.toJSON(ra) }; ha.writeTitle = function (ba, O) {
  4100. O.title =
  4101. ba || ""
  4102. }; ha.clone = function () {
  4103. var { actions: ba } = this; ba = ba ? d.clone(ba.toArray()) : []; return new E({
  4104. actions: ba, content: Array.isArray(this.content) ? d.clone(this.content) : this.content, expressionInfos: Array.isArray(this.expressionInfos) ? d.clone(this.expressionInfos) : null, fieldInfos: Array.isArray(this.fieldInfos) ? d.clone(this.fieldInfos) : null, layerOptions: this.layerOptions ? d.clone(this.layerOptions) : null, lastEditInfoEnabled: this.lastEditInfoEnabled, outFields: Array.isArray(this.outFields) ? d.clone(this.outFields) :
  4105. null, overwriteActions: this.overwriteActions, returnGeometry: this.returnGeometry, title: this.title, relatedRecordsInfo: this.relatedRecordsInfo ? d.clone(this.relatedRecordsInfo) : null
  4106. })
  4107. }; ha.collectRequiredFields = function () {
  4108. var ba = a._asyncToGenerator(function* (O, na) {
  4109. const ra = this.expressionInfos || []; yield this._collectExpressionInfoFields(O, na, [...ra, ...this._getContentExpressionInfos(this.content, ra)]); n.collectFields(O, na, [...this.outFields || [], ...this._getActionsFields(this.actions), ...this._getTitleFields(this.title),
  4110. ...this._getContentFields(this.content)])
  4111. }); return function (O, na) { return ba.apply(this, arguments) }
  4112. }(); ha.getRequiredFields = function () { var ba = a._asyncToGenerator(function* (O) { const na = new Set; yield this.collectRequiredFields(na, O); return [...na].sort() }); return function (O) { return ba.apply(this, arguments) } }(); ha._writeFieldsContent = function (ba, O) {
  4113. Array.isArray(ba.fieldInfos) && ba.fieldInfos.length && (ba = d.clone(ba.fieldInfos), Array.isArray(O.fieldInfos) ? ba.forEach(na => {
  4114. const ra = O.fieldInfos.find(Da => Da.fieldName.toLowerCase() ===
  4115. na.fieldName.toLowerCase()); ra ? ra.visible = !0 : O.fieldInfos.push(na)
  4116. }) : O.fieldInfos = ba)
  4117. }; ha._writeAttachmentContent = function (ba) { ba.showAttachments || (ba.showAttachments = !0) }; ha._writeTextContent = function (ba, O) { !O.description && ba.text && (O.description = ba.text) }; ha._writeMediaContent = function (ba, O) { Array.isArray(ba.mediaInfos) && ba.mediaInfos.length && (ba = d.clone(ba.mediaInfos), Array.isArray(O.mediaInfos) ? O.mediaInfos = [...O.mediaInfos, ...ba] : O.mediaInfos = ba) }; ha._readPopupInfoElements = function ({ description: ba,
  4118. mediaInfos: O, popupElements: na }) { var ra = !1, Da = !1; return na.map(Ka => { if ("media" === Ka.type) return Ka.mediaInfos || !O || Da || (Ka.mediaInfos = O, Da = !0), C.fromJSON(Ka); if ("text" === Ka.type) return Ka.text || !ba || ra || (Ka.text = ba, ra = !0), A.fromJSON(Ka); if ("attachments" === Ka.type) return D.fromJSON(Ka); if ("fields" === Ka.type) return F.fromJSON(Ka); if ("expression" === Ka.type) return J.fromJSON(Ka) }).filter(Boolean) }; ha._readPopupInfo = function ({ description: ba, mediaInfos: O, showAttachments: na }) {
  4119. const ra = []; ba ? ra.push(new A({ text: ba })) :
  4120. ra.push(new F); Array.isArray(O) && O.length && ra.push(C.fromJSON({ mediaInfos: O })); na && ra.push(D.fromJSON({ displayType: "auto" })); return ra.length ? ra : ba
  4121. }; ha._getContentElementFields = function (ba) {
  4122. var O = null == ba ? void 0 : ba.type; return "attachments" === O ? [...this._extractFieldNames(ba.title), ...this._extractFieldNames(ba.description)] : "custom" === O ? ba.outFields || [] : "fields" === O ? [...this._extractFieldNames(ba.title), ...this._extractFieldNames(ba.description), ...this._getFieldInfoFields(ba.fieldInfos || this.fieldInfos)] :
  4123. "media" === O ? (O = ba.mediaInfos || [], [...this._extractFieldNames(ba.title), ...this._extractFieldNames(ba.description), ...O.reduce((na, ra) => [...na, ...this._getMediaInfoFields(ra)], [])]) : "text" === O ? this._extractFieldNames(ba.text) : []
  4124. }; ha._getMediaInfoFields = function (ba) {
  4125. const { caption: O, title: na, value: ra } = ba, { fields: Da = [], normalizeField: Ka, tooltipField: sa, sourceURL: W, linkURL: oa } = ra || {}; ba = [...this._extractFieldNames(na), ...this._extractFieldNames(O), ...this._extractFieldNames(W), ...this._extractFieldNames(oa),
  4126. ...Da]; Ka && ba.push(Ka); sa && ba.push(sa); return ba
  4127. }; ha._getContentExpressionInfos = function (ba, O) { return Array.isArray(ba) ? ba.reduce((na, ra) => [...na, ..."expression" === ra.type && ra.expressionInfo ? [ra.expressionInfo] : []], O) : [] }; ha._getContentFields = function (ba) { return "string" === typeof ba ? this._extractFieldNames(ba) : Array.isArray(ba) ? ba.reduce((O, na) => [...O, ...this._getContentElementFields(na)], []) : [] }; ha._collectExpressionInfoFields = function () {
  4128. var ba = a._asyncToGenerator(function* (O, na, ra) {
  4129. ra && (yield Promise.all(ra.map(Da =>
  4130. n.collectArcadeFieldNames(O, na, Da.expression))))
  4131. }); return function (O, na, ra) { return ba.apply(this, arguments) }
  4132. }(); ha._getFieldInfoFields = function (ba) { return ba ? ba.filter(O => "undefined" === typeof O.visible ? !0 : !!O.visible).map(O => O.fieldName).filter(O => !O.includes("relationships/") && !O.includes("expression/")) : [] }; ha._getActionsFields = function (ba) { return ba ? ba.toArray().reduce((O, na) => [...O, ...this._getActionFields(na)], []) : [] }; ha._getActionFields = function (ba) {
  4133. const { className: O, title: na, type: ra } = ba; ba =
  4134. "button" === ra || "toggle" === ra ? ba.image : ""; return [...this._extractFieldNames(na), ...this._extractFieldNames(O), ...this._extractFieldNames(ba)]
  4135. }; ha._getTitleFields = function (ba) { return "string" === typeof ba ? this._extractFieldNames(ba) : [] }; ha._extractFieldNames = function (ba) {
  4136. if (!ba || "string" !== typeof ba) return []; ba = ba.match(/{[^}]*}/g); if (!ba) return []; const O = /\{(\w+):.+\}/; return (ba = ba.filter(na => !(0 === na.indexOf("{relationships/") || 0 === na.indexOf("{expression/"))).map(na => na.replace(O, "{$1}"))) ? ba.map(na =>
  4137. na.slice(1, -1)) : []
  4138. }; return fa
  4139. }(e.JSONSupport); b.__decorate([q.property({ type: w })], e.prototype, "actions", void 0); b.__decorate([q.property()], e.prototype, "content", void 0); b.__decorate([k.cast("content")], e.prototype, "castContent", null); b.__decorate([m.reader("content", ["description", "fieldInfos", "popupElements", "mediaInfos", "showAttachments"])], e.prototype, "readContent", null); b.__decorate([p.writer("content", {
  4140. popupElements: { type: c.ofType(u.persistableTypes) }, showAttachments: { type: Boolean }, mediaInfos: { type: c.ofType(B.types) },
  4141. description: { type: String }
  4142. })], e.prototype, "writeContent", null); b.__decorate([q.property({ type: [f], json: { write: !0 } })], e.prototype, "expressionInfos", void 0); b.__decorate([q.property({ type: [h] })], e.prototype, "fieldInfos", void 0); b.__decorate([p.writer("fieldInfos")], e.prototype, "writeFieldInfos", null); b.__decorate([q.property({ type: v })], e.prototype, "layerOptions", void 0); b.__decorate([p.writer("layerOptions")], e.prototype, "writeLayerOptions", null); b.__decorate([q.property({
  4143. type: Boolean, json: {
  4144. read: { source: "showLastEditInfo" },
  4145. write: { target: "showLastEditInfo" }, default: !0
  4146. }
  4147. })], e.prototype, "lastEditInfoEnabled", void 0); b.__decorate([q.property()], e.prototype, "outFields", void 0); b.__decorate([q.property()], e.prototype, "overwriteActions", void 0); b.__decorate([q.property()], e.prototype, "returnGeometry", void 0); b.__decorate([q.property({ json: { type: String } })], e.prototype, "title", void 0); b.__decorate([p.writer("title")], e.prototype, "writeTitle", null); b.__decorate([q.property({ type: y, json: { write: !0 } })], e.prototype, "relatedRecordsInfo",
  4148. void 0); return e = E = b.__decorate([g.subclass("esri.PopupTemplate")], e)
  4149. })
  4150. }, "esri/popup/content": function () {
  4151. define("exports ./content/AttachmentsContent ./content/Content ./content/CustomContent ./content/ExpressionContent ./content/FieldsContent ./content/MediaContent ./content/TextContent".split(" "), function (a, b, c, e, d, l, r, q) {
  4152. const k = { base: null, key: "type", typeMap: { attachment: b, media: r, text: q, expression: d, field: l } }; a.AttachmentsContent = b; a.BaseContent = c; a.CustomContent = e; a.ExpressionContent = d; a.FieldsContent =
  4153. l; a.MediaContent = r; a.TextContent = q; a.isContent = function (m) { return m instanceof c }; a.persistableTypes = k; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4154. })
  4155. }, "esri/popup/content/AttachmentsContent": function () {
  4156. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
  4157. function (a, b, c, e, d, l, r, q) {
  4158. var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.description = null; p.displayType = "auto"; p.title = null; p.type = "attachments"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ description: this.description, displayType: this.displayType, title: this.title }) }; return g }(q); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "description", void 0); b.__decorate([c.property({ type: ["auto", "preview", "list"], json: { write: !0 } })], e.prototype,
  4159. "displayType", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "title", void 0); b.__decorate([c.property({ type: ["attachments"], readOnly: !0, json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.popup.content.AttachmentsContent")], e)
  4160. })
  4161. }, "esri/popup/content/Content": function () {
  4162. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  4163. function (a, b, c, e, d, l, r, q) { c = function (k) { function m(g) { g = k.call(this, g) || this; g.type = null; return g } a._inheritsLoose(m, k); return m }(c.JSONSupport); b.__decorate([e.property({ type: "attachments custom fields media text expression".split(" "), readOnly: !0, json: { read: !1, write: !0 } })], c.prototype, "type", void 0); return c = b.__decorate([q.subclass("esri.popup.content.Content")], c) })
  4164. }, "esri/popup/content/CustomContent": function () {
  4165. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
  4166. function (a, b, c, e, d, l, r) {
  4167. var q; d = q = function (k) { function m(g) { g = k.call(this, g) || this; g.creator = null; g.destroyer = null; g.outFields = null; g.type = "custom"; return g } a._inheritsLoose(m, k); m.prototype.clone = function () { return new q({ creator: this.creator, destroyer: this.destroyer, outFields: Array.isArray(this.outFields) ? c.clone(this.outFields) : null }) }; return m }(r); b.__decorate([e.property()], d.prototype, "creator", void 0); b.__decorate([e.property()], d.prototype, "destroyer", void 0); b.__decorate([e.property()], d.prototype,
  4168. "outFields", void 0); b.__decorate([e.property({ type: ["custom"], readOnly: !0 })], d.prototype, "type", void 0); return d = q = b.__decorate([l.subclass("esri.popup.content.CustomContent")], d)
  4169. })
  4170. }, "esri/popup/content/ExpressionContent": function () {
  4171. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../ElementExpressionInfo ./Content".split(" "),
  4172. function (a, b, c, e, d, l, r, q, k) {
  4173. var m; e = m = function (g) { function p(t) { t = g.call(this, t) || this; t.expressionInfo = null; t.type = "expression"; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { var t; return new m({ expressionInfo: null == (t = this.expressionInfo) ? void 0 : t.clone() }) }; return p }(k); b.__decorate([c.property({ type: q, json: { write: !0 } })], e.prototype, "expressionInfo", void 0); b.__decorate([c.property({ type: ["expression"], readOnly: !0, json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = m = b.__decorate([r.subclass("esri.popup.content.ExpressionContent")],
  4174. e)
  4175. })
  4176. }, "esri/popup/ElementExpressionInfo": function () {
  4177. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  4178. var k; c = k = function (m) {
  4179. function g(p) { p = m.call(this, p) || this; p.title = null; p.expression = null; p.returnType = "dictionary"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () {
  4180. return new k({
  4181. title: this.title,
  4182. expression: this.expression
  4183. })
  4184. }; return g
  4185. }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "title", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "expression", void 0); b.__decorate([e.property({ type: ["dictionary"], readOnly: !0, json: { read: !1, write: !0 } })], c.prototype, "returnType", void 0); return c = k = b.__decorate([q.subclass("esri.popup.ElementExpressionInfo")], c)
  4186. })
  4187. }, "esri/popup/content/FieldsContent": function () {
  4188. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../FieldInfo ./Content".split(" "),
  4189. function (a, b, c, e, d, l, r, q, k) {
  4190. var m; d = m = function (g) { function p(n) { n = g.call(this, n) || this; n.attributes = null; n.description = null; n.fieldInfos = null; n.title = null; n.type = "fields"; return n } a._inheritsLoose(p, g); var t = p.prototype; t.writeFieldInfos = function (n, u) { u.fieldInfos = n && n.map(f => f.toJSON()) }; t.clone = function () { return new m(c.clone({ attributes: this.attributes, description: this.description, fieldInfos: this.fieldInfos, title: this.title })) }; return p }(k); b.__decorate([e.property({ type: Object, json: { write: !0 } })],
  4191. d.prototype, "attributes", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], d.prototype, "description", void 0); b.__decorate([e.property({ type: [q] })], d.prototype, "fieldInfos", void 0); b.__decorate([r.writer("fieldInfos")], d.prototype, "writeFieldInfos", null); b.__decorate([e.property({ type: String, json: { write: !0 } })], d.prototype, "title", void 0); b.__decorate([e.property({ type: ["fields"], readOnly: !0, json: { read: !1, write: !0 } })], d.prototype, "type", void 0); return d = m = b.__decorate([l.subclass("esri.popup.content.FieldsContent")],
  4192. d)
  4193. })
  4194. }, "esri/popup/FieldInfo": function () {
  4195. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./support/FieldInfoFormat".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  4196. var g; e = g = function (p) {
  4197. function t(n) {
  4198. n = p.call(this, n) || this; n.fieldName = null; n.format = null; n.isEditable = !1; n.label =
  4199. null; n.stringFieldOption = "text-box"; n.statisticType = null; n.tooltip = null; n.visible = !0; return n
  4200. } a._inheritsLoose(t, p); t.prototype.clone = function () { return new g({ fieldName: this.fieldName, format: this.format ? d.clone(this.format) : null, isEditable: this.isEditable, label: this.label, stringFieldOption: this.stringFieldOption, statisticType: this.statisticType, tooltip: this.tooltip, visible: this.visible }) }; return t
  4201. }(e.JSONSupport); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "fieldName", void 0);
  4202. b.__decorate([l.property({ type: m, json: { write: !0 } })], e.prototype, "format", void 0); b.__decorate([l.property({ type: Boolean, json: { write: !0, default: !1 } })], e.prototype, "isEditable", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "label", void 0); b.__decorate([q.enumeration(new c.JSONMap({ richtext: "rich-text", textarea: "text-area", textbox: "text-box" }), { default: "text-box" })], e.prototype, "stringFieldOption", void 0); b.__decorate([l.property({
  4203. type: "count sum min max avg stddev var".split(" "),
  4204. json: { write: !0 }
  4205. })], e.prototype, "statisticType", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "tooltip", void 0); b.__decorate([l.property({ type: Boolean, json: { write: !0 } })], e.prototype, "visible", void 0); return e = g = b.__decorate([k.subclass("esri.popup.FieldInfo")], e)
  4206. })
  4207. }, "esri/popup/support/FieldInfoFormat": function () {
  4208. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/date ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../intl/date ../../intl/number".split(" "),
  4209. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4210. var t; e = t = function (n) {
  4211. function u(h) { h = n.call(this, h) || this; h.dateFormat = null; h.dateTimeFormatOptions = null; h.digitSeparator = !1; h.places = null; return h } a._inheritsLoose(u, n); var f = u.prototype; f.clone = function () { return new t({ dateFormat: this.dateFormat, digitSeparator: this.digitSeparator, places: this.places }) }; f.format = function (h) {
  4212. return this.dateFormat ? g.formatDate(h, { ...g.convertDateFormatToIntlOptions(this.dateFormat), ...this.dateTimeFormatOptions }) : p.formatNumber(h,
  4213. p.convertNumberFormatToIntlOptions(this))
  4214. }; f.formatRasterPixelValue = function (h) { let v; return h.trim().includes(",") ? (v = ",", this._formatDelimitedString(h, v, v + " ", this)) : h.trim().includes(";") ? (v = ";", this._formatDelimitedString(h, v, v + " ", this)) : h.trim().includes(" ") ? this._formatDelimitedString(h, " ", " ", this) : this.format(Number(h)) }; f._formatDelimitedString = function (h, v, y, B) { return h && v && y && B ? h.trim().split(v).map(w => this.format(Number(w))).join(y) : h }; return u
  4215. }(e.JSONSupport); b.__decorate([k.enumeration(c.dictionary)],
  4216. e.prototype, "dateFormat", void 0); b.__decorate([d.property({ type: Object, json: { read: !1 } })], e.prototype, "dateTimeFormatOptions", void 0); b.__decorate([d.property({ type: Boolean, json: { write: !0 } })], e.prototype, "digitSeparator", void 0); b.__decorate([d.property({ type: q.Integer, json: { write: !0 } })], e.prototype, "places", void 0); return e = t = b.__decorate([m.subclass("esri.popup.support.FieldInfoFormat")], e)
  4217. })
  4218. }, "esri/core/date": function () {
  4219. define(["exports", "./jsonMap"], function (a, b) {
  4220. const c = {
  4221. "short-date": "(datePattern: 'M/d/y', selector: 'date')",
  4222. "short-date-short-time": "(datePattern: 'M/d/y', timePattern: 'h:mm a', selector: 'date and time')", "short-date-short-time-24": "(datePattern: 'M/d/y', timePattern: 'H:mm', selector: 'date and time')", "short-date-long-time": "(datePattern: 'M/d/y', timePattern: 'h:mm:ss a', selector: 'date and time')", "short-date-long-time-24": "(datePattern: 'M/d/y', timePattern: 'H:mm:ss', selector: 'date and time')", "short-date-le": "(datePattern: 'd/M/y', selector: 'date')", "short-date-le-short-time": "(datePattern: 'd/M/y', timePattern: 'h:mm a', selector: 'date and time')",
  4223. "short-date-le-short-time-24": "(datePattern: 'd/M/y', timePattern: 'H:mm', selector: 'date and time')", "short-date-le-long-time": "(datePattern: 'd/M/y', timePattern: 'h:mm:ss a', selector: 'date and time')", "short-date-le-long-time-24": "(datePattern: 'd/M/y', timePattern: 'H:mm:ss', selector: 'date and time')", "long-month-day-year": "(datePattern: 'MMMM d, y', selector: 'date')", "long-month-day-year-short-time": "(datePattern: 'MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')", "long-month-day-year-short-time-24": "(datePattern: 'MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",
  4224. "long-month-day-year-long-time": "(datePattern: 'MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')", "long-month-day-year-long-time-24": "(datePattern: 'MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')", "day-short-month-year": "(datePattern: 'd MMM y', selector: 'date')", "day-short-month-year-short-time": "(datePattern: 'd MMM y', timePattern: 'h:mm a', selector: 'date and time')", "day-short-month-year-short-time-24": "(datePattern: 'd MMM y', timePattern: 'H:mm', selector: 'date and time')",
  4225. "day-short-month-year-long-time": "(datePattern: 'd MMM y', timePattern: 'h:mm:ss a', selector: 'date and time')", "day-short-month-year-long-time-24": "(datePattern: 'd MMM y', timePattern: 'H:mm:ss', selector: 'date and time')", "long-date": "(datePattern: 'EEEE, MMMM d, y', selector: 'date')", "long-date-short-time": "(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')", "long-date-short-time-24": "(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",
  4226. "long-date-long-time": "(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')", "long-date-long-time-24": "(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')", "long-month-year": "(datePattern: 'MMMM y', selector: 'date')", "short-month-year": "(datePattern: 'MMM y', selector: 'date')", year: "(datePattern: 'y', selector: 'date')"
  4227. }; b = b.strict()({
  4228. shortDate: "short-date", shortDateShortTime: "short-date-short-time", shortDateShortTime24: "short-date-short-time-24",
  4229. shortDateLongTime: "short-date-long-time", shortDateLongTime24: "short-date-long-time-24", shortDateLE: "short-date-le", shortDateLEShortTime: "short-date-le-short-time", shortDateLEShortTime24: "short-date-le-short-time-24", shortDateLELongTime: "short-date-le-long-time", shortDateLELongTime24: "short-date-le-long-time-24", longMonthDayYear: "long-month-day-year", longMonthDayYearShortTime: "long-month-day-year-short-time", longMonthDayYearShortTime24: "long-month-day-year-short-time-24", longMonthDayYearLongTime: "long-month-day-year-long-time",
  4230. longMonthDayYearLongTime24: "long-month-day-year-long-time-24", dayShortMonthYear: "day-short-month-year", dayShortMonthYearShortTime: "day-short-month-year-short-time", dayShortMonthYearShortTime24: "day-short-month-year-short-time-24", dayShortMonthYearLongTime: "day-short-month-year-long-time", dayShortMonthYearLongTime24: "day-short-month-year-long-time-24", longDate: "long-date", longDateShortTime: "long-date-short-time", longDateShortTime24: "long-date-short-time-24", longDateLongTime: "long-date-long-time", longDateLongTime24: "long-date-long-time-24",
  4231. longMonthYear: "long-month-year", shortMonthYear: "short-month-year", year: "year"
  4232. }); const e = b.toJSON.bind(b), d = b.fromJSON.bind(b); a.dictionary = b; a.formats = c; a.fromJSON = d; a.getFormat = function (l) { return c[l] }; a.toJSON = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4233. })
  4234. }, "esri/intl/date": function () {
  4235. define(["exports", "../core/jsonMap", "./locale"], function (a, b, c) {
  4236. function e(u) {
  4237. u = u || n; if (!t.has(u)) {
  4238. var f = c.getLocale(); f = p[c.getLocale()] || f; t.set(u, new Intl.DateTimeFormat(f,
  4239. u))
  4240. } return t.get(u)
  4241. } var d = { year: "numeric", month: "numeric", day: "numeric" }, l = { year: "numeric", month: "long", day: "numeric" }, r = { year: "numeric", month: "short", day: "numeric" }; const q = { year: "numeric", month: "long", weekday: "long", day: "numeric" }, k = { hour: "numeric", minute: "numeric" }, m = { ...k, second: "numeric" }, g = {
  4242. "short-date": d, "short-date-short-time": { ...d, ...k }, "short-date-short-time-24": { ...d, ...k, hour12: !1 }, "short-date-long-time": { ...d, ...m }, "short-date-long-time-24": { ...d, ...m, hour12: !1 }, "short-date-le": d, "short-date-le-short-time": {
  4243. ...d,
  4244. ...k
  4245. }, "short-date-le-short-time-24": { ...d, ...k, hour12: !1 }, "short-date-le-long-time": { ...d, ...m }, "short-date-le-long-time-24": { ...d, ...m, hour12: !1 }, "long-month-day-year": l, "long-month-day-year-short-time": { ...l, ...k }, "long-month-day-year-short-time-24": { ...l, ...k, hour12: !1 }, "long-month-day-year-long-time": { ...l, ...m }, "long-month-day-year-long-time-24": { ...l, ...m, hour12: !1 }, "day-short-month-year": r, "day-short-month-year-short-time": { ...r, ...k }, "day-short-month-year-short-time-24": { ...r, ...k, hour12: !1 },
  4246. "day-short-month-year-long-time": { ...r, ...m }, "day-short-month-year-long-time-24": { ...r, ...m, hour12: !1 }, "long-date": q, "long-date-short-time": { ...q, ...k }, "long-date-short-time-24": { ...q, ...k, hour12: !1 }, "long-date-long-time": { ...q, ...m }, "long-date-long-time-24": { ...q, ...m, hour12: !1 }, "long-month-year": { month: "long", year: "numeric" }, "short-month-year": { month: "short", year: "numeric" }, year: { year: "numeric" }, "short-time": k, "long-time": m
  4247. }; b = b.strict()({
  4248. shortDate: "short-date", shortDateShortTime: "short-date-short-time",
  4249. shortDateShortTime24: "short-date-short-time-24", shortDateLongTime: "short-date-long-time", shortDateLongTime24: "short-date-long-time-24", shortDateLE: "short-date-le", shortDateLEShortTime: "short-date-le-short-time", shortDateLEShortTime24: "short-date-le-short-time-24", shortDateLELongTime: "short-date-le-long-time", shortDateLELongTime24: "short-date-le-long-time-24", longMonthDayYear: "long-month-day-year", longMonthDayYearShortTime: "long-month-day-year-short-time", longMonthDayYearShortTime24: "long-month-day-year-short-time-24",
  4250. longMonthDayYearLongTime: "long-month-day-year-long-time", longMonthDayYearLongTime24: "long-month-day-year-long-time-24", dayShortMonthYear: "day-short-month-year", dayShortMonthYearShortTime: "day-short-month-year-short-time", dayShortMonthYearShortTime24: "day-short-month-year-short-time-24", dayShortMonthYearLongTime: "day-short-month-year-long-time", dayShortMonthYearLongTime24: "day-short-month-year-long-time-24", longDate: "long-date", longDateShortTime: "long-date-short-time", longDateShortTime24: "long-date-short-time-24",
  4251. longDateLongTime: "long-date-long-time", longDateLongTime24: "long-date-long-time-24", longMonthYear: "long-month-year", shortMonthYear: "short-month-year", year: "year"
  4252. }); d = b.apiValues; l = b.toJSON.bind(b); r = b.fromJSON.bind(b); const p = { ar: "ar-u-nu-latn-ca-gregory" }; let t = new WeakMap, n = g["short-date-short-time"]; c.beforeLocaleChange(() => { t = new WeakMap; n = g["short-date-short-time"] }); a.convertDateFormatToIntlOptions = function (u) { return g[u] || null }; a.dateFormats = d; a.dictionary = b; a.formatDate = function (u, f) { return e(f).format(u) };
  4253. a.fromJSON = r; a.getDateTimeFormatter = e; a.toJSON = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4254. })
  4255. }, "esri/intl/number": function () {
  4256. define(["exports", "../core/maybe", "./locale"], function (a, b, c) {
  4257. function e(q) { const k = q || r; if (!l.has(k)) { var m = c.getLocale(); m = d[c.getLocale()] || m; l.set(k, new Intl.NumberFormat(m, q)) } return b.assumeNonNull(l.get(k)) } const d = { ar: "ar-u-nu-latn" }; let l = new WeakMap, r = {}; c.beforeLocaleChange(() => { l = new WeakMap; r = {} }); a.convertNumberFormatToIntlOptions =
  4258. function (q = {}) { const k = {}; null != q.digitSeparator && (k.useGrouping = q.digitSeparator); null != q.places && (k.minimumFractionDigits = k.maximumFractionDigits = q.places); return k }; a.formatNumber = function (q, k) { -0 === q && (q = 0); return e(k).format(q) }; a.getFormatter = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4259. })
  4260. }, "esri/popup/content/MediaContent": function () {
  4261. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./BarChartMediaInfo ./ColumnChartMediaInfo ./Content ./ImageMediaInfo ./LineChartMediaInfo ./PieChartMediaInfo ./support/mediaInfoTypes".split(" "),
  4262. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  4263. var f; d = f = function (h) {
  4264. function v(B) { B = h.call(this, B) || this; B.activeMediaInfoIndex = null; B.attributes = null; B.description = null; B.mediaInfos = null; B.title = null; B.type = "media"; return B } a._inheritsLoose(v, h); var y = v.prototype; y.readMediaInfos = function (B) {
  4265. return B && B.map(w => {
  4266. if ("image" === w.type) return p.fromJSON(w); if ("barchart" === w.type) return k.fromJSON(w); if ("columnchart" === w.type) return m.fromJSON(w); if ("linechart" === w.type) return t.fromJSON(w); if ("piechart" ===
  4267. w.type) return n.fromJSON(w)
  4268. }).filter(Boolean)
  4269. }; y.writeMediaInfos = function (B, w) { w.mediaInfos = B && B.map(x => x.toJSON()) }; y.clone = function () { return new f(c.clone({ activeMediaInfoIndex: this.activeMediaInfoIndex, attributes: this.attributes, description: this.description, mediaInfos: this.mediaInfos, title: this.title })) }; return v
  4270. }(g); b.__decorate([e.property()], d.prototype, "activeMediaInfoIndex", void 0); b.__decorate([e.property({ type: Object, json: { write: !0 } })], d.prototype, "attributes", void 0); b.__decorate([e.property({
  4271. type: String,
  4272. json: { write: !0 }
  4273. })], d.prototype, "description", void 0); b.__decorate([e.property({ types: [u.types] })], d.prototype, "mediaInfos", void 0); b.__decorate([l.reader("mediaInfos")], d.prototype, "readMediaInfos", null); b.__decorate([q.writer("mediaInfos")], d.prototype, "writeMediaInfos", null); b.__decorate([e.property({ type: String, json: { write: !0 } })], d.prototype, "title", void 0); b.__decorate([e.property({ type: ["media"], readOnly: !0, json: { read: !1, write: !0 } })], d.prototype, "type", void 0); return d = f = b.__decorate([r.subclass("esri.popup.content.MediaContent")],
  4274. d)
  4275. })
  4276. }, "esri/popup/content/BarChartMediaInfo": function () {
  4277. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4278. var m; e = m = function (g) {
  4279. function p(t) { t = g.call(this, t) || this; t.type = "bar-chart"; return t } a._inheritsLoose(p, g); p.prototype.clone =
  4280. function () { return new m({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null }) }; return p
  4281. }(q); b.__decorate([c.property({ type: ["bar-chart"], readOnly: !0, json: { type: ["barchart"], read: !1, write: k.chartTypeKebabDict.write } })], e.prototype, "type", void 0); return e = m = b.__decorate([r.subclass("esri.popup.content.BarChartMediaInfo")], e)
  4282. })
  4283. }, "esri/popup/content/mixins/ChartMediaInfo": function () {
  4284. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./MediaInfo ../support/ChartMediaInfoValue".split(" "),
  4285. function (a, b, c, e, d, l, r, q, k) { e = function (m) { function g(p) { p = m.call(this, p) || this; p.type = null; p.value = null; return p } a._inheritsLoose(g, m); return g }(q); b.__decorate([c.property({ type: ["bar-chart", "column-chart", "line-chart", "pie-chart"], readOnly: !0, json: { read: !1, write: !0 } })], e.prototype, "type", void 0); b.__decorate([c.property({ type: k, json: { write: !0 } })], e.prototype, "value", void 0); return e = b.__decorate([r.subclass("esri.popup.content.mixins.ChartMediaInfo")], e) })
  4286. }, "esri/popup/content/mixins/MediaInfo": function () {
  4287. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
  4288. function (a, b, c, e, d, l, r, q) {
  4289. c = function (k) { function m(g) { g = k.call(this, g) || this; g.altText = null; g.caption = ""; g.title = ""; g.type = null; return g } a._inheritsLoose(m, k); return m }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "altText", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "caption", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "title", void 0); b.__decorate([e.property({
  4290. type: ["image", "bar-chart", "column-chart",
  4291. "line-chart", "pie-chart"], readOnly: !0, json: { read: !1, write: !0 }
  4292. })], c.prototype, "type", void 0); return c = b.__decorate([q.subclass("esri.popup.content.mixins.MediaInfo")], c)
  4293. })
  4294. }, "esri/popup/content/support/ChartMediaInfoValue": function () {
  4295. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/lang ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./ChartMediaInfoValueSeries".split(" "),
  4296. function (a, b, c, e, d, l, r, q) {
  4297. var k; c = k = function (m) { function g(p) { p = m.call(this, p) || this; p.fields = []; p.normalizeField = null; p.series = []; p.tooltipField = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ fields: e.clone(this.fields), normalizeField: this.normalizeField, tooltipField: this.tooltipField }) }; return g }(c.JSONSupport); b.__decorate([d.property({ type: [String], json: { write: !0 } })], c.prototype, "fields", void 0); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype,
  4298. "normalizeField", void 0); b.__decorate([d.property({ type: [q], json: { read: !1 } })], c.prototype, "series", void 0); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype, "tooltipField", void 0); return c = k = b.__decorate([r.subclass("esri.popup.content.support.ChartMediaInfoValue")], c)
  4299. })
  4300. }, "esri/popup/content/support/ChartMediaInfoValueSeries": function () {
  4301. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
  4302. function (a, b, c, e, d, l, r, q) {
  4303. var k; c = k = function (m) { function g(p) { p = m.call(this, p) || this; p.fieldName = null; p.tooltip = null; p.value = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ fieldName: this.fieldName, tooltip: this.tooltip, value: this.value }) }; return g }(c); b.__decorate([e.property()], c.prototype, "fieldName", void 0); b.__decorate([e.property()], c.prototype, "tooltip", void 0); b.__decorate([e.property()], c.prototype, "value", void 0); return c = k = b.__decorate([q.subclass("esri.popup.content.support.ChartMediaInfoValueSeries")],
  4304. c)
  4305. })
  4306. }, "esri/popup/content/support/chartMediaInfoUtils": function () { define(["exports", "../../../core/jsonMap"], function (a, b) { b = b.strict()({ barchart: "bar-chart", columnchart: "column-chart", linechart: "line-chart", piechart: "pie-chart" }); a.chartTypeKebabDict = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/popup/content/ColumnChartMediaInfo": function () {
  4307. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
  4308. function (a, b, c, e, d, l, r, q, k) {
  4309. var m; e = m = function (g) { function p(t) { t = g.call(this, t) || this; t.type = "column-chart"; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null }) }; return p }(q); b.__decorate([c.property({ type: ["column-chart"], readOnly: !0, json: { type: ["columnchart"], read: !1, write: k.chartTypeKebabDict.write } })], e.prototype, "type", void 0); return e = m = b.__decorate([r.subclass("esri.popup.content.ColumnChartMediaInfo")],
  4310. e)
  4311. })
  4312. }, "esri/popup/content/ImageMediaInfo": function () {
  4313. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/MediaInfo ./support/ImageMediaInfoValue".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4314. var m; e = m = function (g) {
  4315. function p(t) { t = g.call(this, t) || this; t.refreshInterval = null; t.type = "image"; t.value = null; return t } a._inheritsLoose(p,
  4316. g); p.prototype.clone = function () { return new m({ altText: this.altText, title: this.title, caption: this.caption, refreshInterval: this.refreshInterval, value: this.value ? this.value.clone() : null }) }; return p
  4317. }(q); b.__decorate([c.property({ type: Number, json: { write: !0 } })], e.prototype, "refreshInterval", void 0); b.__decorate([c.property({ type: ["image"], readOnly: !0, json: { read: !1, write: !0 } })], e.prototype, "type", void 0); b.__decorate([c.property({ type: k, json: { write: !0 } })], e.prototype, "value", void 0); return e = m = b.__decorate([r.subclass("esri.popup.content.ImageMediaInfo")],
  4318. e)
  4319. })
  4320. }, "esri/popup/content/support/ImageMediaInfoValue": function () {
  4321. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  4322. var k; c = k = function (m) {
  4323. function g(p) { p = m.call(this, p) || this; p.linkURL = null; p.sourceURL = null; return p } a._inheritsLoose(g,
  4324. m); g.prototype.clone = function () { return new k({ linkURL: this.linkURL, sourceURL: this.sourceURL }) }; return g
  4325. }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "linkURL", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "sourceURL", void 0); return c = k = b.__decorate([q.subclass("esri.popup.content.support.ImageMediaInfoValue")], c)
  4326. })
  4327. }, "esri/popup/content/LineChartMediaInfo": function () {
  4328. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
  4329. function (a, b, c, e, d, l, r, q, k) {
  4330. var m; e = m = function (g) { function p(t) { t = g.call(this, t) || this; t.type = "line-chart"; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null }) }; return p }(q); b.__decorate([c.property({ type: ["line-chart"], readOnly: !0, json: { type: ["linechart"], read: !1, write: k.chartTypeKebabDict.write } })], e.prototype, "type", void 0); return e = m = b.__decorate([r.subclass("esri.popup.content.LineChartMediaInfo")],
  4331. e)
  4332. })
  4333. }, "esri/popup/content/PieChartMediaInfo": function () {
  4334. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4335. var m; e = m = function (g) {
  4336. function p(t) { t = g.call(this, t) || this; t.type = "pie-chart"; return t } a._inheritsLoose(p, g); p.prototype.clone =
  4337. function () { return new m({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null }) }; return p
  4338. }(q); b.__decorate([c.property({ type: ["pie-chart"], readOnly: !0, json: { type: ["piechart"], read: !1, write: k.chartTypeKebabDict.write } })], e.prototype, "type", void 0); return e = m = b.__decorate([r.subclass("esri.popup.content.PieChartMediaInfo")], e)
  4339. })
  4340. }, "esri/popup/content/support/mediaInfoTypes": function () {
  4341. define("exports ../BarChartMediaInfo ../ColumnChartMediaInfo ../ImageMediaInfo ../LineChartMediaInfo ../PieChartMediaInfo ../mixins/MediaInfo".split(" "),
  4342. function (a, b, c, e, d, l, r) { a.types = { base: r, key: "type", defaultKeyValue: "image", typeMap: { "bar-chart": b, "column-chart": c, "line-chart": d, "pie-chart": l, image: e } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  4343. }, "esri/popup/content/TextContent": function () {
  4344. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
  4345. function (a, b, c, e, d, l, r, q) { var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.text = null; p.type = "text"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ text: this.text }) }; return g }(q); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "text", void 0); b.__decorate([c.property({ type: ["text"], readOnly: !0, json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.popup.content.TextContent")], e) })
  4346. }, "esri/popup/ExpressionInfo": function () {
  4347. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  4348. function (a, b, c, e, d, l, r, q) {
  4349. var k; c = k = function (m) { function g(p) { p = m.call(this, p) || this; p.name = null; p.title = null; p.expression = null; p.returnType = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ name: this.name, title: this.title, expression: this.expression, returnType: this.returnType }) }; return g }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "name", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "title", void 0);
  4350. b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "expression", void 0); b.__decorate([e.property({ type: ["string", "number"], json: { write: !0 } })], c.prototype, "returnType", void 0); return c = k = b.__decorate([q.subclass("esri.popup.ExpressionInfo")], c)
  4351. })
  4352. }, "esri/popup/LayerOptions": function () {
  4353. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  4354. function (a, b, c, e, d, l, r, q) {
  4355. var k; c = k = function (m) { function g(p) { p = m.call(this, p) || this; p.returnTopmostRaster = null; p.showNoDataRecords = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ showNoDataRecords: this.showNoDataRecords, returnTopmostRaster: this.returnTopmostRaster }) }; return g }(c.JSONSupport); b.__decorate([e.property({ type: Boolean, json: { write: !0 } })], c.prototype, "returnTopmostRaster", void 0); b.__decorate([e.property({ type: Boolean, json: { write: !0 } })], c.prototype, "showNoDataRecords",
  4356. void 0); return c = k = b.__decorate([q.subclass("esri.popup.LayerOptions")], c)
  4357. })
  4358. }, "esri/popup/RelatedRecordsInfo": function () {
  4359. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/RelatedRecordsInfoFieldOrder".split(" "), function (a, b, c, e, d, l, r, q) {
  4360. var k; c = k = function (m) {
  4361. function g(p) {
  4362. p = m.call(this, p) || this; p.showRelatedRecords = null;
  4363. p.orderByFields = null; return p
  4364. } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ showRelatedRecords: this.showRelatedRecords, orderByFields: this.orderByFields ? e.clone(this.orderByFields) : null }) }; return g
  4365. }(c.JSONSupport); b.__decorate([d.property({ type: Boolean, json: { write: !0 } })], c.prototype, "showRelatedRecords", void 0); b.__decorate([d.property({ type: [q], json: { write: !0 } })], c.prototype, "orderByFields", void 0); return c = k = b.__decorate([r.subclass("esri.popup.RelatedRecordsInfo")], c)
  4366. })
  4367. }, "esri/popup/support/RelatedRecordsInfoFieldOrder": function () {
  4368. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  4369. function (a, b, c, e, d, l, r, q) {
  4370. var k; c = k = function (m) { function g(p) { p = m.call(this, p) || this; p.field = null; p.order = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ field: this.field, order: this.order }) }; return g }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "field", void 0); b.__decorate([e.property({ type: ["asc", "desc"], json: { write: !0 } })], c.prototype, "order", void 0); return c = k = b.__decorate([q.subclass("esri.popup.support.RelatedRecordsInfoFieldOrder")],
  4371. c)
  4372. })
  4373. }, "esri/support/actions/ActionBase": function () {
  4374. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Identifiable ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4375. var m; c = m = function (g) {
  4376. function p(t) {
  4377. t = g.call(this, t) || this; t.active = !1; t.className = null; t.disabled = !1; t.id = null; t.indicator = !1;
  4378. t.title = null; t.type = null; t.visible = !0; return t
  4379. } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ active: this.active, className: this.className, disabled: this.disabled, id: this.id, indicator: this.indicator, title: this.title, visible: this.visible }) }; return p
  4380. }(e.IdentifiableMixin(c)); b.__decorate([d.property()], c.prototype, "active", void 0); b.__decorate([d.property()], c.prototype, "className", void 0); b.__decorate([d.property()], c.prototype, "disabled", void 0); b.__decorate([d.property()], c.prototype,
  4381. "id", void 0); b.__decorate([d.property()], c.prototype, "indicator", void 0); b.__decorate([d.property()], c.prototype, "title", void 0); b.__decorate([d.property()], c.prototype, "type", void 0); b.__decorate([d.property()], c.prototype, "visible", void 0); return c = m = b.__decorate([k.subclass("esri.support.actions.ActionBase")], c)
  4382. })
  4383. }, "esri/support/actions/ActionButton": function () {
  4384. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
  4385. function (a, b, c, e, d, l, r, q) { var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.image = null; p.type = "button"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ active: this.active, className: this.className, disabled: this.disabled, id: this.id, indicator: this.indicator, title: this.title, visible: this.visible, image: this.image }) }; return g }(q); b.__decorate([c.property()], e.prototype, "image", void 0); return e = k = b.__decorate([r.subclass("esri.support.Action.ActionButton")], e) })
  4386. }, "esri/support/actions/ActionToggle": function () {
  4387. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
  4388. function (a, b, c, e, d, l, r, q) {
  4389. var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.image = null; p.type = "toggle"; p.value = !1; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ active: this.active, className: this.className, disabled: this.disabled, id: this.id, indicator: this.indicator, title: this.title, visible: this.visible, image: this.image, value: this.value }) }; return g }(q); b.__decorate([c.property()], e.prototype, "image", void 0); b.__decorate([c.property()], e.prototype, "value", void 0);
  4390. return e = k = b.__decorate([r.subclass("esri.support.Action.ActionToggle")], e)
  4391. })
  4392. }, "esri/renderers/ClassBreaksRenderer": function () {
  4393. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../symbols ../core/jsonMap ../core/lang ../core/Logger ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/ensureType ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/ClassBreakInfo ./support/commonProperties ./support/LegendOptions ../support/arcadeOnDemand".split(" "),
  4394. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w) {
  4395. var x; const z = l.getLogger("esri.renderers.ClassBreaksRenderer"); e = new e.JSONMap({ esriNormalizeByLog: "log", esriNormalizeByPercentOfTotal: "percent-of-total", esriNormalizeByField: "field" }); const C = n.ensureType(v); f = x = function (A) {
  4396. function D(J) {
  4397. J = A.call(this, J) || this; J._compiledValueExpression = { valueExpression: null, compiledFunction: null }; J.backgroundFillSymbol = null; J.classBreakInfos = null; J.defaultLabel = null; J.defaultSymbol = null; J.field = null; J.isMaxInclusive =
  4398. !0; J.legendOptions = null; J.normalizationField = null; J.normalizationTotal = null; J.type = "class-breaks"; J.valueExpression = null; J.valueExpressionTitle = null; J._set("classBreakInfos", []); return J
  4399. } a._inheritsLoose(D, A); var F = D.prototype; F.readClassBreakInfos = function (J, M, N) { if (Array.isArray(J)) { var E = M.minValue; return J.map(G => { const H = new v; H.read(G, N); null == H.minValue && (H.minValue = E); null == H.maxValue && (H.maxValue = H.minValue); E = H.maxValue; return H }) } }; F.writeClassBreakInfos = function (J, M, N, E) {
  4400. J = J.map(G => G.write({},
  4401. E)); this._areClassBreaksConsecutive() && J.forEach(G => delete G.classMinValue); M[N] = J
  4402. }; F.castField = function (J) { return null == J ? J : "function" === typeof J ? (z.error(".field: field must be a string value"), null) : n.ensureString(J) }; F.addClassBreakInfo = function (J, M, N) { let E = null; E = "number" === typeof J ? new v({ minValue: J, maxValue: M, symbol: c.ensureType(N) }) : C(d.clone(J)); this.classBreakInfos.push(E); 1 === this.classBreakInfos.length && this.notifyChange("minValue") }; F.removeClassBreakInfo = function (J, M) {
  4403. const N = this.classBreakInfos.length;
  4404. for (let E = 0; E < N; E++) { const G = [this.classBreakInfos[E].minValue, this.classBreakInfos[E].maxValue]; if (G[0] === J && G[1] === M) { this.classBreakInfos.splice(E, 1); break } }
  4405. }; F.getBreakIndex = function (J, M) { this.valueExpression && (r.isNone(M) || r.isNone(M.arcade)) && z.warn(""); return this.valueExpression ? this._getBreakIndexForExpression(J, M) : this._getBreakIndexForField(J) }; F.getClassBreakInfo = function () {
  4406. var J = a._asyncToGenerator(function* (M, N) {
  4407. let E = N; this.valueExpression && (r.isNone(N) || r.isNone(N.arcade)) && (E = {
  4408. ...E,
  4409. arcade: yield w.loadArcade()
  4410. }); M = this.getBreakIndex(M, E); return -1 !== M ? this.classBreakInfos[M] : null
  4411. }); return function (M, N) { return J.apply(this, arguments) }
  4412. }(); F.getSymbol = function (J, M) { if (this.valueExpression && (r.isNone(M) || r.isNone(M.arcade))) z.error("#getSymbol()", "Please use getSymbolAsync if valueExpression is used"); else return J = this.getBreakIndex(J, M), -1 < J ? this.classBreakInfos[J].symbol : this.defaultSymbol }; F.getSymbolAsync = function () {
  4413. var J = a._asyncToGenerator(function* (M, N) {
  4414. let E = N; if (this.valueExpression &&
  4415. (r.isNone(N) || r.isNone(N.arcade))) { N = yield w.loadArcade(); const { arcadeUtils: G } = N; G.hasGeometryOperations(this.valueExpression) && (yield G.enableGeometryOperations()); E = { ...E, arcade: N } } M = this.getBreakIndex(M, E); return -1 < M ? this.classBreakInfos[M].symbol : this.defaultSymbol
  4416. }); return function (M, N) { return J.apply(this, arguments) }
  4417. }(); F.getSymbols = function () { const J = []; this.classBreakInfos.forEach(M => { M.symbol && J.push(M.symbol) }); this.defaultSymbol && J.push(this.defaultSymbol); return J }; F.getAttributeHash =
  4418. function () { return this.visualVariables && this.visualVariables.reduce((J, M) => J + M.getAttributeHash(), "") }; F.getMeshHash = function () { const J = JSON.stringify(this.backgroundFillSymbol), M = JSON.stringify(this.defaultSymbol), N = `${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`, E = this.classBreakInfos.reduce((G, H) => G + H.getMeshHash(), ""); return `${J}.${M}.${E}.${N}.${this.field}.${this.valueExpression}` }; F.clone = function () {
  4419. return new x({
  4420. field: this.field, backgroundFillSymbol: this.backgroundFillSymbol &&
  4421. this.backgroundFillSymbol.clone(), defaultLabel: this.defaultLabel, defaultSymbol: this.defaultSymbol && this.defaultSymbol.clone(), valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle, classBreakInfos: d.clone(this.classBreakInfos), isMaxInclusive: this.isMaxInclusive, normalizationField: this.normalizationField, normalizationTotal: this.normalizationTotal, normalizationType: this.normalizationType, visualVariables: d.clone(this.visualVariables), legendOptions: d.clone(this.legendOptions),
  4422. authoringInfo: this.authoringInfo && this.authoringInfo.clone()
  4423. })
  4424. }; F.collectRequiredFields = function () { var J = a._asyncToGenerator(function* (M, N) { M = [this.collectVVRequiredFields(M, N), this.collectSymbolFields(M, N)]; yield Promise.all(M) }); return function (M, N) { return J.apply(this, arguments) } }(); F.collectSymbolFields = function () {
  4425. var J = a._asyncToGenerator(function* (M, N) {
  4426. const E = [...this.getSymbols().map(G => G.collectRequiredFields(M, N)), u.collectArcadeFieldNames(M, N, this.valueExpression)]; u.collectField(M, N, this.field);
  4427. u.collectField(M, N, this.normalizationField); yield Promise.all(E)
  4428. }); return function (M, N) { return J.apply(this, arguments) }
  4429. }(); F._getBreakIndexForExpression = function (J, M) {
  4430. const { viewingMode: N, scale: E, spatialReference: G, arcade: H } = r.unwrapOr(M, {}); var K = this._compiledValueExpression.valueExpression === this.valueExpression ? this._compiledValueExpression.compiledFunction : null; M = r.unwrap(H).arcadeUtils; K || (K = M.createSyntaxTree(this.valueExpression), K = M.createFunction(K), this._compiledValueExpression.compiledFunction =
  4431. K); this._compiledValueExpression.valueExpression = this.valueExpression; J = M.executeFunction(K, M.createExecContext(J, M.getViewInfo({ viewingMode: N, scale: E, spatialReference: G }))); return this._getBreakIndexfromInfos(J)
  4432. }; F._getBreakIndexForField = function (J) {
  4433. var M = J.attributes; J = this.normalizationType; let N = parseFloat(M[this.field]); if (J) {
  4434. const E = this.normalizationTotal; M = parseFloat(M[this.normalizationField]); if ("log" === J) N = Math.log(N) * Math.LOG10E; else if ("percent-of-total" === J && !isNaN(E)) N = N / E * 100; else if ("field" ===
  4435. J && !isNaN(M)) { if (isNaN(N) || isNaN(M)) return -1; N /= M }
  4436. } return this._getBreakIndexfromInfos(N)
  4437. }; F._getBreakIndexfromInfos = function (J) { const M = this.isMaxInclusive; if (null != J && "number" === typeof J && !isNaN(J)) for (let N = 0; N < this.classBreakInfos.length; N++) { const E = [this.classBreakInfos[N].minValue, this.classBreakInfos[N].maxValue]; if (E[0] <= J && (M ? J <= E[1] : J < E[1])) return N } return -1 }; F._areClassBreaksConsecutive = function () {
  4438. const J = this.classBreakInfos, M = J.length; for (let N = 1; N < M; N++)if (J[N - 1].maxValue !== J[N].minValue) return !1;
  4439. return !0
  4440. }; a._createClass(D, [{ key: "minValue", get: function () { return this.classBreakInfos && this.classBreakInfos[0] && this.classBreakInfos[0].minValue || 0 } }, {
  4441. key: "normalizationType", get: function () { let J = this._get("normalizationType"); const M = !!this.normalizationField, N = null != this.normalizationTotal; if (M || N) J = M && "field" || N && "percent-of-total" || null, M && N && z.warn("warning: both normalizationField and normalizationTotal are set!"); else if ("field" === J || "percent-of-total" === J) J = null; return J }, set: function (J) {
  4442. this._set("normalizationType",
  4443. J)
  4444. }
  4445. }, { key: "arcadeRequired", get: function () { return this.arcadeRequiredForVisualVariables || !!this.valueExpression } }]); return D
  4446. }(h.VisualVariablesMixin(f)); b.__decorate([q.property(y.rendererBackgroundFillSymbolProperty)], f.prototype, "backgroundFillSymbol", void 0); b.__decorate([q.property({ type: [v] })], f.prototype, "classBreakInfos", void 0); b.__decorate([g.reader("classBreakInfos")], f.prototype, "readClassBreakInfos", null); b.__decorate([t.writer("classBreakInfos")], f.prototype, "writeClassBreakInfos", null);
  4447. b.__decorate([q.property({ type: String, json: { write: !0 } })], f.prototype, "defaultLabel", void 0); b.__decorate([q.property(y.rendererSymbolProperty)], f.prototype, "defaultSymbol", void 0); b.__decorate([q.property({ type: String, json: { write: !0 } })], f.prototype, "field", void 0); b.__decorate([k.cast("field")], f.prototype, "castField", null); b.__decorate([q.property({ type: Boolean })], f.prototype, "isMaxInclusive", void 0); b.__decorate([q.property({ type: B.LegendOptions, json: { write: !0 } })], f.prototype, "legendOptions", void 0);
  4448. b.__decorate([q.property({ type: Number, readOnly: !0, value: null, json: { read: !1, write: { overridePolicy() { return 0 !== this.classBreakInfos.length && this._areClassBreaksConsecutive() ? { enabled: !0 } : { enabled: !1 } } } } })], f.prototype, "minValue", null); b.__decorate([q.property({ type: String, json: { write: !0 } })], f.prototype, "normalizationField", void 0); b.__decorate([q.property({ type: Number, cast: A => n.ensureNumber(A), json: { write: !0 } })], f.prototype, "normalizationTotal", void 0); b.__decorate([q.property({
  4449. type: e.apiValues, value: null,
  4450. json: { type: e.jsonValues, read: e.read, write: e.write }
  4451. })], f.prototype, "normalizationType", null); b.__decorate([m.enumeration({ classBreaks: "class-breaks" })], f.prototype, "type", void 0); b.__decorate([q.property({ type: String, json: { write: !0 } })], f.prototype, "valueExpression", void 0); b.__decorate([q.property({ type: String, json: { write: !0 } })], f.prototype, "valueExpressionTitle", void 0); return f = x = b.__decorate([p.subclass("esri.renderers.ClassBreaksRenderer")], f)
  4452. })
  4453. }, "esri/symbols": function () {
  4454. define("exports ./core/accessorSupport/ensureType ./core/accessorSupport/extensions/serializableProperty/reader ./symbols/CIMSymbol ./symbols/ExtrudeSymbol3DLayer ./symbols/FillSymbol ./symbols/FillSymbol3DLayer ./symbols/Font ./symbols/IconSymbol3DLayer ./symbols/LabelSymbol3D ./symbols/LineSymbol3D ./symbols/LineSymbol3DLayer ./symbols/MarkerSymbol ./symbols/MeshSymbol3D ./symbols/ObjectSymbol3DLayer ./symbols/PathSymbol3DLayer ./symbols/PictureFillSymbol ./symbols/PictureMarkerSymbol ./symbols/PointSymbol3D ./symbols/PolygonSymbol3D ./symbols/SimpleFillSymbol ./symbols/SimpleLineSymbol ./symbols/SimpleMarkerSymbol ./symbols/Symbol ./symbols/Symbol3D ./symbols/Symbol3DLayer ./symbols/TextSymbol ./symbols/TextSymbol3DLayer ./symbols/WaterSymbol3DLayer ./symbols/WebStyleSymbol ./symbols/callouts/LineCallout3D ./chunks/LineCallout3DBorder".split(" "),
  4455. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F, J, M, N, E, G) {
  4456. const H = { base: C, key: "type", typeMap: { "simple-fill": w, "picture-fill": h, "picture-marker": v, "simple-line": x, "simple-marker": z, text: F, "label-3d": m, "line-3d": g, "mesh-3d": n, "point-3d": y, "polygon-3d": B, "web-style": N, cim: e }, errorContext: "symbol" }, K = { base: C, key: "type", typeMap: { "picture-marker": v, "simple-marker": z, text: F, "web-style": N, cim: e }, errorContext: "symbol" }; c = c.createTypeReader({ types: H }); const S = {
  4457. base: C, key: "type", typeMap: {
  4458. "simple-fill": w,
  4459. "picture-fill": h, "picture-marker": v, "simple-line": x, "simple-marker": z, text: F, "line-3d": g, "mesh-3d": n, "point-3d": y, "polygon-3d": B, "web-style": N, cim: e
  4460. }, errorContext: "symbol"
  4461. }, fa = { base: C, key: "type", typeMap: { text: F, "label-3d": m }, errorContext: "symbol" }, ha = { base: C, key: "type", typeMap: { "label-3d": m, "line-3d": g, "mesh-3d": n, "point-3d": y, "polygon-3d": B, "web-style": N }, errorContext: "symbol" }, ba = { base: C, key: "type", typeMap: { "line-3d": g, "mesh-3d": n, "point-3d": y, "polygon-3d": B, "web-style": N, cim: e }, errorContext: "symbol" },
  4462. O = { base: C, key: "type", typeMap: { "label-3d": m }, errorContext: "symbol" }; b = b.ensureOneOfType(H); a.CIMSymbol = e; a.ExtrudeSymbol3DLayer = d; a.BaseFillSymbol = l; a.FillSymbol3DLayer = r; a.Font = q; a.IconSymbol3DLayer = k; a.LabelSymbol3D = m; a.LineSymbol3D = g; a.LineSymbol3DLayer = p; a.BaseMarkerSymbol = t; a.MeshSymbol3D = n; a.ObjectSymbol3DLayer = u; a.PathSymbol3DLayer = f; a.PictureFillSymbol = h; a.PictureMarkerSymbol = v; a.PointSymbol3D = y; a.PolygonSymbol3D = B; a.SimpleFillSymbol = w; a.SimpleLineSymbol = x; a.SimpleMarkerSymbol = z; a.BaseSymbol =
  4463. C; a.BaseSymbol3D = A; a.BaseSymbol3DLayer = D; a.TextSymbol = F; a.TextSymbol3DLayer = J; a.WaterSymbol3DLayer = M; a.WebStyleSymbol = N; a.LineCallout3D = E; a.LineCallout3DBorder = G.LineCallout3DBorder; a.ensureType = b; a.isSymbol = function (na) { return na instanceof C }; a.isSymbol2D = function (na) { if (!na) return !1; switch (na.type) { case "picture-fill": case "picture-marker": case "simple-fill": case "simple-line": case "simple-marker": case "text": case "cim": return !0; default: return !1 } }; a.isSymbol3D = function (na) {
  4464. if (!na) return !1; switch (na.type) {
  4465. case "label-3d": case "line-3d": case "mesh-3d": case "point-3d": case "polygon-3d": return !0;
  4466. default: return !1
  4467. }
  4468. }; a.readSymbol = c; a.symbolTypes = H; a.symbolTypes3D = ha; a.symbolTypesCluster = K; a.symbolTypesLabel = fa; a.symbolTypesLabel3D = O; a.symbolTypesRenderer = S; a.symbolTypesRenderer3D = ba; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4469. })
  4470. }, "esri/symbols/CIMSymbol": function () {
  4471. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/string ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../layers/support/fieldUtils ./Symbol".split(" "),
  4472. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4473. var t; l = t = function (n) {
  4474. function u(h) { h = n.call(this, h) || this; h.data = null; h.type = "cim"; return h } a._inheritsLoose(u, n); var f = u.prototype; f.readData = function (h, v) { return v }; f.writeData = function (h, v) { if (h) for (const y in h) v[y] = h[y] }; f.collectRequiredFields = function () {
  4475. var h = a._asyncToGenerator(function* (v, y) { if ("CIMSymbolReference" === this.data.type) { var B = this.data.primitiveOverrides; B && (B = B.map(w => g.collectArcadeFieldNames(v, y, w.valueExpressionInfo.expression)), yield Promise.all(B)) } });
  4476. return function (v, y) { return h.apply(this, arguments) }
  4477. }(); f.clone = function () { return new t({ data: c.clone(this.data) }) }; f.hash = function () { return e.numericHash(JSON.stringify(this.data)).toString() }; return u
  4478. }(p); b.__decorate([d.property({ json: { write: !1 } })], l.prototype, "color", void 0); b.__decorate([d.property({ json: { write: !0 } })], l.prototype, "data", void 0); b.__decorate([q.reader("data", ["symbol"])], l.prototype, "readData", null); b.__decorate([m.writer("data", {})], l.prototype, "writeData", null); b.__decorate([r.enumeration({ CIMSymbolReference: "cim" },
  4479. { readOnly: !0 })], l.prototype, "type", void 0); return l = t = b.__decorate([k.subclass("esri.symbols.CIMSymbol")], l)
  4480. })
  4481. }, "esri/symbols/Symbol": function () {
  4482. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k, m, g) {
  4483. e = new e.JSONMap({
  4484. esriSMS: "simple-marker",
  4485. esriPMS: "picture-marker", esriSLS: "simple-line", esriSFS: "simple-fill", esriPFS: "picture-fill", esriTS: "text", esriSHD: "shield-label-symbol", PointSymbol3D: "point-3d", LineSymbol3D: "line-3d", PolygonSymbol3D: "polygon-3d", WebStyleSymbol: "web-style", MeshSymbol3D: "mesh-3d", LabelSymbol3D: "label-3d", CIMSymbolReference: "cim"
  4486. }); let p = 0; d = function (t) {
  4487. function n(f) { f = t.call(this, f) || this; f.id = `sym${p++}`; f.type = null; f.color = new c([0, 0, 0, 1]); return f } a._inheritsLoose(n, t); var u = n.prototype; u.readColor = function (f) {
  4488. return f &&
  4489. null != f[0] ? [f[0], f[1], f[2], f[3] / 255] : f
  4490. }; u.collectRequiredFields = function () { var f = a._asyncToGenerator(function* (h, v) { }); return function (h, v) { return f.apply(this, arguments) } }(); u.hash = function () { return JSON.stringify(this.toJSON()) }; u.clone = function () { }; return n
  4491. }(d.JSONSupport); b.__decorate([l.property({ type: e.apiValues, readOnly: !0, json: { read: !1, write: { ignoreOrigin: !0, writer: e.write } } })], d.prototype, "type", void 0); b.__decorate([l.property({ type: c, json: { write: { allowNull: !0 } } })], d.prototype, "color", void 0);
  4492. b.__decorate([m.reader("color")], d.prototype, "readColor", null); return d = b.__decorate([g.subclass("esri.symbols.Symbol")], d)
  4493. })
  4494. }, "esri/symbols/ExtrudeSymbol3DLayer": function () {
  4495. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./support/Symbol3DMaterial".split(" "),
  4496. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4497. var t; d = t = function (n) { function u(f) { f = n.call(this, f) || this; f.type = "extrude"; f.size = 1; f.material = null; f.castShadows = !0; f.edges = null; return f } a._inheritsLoose(u, n); u.prototype.clone = function () { return new t({ edges: this.edges && this.edges.clone(), enabled: this.enabled, material: c.isSome(this.material) ? this.material.clone() : null, castShadows: this.castShadows, size: this.size }) }; return u }(m); b.__decorate([q.enumeration({ Extrude: "extrude" }, { readOnly: !0 })], d.prototype, "type", void 0);
  4498. b.__decorate([e.property({ type: Number, json: { write: { enabled: !0, isRequired: !0 } }, nonNullable: !0 })], d.prototype, "size", void 0); b.__decorate([e.property({ type: p.Symbol3DMaterial, json: { write: !0 } })], d.prototype, "material", void 0); b.__decorate([e.property({ type: Boolean, nonNullable: !0, json: { write: !0, default: !0 } })], d.prototype, "castShadows", void 0); b.__decorate([e.property(g.symbol3dEdgesProperty)], d.prototype, "edges", void 0); return d = t = b.__decorate([k.subclass("esri.symbols.ExtrudeSymbol3DLayer")], d)
  4499. })
  4500. }, "esri/symbols/Symbol3DLayer": function () {
  4501. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
  4502. function (a, b, c, e, d, l, r, q, k) {
  4503. c = function (m) { function g(p) { p = m.call(this, p) || this; p.enabled = !0; p.type = null; return p } a._inheritsLoose(g, m); g.prototype.writeEnabled = function (p, t, n) { p || (t[n] = p) }; return g }(c.JSONSupport); b.__decorate([e.property({ type: Boolean, json: { read: { source: "enable" }, write: { target: "enable" } } })], c.prototype, "enabled", void 0); b.__decorate([k.writer("enabled")], c.prototype, "writeEnabled", null); b.__decorate([e.property({ type: "icon object line path fill water extrude text".split(" "), readOnly: !0 })],
  4504. c.prototype, "type", void 0); return c = b.__decorate([q.subclass("esri.symbols.Symbol3DLayer")], c)
  4505. })
  4506. }, "esri/symbols/edges/utils": function () { define(["exports", "./Edges3D", "./SketchEdges3D", "./SolidEdges3D"], function (a, b, c, e) { a.symbol3dEdgesProperty = { types: { key: "type", base: b, typeMap: { solid: e, sketch: c } }, json: { write: !0 } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/symbols/edges/Edges3D": function () {
  4507. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/materialUtils".split(" "),
  4508. function (a, b, c, e, d, l, r, q, k, m) {
  4509. e = function (g) { function p(n) { n = g.call(this, n) || this; n.color = new c([0, 0, 0, 1]); n.extensionLength = 0; n.size = l.px2pt(1); return n } a._inheritsLoose(p, g); var t = p.prototype; t.clone = function () { }; t.cloneProperties = function () { return { color: d.clone(this.color), size: this.size, extensionLength: this.extensionLength } }; return p }(e.JSONSupport); b.__decorate([r.property({ type: ["solid", "sketch"], readOnly: !0, json: { read: !0, write: { ignoreOrigin: !0 } } })], e.prototype, "type", void 0); b.__decorate([r.property(m.colorAndTransparencyProperty)],
  4510. e.prototype, "color", void 0); b.__decorate([r.property({ ...m.screenSizeProperty, json: { write: { overridePolicy(g) { return { enabled: !!g } } } } })], e.prototype, "extensionLength", void 0); b.__decorate([r.property(m.screenSizeProperty)], e.prototype, "size", void 0); return e = b.__decorate([k.subclass("esri.symbols.edges.Edges3D")], e)
  4511. })
  4512. }, "esri/core/screenUtils": function () {
  4513. define(["exports"], function (a) {
  4514. function b(e) { return e ? 72 * e / 96 : 0 } const c = /^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i; a.castRenderScreenPointArray = function (e) { return e };
  4515. a.castRenderScreenPointArray3 = function (e) { return e }; a.castScreenPointArray = function (e) { return e }; a.createRenderScreenPoint = function (e = 0, d = 0) { return { x: e, y: d } }; a.createRenderScreenPointArray = function (e = 0, d = 0) { return [e, d] }; a.createRenderScreenPointArray3 = function (e = 0, d = 0, l = 0) { return [e, d, l] }; a.createScreenPoint = function (e = 0, d = 0) { return { x: e, y: d } }; a.createScreenPointArray = function (e = 0, d = 0) { return [e, d] }; a.pt2px = function (e) { return e ? e / 72 * 96 : 0 }; a.px2pt = b; a.screenPointArrayToObject = function (e, d) {
  4516. return d ? (d.x =
  4517. e[0], d.y = e[1], d) : { x: e[0], y: e[1] }
  4518. }; a.screenPointObjectToArray = function (e, d) { return d ? (d[0] = e.x, d[1] = e.y, 2 < d.length && (d[2] = 0), d) : [e.x, e.y] }; a.toPt = function (e) { if ("string" === typeof e) { var d = e.match(c); if (d) { var l = Number(d[1]); d = d[3] && d[3].toLowerCase(); e = "-" === e.charAt(0); l = "px" === d ? b(l) : l; return e ? -l : l } console.warn("screenUtils.toPt: input not recognized!"); return null } return e }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4519. })
  4520. }, "esri/symbols/support/materialUtils": function () {
  4521. define(["exports",
  4522. "../../Color", "../../core/screenUtils", "../../core/accessorSupport/ensureType", "../../webdoc/support/opacityUtils"], function (a, b, c, e, d) {
  4523. c = { type: Number, cast: c.toPt, json: { write: !0 } }; a.colorAndTransparencyProperty = {
  4524. type: b, json: {
  4525. type: [e.Integer], default: null, read: { source: ["color", "transparency"], reader: function (l, r) { l = null != r.transparency ? d.transparencyToOpacity(r.transparency) : 1; return (r = r.color) && Array.isArray(r) ? new b([r[0] || 0, r[1] || 0, r[2] || 0, l]) : null } }, write: {
  4526. target: { color: { type: [e.Integer] }, transparency: { type: e.Integer } },
  4527. writer: function (l, r) { r.color = l.toJSON().slice(0, 3); l = d.opacityToTransparency(l.a); 0 !== l && (r.transparency = l) }
  4528. }
  4529. }
  4530. }; a.screenSizeProperty = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4531. })
  4532. }, "esri/symbols/edges/SketchEdges3D": function () {
  4533. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/has ../../core/accessorSupport/set ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),
  4534. function (a, b, c, e, d, l, r, q, k, m) { var g; c = g = function (p) { function t(n) { n = p.call(this, n) || this; n.type = "sketch"; return n } a._inheritsLoose(t, p); t.prototype.clone = function () { return new g(this.cloneProperties()) }; return t }(m); b.__decorate([q.enumeration({ sketch: "sketch" }, { readOnly: !0 })], c.prototype, "type", void 0); return c = g = b.__decorate([k.subclass("esri.symbols.edges.SketchEdges3D")], c) })
  4535. }, "esri/symbols/edges/SolidEdges3D": function () {
  4536. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/has ../../core/accessorSupport/set ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),
  4537. function (a, b, c, e, d, l, r, q, k, m) { var g; c = g = function (p) { function t(n) { n = p.call(this, n) || this; n.type = "solid"; return n } a._inheritsLoose(t, p); t.prototype.clone = function () { return new g(this.cloneProperties()) }; return t }(m); b.__decorate([q.enumeration({ solid: "solid" }, { readOnly: !0 })], c.prototype, "type", void 0); return c = g = b.__decorate([k.subclass("esri.symbols.support.SolidEdges3D")], c) })
  4538. }, "esri/symbols/support/Symbol3DMaterial": function () {
  4539. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
  4540. function (a, b, c, e, d, l, r, q, k, m, g) {
  4541. var p; a.Symbol3DMaterial = p = function (t) { function n(u) { u = t.call(this, u) || this; u.color = null; return u } b._inheritsLoose(n, t); n.prototype.clone = function () { const u = { color: d.isSome(this.color) ? this.color.clone() : null }; return new p(u) }; return n }(e.JSONSupport); c.__decorate([l.property(g.colorAndTransparencyProperty)], a.Symbol3DMaterial.prototype, "color", void 0); a.Symbol3DMaterial = p = c.__decorate([m.subclass("esri.symbols.support.Symbol3DMaterial")], a.Symbol3DMaterial); Object.defineProperties(a,
  4542. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4543. })
  4544. }, "esri/symbols/FillSymbol": function () {
  4545. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./SimpleLineSymbol ./Symbol".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4546. e = function (m) {
  4547. function g(p) { p = m.call(this, p) || this; p.outline = null; p.type = null; return p } a._inheritsLoose(g, m); g.prototype.hash =
  4548. function () { return `${this.type}.${this.outline && this.outline.hash()}` }; return g
  4549. }(k); b.__decorate([c.property({ types: { key: "type", base: null, defaultKeyValue: "simple-line", typeMap: { "simple-line": q } }, json: { default: null, write: !0 } })], e.prototype, "outline", void 0); b.__decorate([c.property({ type: ["simple-fill", "picture-fill"], readOnly: !0 })], e.prototype, "type", void 0); return e = b.__decorate([r.subclass("esri.symbols.FillSymbol")], e)
  4550. })
  4551. }, "esri/symbols/SimpleLineSymbol": function () {
  4552. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineSymbol ./LineSymbolMarker".split(" "),
  4553. function (a, b, c, e, d, l, r, q, k, m, g) {
  4554. var p; c = new c.JSONMap({ esriSLSSolid: "solid", esriSLSDash: "dash", esriSLSDot: "dot", esriSLSDashDot: "dash-dot", esriSLSDashDotDot: "long-dash-dot-dot", esriSLSNull: "none", esriSLSInsideFrame: "inside-frame", esriSLSShortDash: "short-dash", esriSLSShortDot: "short-dot", esriSLSShortDashDot: "short-dash-dot", esriSLSShortDashDotDot: "short-dash-dot-dot", esriSLSLongDash: "long-dash", esriSLSLongDashDot: "long-dash-dot" }); m = p = function (t) {
  4555. function n(...f) {
  4556. f = t.call(this, ...f) || this; f.type = "simple-line";
  4557. f.style = "solid"; f.cap = "round"; f.join = "round"; f.marker = null; f.miterLimit = 2; return f
  4558. } a._inheritsLoose(n, t); var u = n.prototype; u.normalizeCtorArgs = function (f, h, v, y, B, w) { if (f && "string" !== typeof f) return f; const x = {}; null != f && (x.style = f); null != h && (x.color = h); null != v && (x.width = d.toPt(v)); null != y && (x.cap = y); null != B && (x.join = B); null != w && (x.miterLimit = d.toPt(w)); return x }; u.clone = function () {
  4559. var f; return new p({
  4560. color: e.clone(this.color), style: this.style, width: this.width, cap: this.cap, join: this.join, miterLimit: this.miterLimit,
  4561. marker: null == (f = this.marker) ? void 0 : f.clone()
  4562. })
  4563. }; u.hash = function () { var f, h; return `${t.prototype.hash.call(this)}.${null == (f = this.color) ? void 0 : f.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${null == (h = this.marker) ? void 0 : h.hash()}` }; return n
  4564. }(m); b.__decorate([q.enumeration({ esriSLS: "simple-line" }, { readOnly: !0 })], m.prototype, "type", void 0); b.__decorate([l.property({ type: c.apiValues, json: { read: c.read, write: c.write } })], m.prototype, "style", void 0); b.__decorate([l.property({
  4565. type: ["butt",
  4566. "round", "square"], json: { write: { overridePolicy: (t, n, u) => ({ enabled: "round" !== t && (null == u || null == u.origin) }) } }
  4567. })], m.prototype, "cap", void 0); b.__decorate([l.property({ type: ["miter", "round", "bevel"], json: { write: { overridePolicy: (t, n, u) => ({ enabled: "round" !== t && (null == u || null == u.origin) }) } } })], m.prototype, "join", void 0); b.__decorate([l.property({ types: { key: "type", base: null, defaultKeyValue: "line-marker", typeMap: { "line-marker": g } }, json: { write: !0, origins: { "web-scene": { write: !1 } } } })], m.prototype, "marker", void 0);
  4568. b.__decorate([l.property({ type: Number, json: { read: !1, write: !1 } })], m.prototype, "miterLimit", void 0); return m = p = b.__decorate([k.subclass("esri.symbols.SimpleLineSymbol")], m)
  4569. })
  4570. }, "esri/symbols/LineSymbol": function () {
  4571. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol".split(" "),
  4572. function (a, b, c, e, d, l, r, q, k, m) { d = function (g) { function p(t) { t = g.call(this, t) || this; t.type = "simple-line"; t.width = .75; return t } a._inheritsLoose(p, g); p.prototype.hash = function () { return `${this.type}.${this.width}` }; return p }(m); b.__decorate([q.enumeration({ esriSLS: "simple-line" }, { readOnly: !0 })], d.prototype, "type", void 0); b.__decorate([e.property({ type: Number, cast: c.toPt, json: { write: !0 } })], d.prototype, "width", void 0); return d = b.__decorate([k.subclass("esri.symbols.LineSymbol")], d) })
  4573. }, "esri/symbols/LineSymbolMarker": function () {
  4574. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./support/lineMarkers".split(" "),
  4575. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4576. var t; e = t = function (n) {
  4577. function u(h) { h = n.call(this, h) || this; h.placement = "begin-end"; h.type = "line-marker"; h.style = "arrow"; return h } a._inheritsLoose(u, n); var f = u.prototype; f.writeStyle = function (h, v, y, B) { v[y] = "web-map" === (null == B ? void 0 : B.origin) ? "arrow" : h }; f.readColor = function (h) { return h && null != h[0] ? [h[0], h[1], h[2], h[3] / 255] : h }; f.writeColor = function (h, v, y, B) { "web-map" !== (null == B ? void 0 : B.origin) && (v[y] = h) }; f.clone = function () {
  4578. return new t({
  4579. color: d.clone(this.color),
  4580. placement: this.placement, style: this.style
  4581. })
  4582. }; f.hash = function () { var h; return `${this.placement}.${null == (h = this.color) ? void 0 : h.hash()}.${this.style}` }; a._createClass(u, [{ key: "color", set: function (h) { this._set("color", h) } }]); return u
  4583. }(e.JSONSupport); b.__decorate([l.property({ type: ["begin", "end", "begin-end"], json: { write: !0 } })], e.prototype, "placement", void 0); b.__decorate([q.enumeration({ "line-marker": "line-marker" }, { readOnly: !0 }), l.property({ json: { origins: { "web-map": { write: !1 } } } })], e.prototype, "type",
  4584. void 0); b.__decorate([l.property({ type: p.lineMarkerStyles })], e.prototype, "style", void 0); b.__decorate([g.writer("style")], e.prototype, "writeStyle", null); b.__decorate([l.property({ type: c, value: null, json: { write: { allowNull: !0 } } })], e.prototype, "color", null); b.__decorate([k.reader("color")], e.prototype, "readColor", null); b.__decorate([g.writer("color")], e.prototype, "writeColor", null); return e = t = b.__decorate([m.subclass("esri.symbols.LineSymbolMarker")], e)
  4585. })
  4586. }, "esri/symbols/support/lineMarkers": function () {
  4587. define(["exports"],
  4588. function (a) { a.lineMarkerPlacements = ["begin", "end", "begin-end"]; a.lineMarkerStyles = "arrow circle square diamond cross x".split(" "); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  4589. }, "esri/symbols/FillSymbol3DLayer": function () {
  4590. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./patterns/LineStylePattern3D ./patterns/StylePattern3D ./patterns/utils ./support/colors ./support/Symbol3DFillMaterial ./support/Symbol3DOutline".split(" "),
  4591. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h) {
  4592. var v; d = v = function (y) {
  4593. function B(w) { w = y.call(this, w) || this; w.type = "fill"; w.material = null; w.pattern = null; w.castShadows = !0; w.outline = null; w.edges = null; return w } a._inheritsLoose(B, y); B.prototype.clone = function () {
  4594. const w = {
  4595. edges: c.isSome(this.edges) ? this.edges.clone() : null, enabled: this.enabled, material: c.isSome(this.material) ? this.material.clone() : null, pattern: c.isSome(this.pattern) ? this.pattern.clone() : null, castShadows: this.castShadows, outline: c.isSome(this.outline) ?
  4596. this.outline.clone() : null
  4597. }; return new v(w)
  4598. }; B.fromSimpleFillSymbol = function (w) {
  4599. var x, z, C, A, D, F; const J = w.outline && w.outline.style && "inside-frame" !== w.outline.style && "solid" !== w.outline.style ? new p({ style: w.outline.style }) : null, M = { size: null != (x = null == (z = w.outline) ? void 0 : z.width) ? x : 0, color: (null != (C = null == (A = w.outline) ? void 0 : A.color) ? C : u.white).clone(), pattern: J }; J && null != (D = w.outline) && D.cap && (M.patternCap = w.outline.cap); return new v({
  4600. material: new f.Symbol3DFillMaterial({
  4601. color: (null != (F = w.color) ?
  4602. F : u.transparentWhite).clone()
  4603. }), pattern: w.style && "solid" !== w.style ? new t({ style: w.style }) : null, outline: M
  4604. })
  4605. }; return B
  4606. }(m); b.__decorate([q.enumeration({ Fill: "fill" }, { readOnly: !0 })], d.prototype, "type", void 0); b.__decorate([e.property({ type: f.Symbol3DFillMaterial, json: { write: !0 } })], d.prototype, "material", void 0); b.__decorate([e.property(n.symbol3dPatternProperty)], d.prototype, "pattern", void 0); b.__decorate([e.property({ type: Boolean, nonNullable: !0, json: { write: !0, default: !0 } })], d.prototype, "castShadows",
  4607. void 0); b.__decorate([e.property({ type: h.Symbol3DOutline, json: { write: !0 } })], d.prototype, "outline", void 0); b.__decorate([e.property(g.symbol3dEdgesProperty)], d.prototype, "edges", void 0); return d = v = b.__decorate([k.subclass("esri.symbols.FillSymbol3DLayer")], d)
  4608. })
  4609. }, "esri/symbols/patterns/LineStylePattern3D": function () {
  4610. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./LinePattern3D ./lineStyles".split(" "),
  4611. function (a, b, c, e, d, l, r, q, k, m, g) {
  4612. var p; c = c.strict()({ dash: "dash", "dash-dot": "dash-dot", "dash-dot-dot": "long-dash-dot-dot", dot: "dot", "long-dash": "long-dash", "long-dash-dot": "long-dash-dot", null: "none", "short-dash": "short-dash", "short-dash-dot": "short-dash-dot", "short-dash-dot-dot": "short-dash-dot-dot", "short-dot": "short-dot", solid: "solid" }); m = p = function (t) {
  4613. function n(u) { u = t.call(this, u) || this; u.type = "style"; u.style = "solid"; return u } a._inheritsLoose(n, t); n.prototype.clone = function () { return new p({ style: this.style }) };
  4614. return n
  4615. }(m); b.__decorate([e.property({ type: ["style"] })], m.prototype, "type", void 0); b.__decorate([q.enumeration(c), e.property({ type: g.lineStyles })], m.prototype, "style", void 0); return m = p = b.__decorate([k.subclass("esri.symbols.patterns.LineStylePattern3D")], m)
  4616. })
  4617. }, "esri/symbols/patterns/LinePattern3D": function () {
  4618. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  4619. function (a, b, c, e, d, l, r, q) { c = function (k) { function m(g) { return k.call(this, g) || this } a._inheritsLoose(m, k); m.prototype.clone = function () { }; return m }(c.JSONSupport); b.__decorate([e.property({ type: ["style"], readOnly: !0, json: { read: !0, write: { ignoreOrigin: !0 } } })], c.prototype, "type", void 0); return c = b.__decorate([q.subclass("esri.symbols.patterns.LinePattern3D")], c) })
  4620. }, "esri/symbols/patterns/lineStyles": function () {
  4621. define(["exports"], function (a) {
  4622. a.lineStyles = "dash dash-dot dot long-dash long-dash-dot long-dash-dot-dot none short-dash short-dash-dot short-dash-dot-dot short-dot solid".split(" ");
  4623. Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4624. })
  4625. }, "esri/symbols/patterns/StylePattern3D": function () {
  4626. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Pattern3D ./styles".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4627. var m; e = m = function (g) {
  4628. function p(t) {
  4629. t = g.call(this, t) || this;
  4630. t.type = "style"; t.style = "solid"; return t
  4631. } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ style: this.style }) }; return p
  4632. }(q); b.__decorate([c.property({ type: ["style"] })], e.prototype, "type", void 0); b.__decorate([c.property({ type: k, json: { read: !0, write: !0 } })], e.prototype, "style", void 0); return e = m = b.__decorate([r.subclass("esri.symbols.patterns.StylePattern3D")], e)
  4633. })
  4634. }, "esri/symbols/patterns/Pattern3D": function () {
  4635. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  4636. function (a, b, c, e, d, l, r, q) { c = function (k) { function m(g) { return k.call(this, g) || this } a._inheritsLoose(m, k); m.prototype.clone = function () { }; return m }(c.JSONSupport); b.__decorate([e.property({ type: ["style"], readOnly: !0, json: { read: !0, write: { ignoreOrigin: !0 } } })], c.prototype, "type", void 0); return c = b.__decorate([q.subclass("esri.symbols.patterns.Pattern3D")], c) })
  4637. }, "esri/symbols/patterns/styles": function () { define(function () { return "backward-diagonal cross diagonal-cross forward-diagonal horizontal none solid vertical".split(" ") }) },
  4638. "esri/symbols/patterns/utils": function () { define(["exports", "./LinePattern3D", "./LineStylePattern3D", "./Pattern3D", "./StylePattern3D"], function (a, b, c, e, d) { e = { types: { key: "type", base: e, typeMap: { style: d } }, json: { write: !0 } }; a.symbol3dLinePatternProperty = { types: { key: "type", base: b, typeMap: { style: c } }, json: { write: !0 } }; a.symbol3dPatternProperty = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/symbols/support/colors": function () {
  4639. define(["exports", "../../Color"],
  4640. function (a, b) { const c = new b("white"), e = new b("black"); b = new b([255, 255, 255, 0]); a.black = e; a.isBlack = function (d) { return 0 === d.r && 0 === d.g && 0 === d.b }; a.transparentWhite = b; a.white = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  4641. }, "esri/symbols/support/Symbol3DFillMaterial": function () {
  4642. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/maybe ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/has ../../core/accessorSupport/set ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Symbol3DMaterial".split(" "),
  4643. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4644. var t; a.Symbol3DFillMaterial = t = function (n) { function u(f) { f = n.call(this, f) || this; f.colorMixMode = null; return f } b._inheritsLoose(u, n); u.prototype.clone = function () { const f = { color: e.isSome(this.color) ? this.color.clone() : null, colorMixMode: this.colorMixMode }; return new t(f) }; return u }(p.Symbol3DMaterial); c.__decorate([m.enumeration({ multiply: "multiply", replace: "replace", tint: "tint" })], a.Symbol3DFillMaterial.prototype, "colorMixMode", void 0); a.Symbol3DFillMaterial = t = c.__decorate([g.subclass("esri.symbols.support.Symbol3DFillMaterial")],
  4645. a.Symbol3DFillMaterial); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4646. })
  4647. }, "esri/symbols/support/Symbol3DOutline": function () {
  4648. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../patterns/utils ./materialUtils ./symbolLayerUtils3D".split(" "),
  4649. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  4650. var f; a.Symbol3DOutline = f = function (h) { function v(y) { y = h.call(this, y) || this; y.color = new e([0, 0, 0, 1]); y.size = r.px2pt(1); y.pattern = null; y.patternCap = "butt"; return y } b._inheritsLoose(v, h); v.prototype.clone = function () { const y = { color: l.isSome(this.color) ? this.color.clone() : null, size: this.size, pattern: l.isSome(this.pattern) ? this.pattern.clone() : null, patternCap: this.patternCap }; return new f(y) }; return v }(d.JSONSupport); c.__decorate([q.property(n.colorAndTransparencyProperty)],
  4651. a.Symbol3DOutline.prototype, "color", void 0); c.__decorate([q.property(n.screenSizeProperty)], a.Symbol3DOutline.prototype, "size", void 0); c.__decorate([q.property(t.symbol3dLinePatternProperty)], a.Symbol3DOutline.prototype, "pattern", void 0); c.__decorate([q.property({ type: u.lineCaps, json: { default: "butt", write: { overridePolicy() { return { enabled: l.isSome(this.pattern) } } } } })], a.Symbol3DOutline.prototype, "patternCap", void 0); a.Symbol3DOutline = f = c.__decorate([p.subclass("esri.symbols.support.Symbol3DOutline")],
  4652. a.Symbol3DOutline); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4653. })
  4654. }, "esri/symbols/support/symbolLayerUtils3D": function () {
  4655. define(["exports", "../../core/has", "../../chunks/vec3f64", "../../geometry/support/aaBoundingBox"], function (a, b, c, e) {
  4656. const d = e.fromValues(-.5, -.5, -.5, .5, .5, .5), l = e.fromValues(-.5, -.5, 0, .5, .5, 1), r = e.fromValues(-.5, -.5, 0, .5, .5, .5); b = ["butt", "square", "round"]; e = [...b, "none"]; a.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_TETRAHEDRON = r; a.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_UNIT_CUBE =
  4657. d; a.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_UNIT_CYLINDER = l; a.lineCaps = b; a.lineJoins = ["miter", "bevel", "round"]; a.objectSymbolLayerPrimitiveBoundingBox = function (q) { switch (q) { case "sphere": case "cube": case "diamond": return d; case "cylinder": case "cone": case "inverted-cone": return l; case "tetrahedron": return r } }; a.objectSymbolLayerSizeWithResourceSize = function (q, { isPrimitive: k, width: m, depth: g, height: p }) {
  4658. k = k ? 10 : 1; if (null == m && null == p && null == g) return [k * q[0], k * q[1], k * q[2]]; m = c.fromValues(m, g, p); let t; for (g = 0; 3 >
  4659. g; g++)if (p = m[g], null != p) { t = p / q[g]; break } for (g = 0; 3 > g; g++)null == m[g] && (m[g] = q[g] * t); return m
  4660. }; a.pathCaps = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4661. })
  4662. }, "esri/geometry/support/aaBoundingBox": function () {
  4663. define(["exports", "../../core/maybe", "../Extent", "./aaBoundingRect"], function (a, b, c, e) {
  4664. function d(f = n) { return [f[0], f[1], f[2], f[3], f[4], f[5]] } function l(f, h, v, y, B, w, x = d()) { x[0] = f; x[1] = h; x[2] = v; x[3] = y; x[4] = B; x[5] = w; return x } function r(f) {
  4665. return f[0] >= f[3] ? 0 :
  4666. f[3] - f[0]
  4667. } function q(f) { return f[1] >= f[4] ? 0 : f[4] - f[1] } function k(f) { return f[2] >= f[5] ? 0 : f[5] - f[2] } function m(f, h) { return Math.max(h[0], f[0]) <= Math.min(h[3], f[3]) && Math.max(h[1], f[1]) <= Math.min(h[4], f[4]) && Math.max(h[2], f[2]) <= Math.min(h[5], f[5]) } function g(f, h) { f[0] = h[0]; f[1] = h[1]; f[2] = h[2]; f[3] = h[3]; f[4] = h[4]; f[5] = h[5]; return f } function p(f) { return 6 === f.length } const t = [Infinity, Infinity, Infinity, -Infinity, -Infinity, -Infinity], n = [0, 0, 0, 0, 0, 0], u = d(); a.NEGATIVE_INFINITY = t; a.POSITIVE_INFINITY = [-Infinity,
  4668. -Infinity, -Infinity, Infinity, Infinity, Infinity]; a.ZERO = n; a.allFinite = function (f) { for (let h = 0; 6 > h; h++)if (!isFinite(f[h])) return !1; return !0 }; a.center = function (f, h = [0, 0, 0]) { h[0] = f[0] + r(f) / 2; h[1] = f[1] + q(f) / 2; h[2] = f[2] + k(f) / 2; return h }; a.contains = function (f, h) { return h[0] >= f[0] && h[1] >= f[1] && h[2] >= f[2] && h[3] <= f[3] && h[4] <= f[4] && h[5] <= f[5] }; a.containsPoint = function (f, h) { return h[0] >= f[0] && h[1] >= f[1] && h[2] >= f[2] && h[0] <= f[3] && h[1] <= f[4] && h[2] <= f[5] }; a.containsPointWithMargin = function (f, h, v) {
  4669. return h[0] >= f[0] -
  4670. v && h[1] >= f[1] - v && h[2] >= f[2] - v && h[0] <= f[3] + v && h[1] <= f[4] + v && h[2] <= f[5] + v
  4671. }; a.create = d; a.depth = q; a.diameter = function (f) { const h = r(f), v = k(f); f = q(f); return Math.sqrt(h * h + v * v + f * f) }; a.empty = function (f) { return f ? g(f, t) : d(t) }; a.equals = function (f, h, v) { if (b.isNone(f) || b.isNone(h)) return f === h; if (!p(f) || !p(h)) return !1; if (v) for (let y = 0; y < f.length; y++) { if (!v(f[y], h[y])) return !1 } else for (v = 0; v < f.length; v++)if (f[v] !== h[v]) return !1; return !0 }; a.expandWithAABB = function (f, h) {
  4672. f[0] = Math.min(f[0], h[0]); f[1] = Math.min(f[1],
  4673. h[1]); f[2] = Math.min(f[2], h[2]); f[3] = Math.max(f[3], h[3]); f[4] = Math.max(f[4], h[4]); f[5] = Math.max(f[5], h[5])
  4674. }; a.expandWithBuffer = function (f, h, v = 0, y = h.length / 3) { let B = f[0], w = f[1], x = f[2], z = f[3], C = f[4], A = f[5]; for (let D = 0; D < y; D++)B = Math.min(B, h[v + 3 * D]), w = Math.min(w, h[v + 3 * D + 1]), x = Math.min(x, h[v + 3 * D + 2]), z = Math.max(z, h[v + 3 * D]), C = Math.max(C, h[v + 3 * D + 1]), A = Math.max(A, h[v + 3 * D + 2]); f[0] = B; f[1] = w; f[2] = x; f[3] = z; f[4] = C; f[5] = A }; a.expandWithNestedArray = function (f, h, v) {
  4675. const y = h.length; let B = f[0], w = f[1], x = f[2], z = f[3],
  4676. C = f[4], A = f[5]; if (v) for (v = 0; v < y; v++) { var D = h[v]; B = Math.min(B, D[0]); w = Math.min(w, D[1]); x = Math.min(x, D[2]); z = Math.max(z, D[0]); C = Math.max(C, D[1]); A = Math.max(A, D[2]) } else for (v = 0; v < y; v++)D = h[v], B = Math.min(B, D[0]), w = Math.min(w, D[1]), z = Math.max(z, D[0]), C = Math.max(C, D[1]); f[0] = B; f[1] = w; f[2] = x; f[3] = z; f[4] = C; f[5] = A
  4677. }; a.expandWithOffset = function (f, h, v, y) {
  4678. f[0] = Math.min(f[0], f[0] + h); f[3] = Math.max(f[3], f[3] + h); f[1] = Math.min(f[1], f[1] + v); f[4] = Math.max(f[4], f[4] + v); f[2] = Math.min(f[2], f[2] + y); f[5] = Math.max(f[5], f[5] +
  4679. y)
  4680. }; a.expandWithRect = function (f, h) { f[0] = Math.min(f[0], h[0]); f[1] = Math.min(f[1], h[1]); f[3] = Math.max(f[3], h[2]); f[4] = Math.max(f[4], h[3]) }; a.expandWithVec3 = function (f, h) { f[0] = Math.min(f[0], h[0]); f[1] = Math.min(f[1], h[1]); f[2] = Math.min(f[2], h[2]); f[3] = Math.max(f[3], h[0]); f[4] = Math.max(f[4], h[1]); f[5] = Math.max(f[5], h[2]) }; a.fromExtent = function (f, h = d()) { h[0] = f.xmin; h[1] = f.ymin; h[2] = f.zmin; h[3] = f.xmax; h[4] = f.ymax; h[5] = f.zmax; return h }; a.fromMinMax = function (f, h, v = d()) {
  4681. v[0] = f[0]; v[1] = f[1]; v[2] = f[2]; v[3] = h[0];
  4682. v[4] = h[1]; v[5] = h[2]; return v
  4683. }; a.fromRect = function (f, h) { f[0] = h[0]; f[1] = h[1]; f[2] = Number.NEGATIVE_INFINITY; f[3] = h[2]; f[4] = h[3]; f[5] = Number.POSITIVE_INFINITY; return f }; a.fromValues = l; a.getMax = function (f, h) { h[0] = f[3]; h[1] = f[4]; h[2] = f[5]; return h }; a.getMin = function (f, h) { h[0] = f[0]; h[1] = f[1]; h[2] = f[2]; return h }; a.height = k; a.intersects = m; a.intersectsClippingArea = function (f, h) { return b.isNone(h) ? !0 : m(f, h) }; a.is = p; a.isPoint = function (f) { return 0 === r(f) && 0 === q(f) && 0 === k(f) }; a.maximumDimension = function (f) {
  4684. return Math.max(r(f),
  4685. k(f), q(f))
  4686. }; a.offset = function (f, h, v, y, B = f) { B[0] = f[0] + h; B[1] = f[1] + v; B[2] = f[2] + y; B[3] = f[3] + h; B[4] = f[4] + v; B[5] = f[5] + y; return B }; a.scale = function (f, h, v = f) { const y = f[0] + r(f) / 2, B = f[1] + q(f) / 2, w = f[2] + k(f) / 2; v[0] = y + (f[0] - y) * h; v[1] = B + (f[1] - B) * h; v[2] = w + (f[2] - w) * h; v[3] = y + (f[3] - y) * h; v[4] = B + (f[4] - B) * h; v[5] = w + (f[5] - w) * h; return v }; a.set = g; a.setMax = function (f, h, v = f) { v[3] = h[0]; v[4] = h[1]; v[5] = h[2]; v !== f && (v[0] = f[0], v[1] = f[1], v[2] = f[2]); return f }; a.setMin = function (f, h, v = f) {
  4687. v[0] = h[0]; v[1] = h[1]; v[2] = h[2]; v !== f && (v[3] =
  4688. f[3], v[4] = f[4], v[5] = f[5]); return v
  4689. }; a.size = function (f, h = [0, 0, 0]) { h[0] = r(f); h[1] = q(f); h[2] = k(f); return h }; a.toExtent = function (f, h) { return isFinite(f[2]) || isFinite(f[5]) ? new c({ xmin: f[0], xmax: f[3], ymin: f[1], ymax: f[4], zmin: f[2], zmax: f[5], spatialReference: h }) : new c({ xmin: f[0], xmax: f[3], ymin: f[1], ymax: f[4], spatialReference: h }) }; a.toRect = function (f, h) { h || (h = e.create()); h[0] = f[0]; h[1] = f[1]; h[2] = f[3]; h[3] = f[4]; return h }; a.width = r; a.wrap = function (f, h, v, y, B, w) { return l(f, h, v, y, B, w, u) }; Object.defineProperties(a,
  4690. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4691. })
  4692. }, "esri/symbols/Font": function () {
  4693. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/subclass ./support/textUtils".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  4694. var g; c = g = function (p) {
  4695. function t(u) {
  4696. u = p.call(this, u) || this; u.decoration = "none";
  4697. u.family = "sans-serif"; u.size = 9; u.style = "normal"; u.weight = "normal"; return u
  4698. } a._inheritsLoose(t, p); var n = t.prototype; n.castSize = function (u) { return e.toPt(u) }; n.clone = function () { return new g({ decoration: this.decoration, family: this.family, size: this.size, style: this.style, weight: this.weight }) }; n.hash = function () { return `${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}` }; return t
  4699. }(c.JSONSupport); b.__decorate([d.property({ type: m.fontDecorations, json: { default: "none", write: !0 } })], c.prototype,
  4700. "decoration", void 0); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype, "family", void 0); b.__decorate([d.property({ type: Number, json: { write: { overridePolicy(p, t, n) { return { enabled: !n || !n.textSymbol3D } } } } })], c.prototype, "size", void 0); b.__decorate([q.cast("size")], c.prototype, "castSize", null); b.__decorate([d.property({ type: m.fontStyles, json: { default: "normal", write: !0 } })], c.prototype, "style", void 0); b.__decorate([d.property({ type: m.fontWeights, json: { default: "normal", write: !0 } })], c.prototype,
  4701. "weight", void 0); return c = g = b.__decorate([k.subclass("esri.symbols.Font")], c)
  4702. })
  4703. }, "esri/symbols/support/textUtils": function () {
  4704. define(["exports", "../../core/mathUtils", "../../core/accessorSupport/ensureType"], function (a, b, c) {
  4705. const e = { type: Number, cast: k => { k = c.ensureNumber(k); return 0 === k ? 1 : b.clamp(k, .1, 4) }, nonNullable: !0 }, d = ["left", "right", "center"], l = ["baseline", "top", "middle", "bottom"], r = { type: d, nonNullable: !0 }, q = { type: l, nonNullable: !0 }; a.fontDecorations = ["none", "underline", "line-through"]; a.fontStyles =
  4706. ["normal", "italic", "oblique"]; a.fontWeights = ["normal", "lighter", "bold", "bolder"]; a.horizontalAlignmentProperty = r; a.horizontalAlignments = d; a.lineHeightProperty = e; a.verticalAlignmentProperty = q; a.verticalAlignments = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4707. })
  4708. }, "esri/symbols/IconSymbol3DLayer": function () {
  4709. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/colors ./support/IconSymbol3DLayerResource ./support/materialUtils ./support/Symbol3DAnchorPosition2D ./support/Symbol3DIconOutline ./support/Symbol3DMaterial".split(" "),
  4710. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v) {
  4711. function y(C) { const A = "width" in C ? C.width : C.size, D = "height" in C ? C.height : C.size, F = B(C.xoffset); C = B(C.yoffset); return (F || C) && A && D ? { x: -F / A, y: C / D } : null } function B(C) { return isFinite(C) ? C : 0 } var w; const x = c.getLogger("esri.symbols.IconSymbol3DLayer"); c = w = function (C) {
  4712. function A(D) { D = C.call(this, D) || this; D.material = null; D.resource = null; D.type = "icon"; D.size = 12; D.anchor = "center"; D.anchorPosition = void 0; D.outline = void 0; return D } a._inheritsLoose(A, C); A.prototype.clone =
  4713. function () { return new w({ anchor: this.anchor, anchorPosition: this.anchorPosition && this.anchorPosition.clone(), enabled: this.enabled, material: e.isSome(this.material) ? this.material.clone() : null, outline: e.isSome(this.outline) ? this.outline.clone() : null, resource: this.resource && this.resource.clone(), size: this.size }) }; A.fromSimpleMarkerSymbol = function (D) {
  4714. const F = D.color || t.white, J = y(D), M = D.outline && 0 < D.outline.width ? { size: D.outline.width, color: (D.outline.color || t.white).clone() } : null; var N = w, E = D.size; {
  4715. D = D.style;
  4716. const G = z[D]; G ? D = G : (x.warn(`${D} cannot be mapped to Icon symbol. Fallback to "circle"`), D = "circle")
  4717. } return new N({ size: E, resource: { primitive: D }, material: { color: F }, outline: M, anchor: J ? "relative" : void 0, anchorPosition: J })
  4718. }; A.fromPictureMarkerSymbol = function (D) { const F = !D.color || t.isBlack(D.color) ? t.white : D.color, J = y(D); return new w({ size: D.width <= D.height ? D.height : D.width, resource: { href: D.url }, material: { color: F.clone() }, anchor: J ? "relative" : void 0, anchorPosition: J }) }; A.fromCIMSymbol = function (D) {
  4719. return new w({
  4720. resource: {
  4721. href: d.makeData({
  4722. mediaType: "application/json",
  4723. data: JSON.stringify(D.data)
  4724. })
  4725. }
  4726. })
  4727. }; return A
  4728. }(p); b.__decorate([l.property({ type: v.Symbol3DMaterial, json: { write: !0 } })], c.prototype, "material", void 0); b.__decorate([l.property({ type: n.IconSymbol3DLayerResource, json: { write: !0 } })], c.prototype, "resource", void 0); b.__decorate([m.enumeration({ Icon: "icon" }, { readOnly: !0 })], c.prototype, "type", void 0); b.__decorate([l.property(u.screenSizeProperty)], c.prototype, "size", void 0); b.__decorate([m.enumeration({
  4729. center: "center", left: "left", right: "right", top: "top", bottom: "bottom",
  4730. topLeft: "top-left", topRight: "top-right", bottomLeft: "bottom-left", bottomRight: "bottom-right", relative: "relative"
  4731. }), l.property({ json: { default: "center" } })], c.prototype, "anchor", void 0); b.__decorate([l.property({ type: f.Symbol3DAnchorPosition2D, json: { type: [Number], read: { reader: C => new f.Symbol3DAnchorPosition2D({ x: C[0], y: C[1] }) }, write: { writer: (C, A) => { A.anchorPosition = [C.x, C.y] }, overridePolicy() { return { enabled: "relative" === this.anchor } } } } })], c.prototype, "anchorPosition", void 0); b.__decorate([l.property({
  4732. type: h.Symbol3DIconOutline,
  4733. json: { write: !0 }
  4734. })], c.prototype, "outline", void 0); c = w = b.__decorate([g.subclass("esri.symbols.IconSymbol3DLayer")], c); const z = { circle: "circle", cross: "cross", diamond: "kite", square: "square", x: "x", triangle: "triangle", path: null }; return c
  4735. })
  4736. }, "esri/symbols/support/IconSymbol3DLayerResource": function () {
  4737. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../chunks/persistableUrlUtils".split(" "),
  4738. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  4739. var f; e = e.strict()({ circle: "circle", square: "square", cross: "cross", x: "x", kite: "kite", triangle: "triangle" }); a.IconSymbol3DLayerResource = f = function (h) {
  4740. function v(B) { return h.call(this, B) || this } b._inheritsLoose(v, h); var y = v.prototype; y.readHref = function (B, w, x) { return B ? u.fromJSON(B, x) : w.dataURI }; y.writeHref = function (B, w, x, z) { B && (l.isDataProtocol(B) ? w.dataURI = B : (w.href = u.toJSON(B, z), l.isAbsolute(w.href) && (w.href = l.normalize(w.href)))) }; y.clone = function () {
  4741. return new f({
  4742. href: this.href,
  4743. primitive: this.primitive
  4744. })
  4745. }; return v
  4746. }(d.JSONSupport); c.__decorate([r.property({ type: String, json: { write: !0, read: { source: ["href", "dataURI"] } } })], a.IconSymbol3DLayerResource.prototype, "href", void 0); c.__decorate([p.reader("href")], a.IconSymbol3DLayerResource.prototype, "readHref", null); c.__decorate([n.writer("href", { href: { type: String }, dataURI: { type: String } })], a.IconSymbol3DLayerResource.prototype, "writeHref", null); c.__decorate([g.enumeration(e)], a.IconSymbol3DLayerResource.prototype, "primitive", void 0);
  4747. a.IconSymbol3DLayerResource = f = c.__decorate([t.subclass("esri.symbols.support.IconSymbol3DLayerResource")], a.IconSymbol3DLayerResource); a.defaultPrimitive = "circle"; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4748. })
  4749. }, "esri/symbols/support/Symbol3DAnchorPosition2D": function () {
  4750. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  4751. function (a, b, c, e, d, l, r, q, k) {
  4752. var m; a.Symbol3DAnchorPosition2D = m = function (g) { function p() { var t = g.apply(this, arguments) || this; t.x = 0; t.y = 0; return t } b._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ x: this.x, y: this.y }) }; return p }(e); c.__decorate([d.property({ type: Number })], a.Symbol3DAnchorPosition2D.prototype, "x", void 0); c.__decorate([d.property({ type: Number })], a.Symbol3DAnchorPosition2D.prototype, "y", void 0); a.Symbol3DAnchorPosition2D = m = c.__decorate([k.subclass("esri.symbols.support.Symbol3DAnchorPosition2D")],
  4753. a.Symbol3DAnchorPosition2D); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4754. })
  4755. }, "esri/symbols/support/Symbol3DIconOutline": function () {
  4756. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
  4757. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  4758. var n; a.Symbol3DIconOutline = n = function (u) { function f(h) { h = u.call(this, h) || this; h.color = new e([0, 0, 0, 1]); h.size = r.px2pt(1); return h } b._inheritsLoose(f, u); f.prototype.clone = function () { const h = { color: l.isSome(this.color) ? this.color.clone() : null, size: this.size }; return new n(h) }; return f }(d.JSONSupport); c.__decorate([q.property(t.colorAndTransparencyProperty)], a.Symbol3DIconOutline.prototype, "color", void 0); c.__decorate([q.property(t.screenSizeProperty)], a.Symbol3DIconOutline.prototype,
  4759. "size", void 0); a.Symbol3DIconOutline = n = c.__decorate([p.subclass("esri.symbols.support.Symbol3DIconOutline")], a.Symbol3DIconOutline); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4760. })
  4761. }, "esri/symbols/LabelSymbol3D": function () {
  4762. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./support/Symbol3DVerticalOffset".split(" "),
  4763. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4764. var t; const n = c.ofType({ base: null, key: "type", typeMap: { text: m } }); c = t = function (u) {
  4765. function f(v) { v = u.call(this, v) || this; v.verticalOffset = null; v.callout = null; v.styleOrigin = null; v.symbolLayers = new n; v.type = "label-3d"; return v } a._inheritsLoose(f, u); var h = f.prototype; h.supportsCallout = function () { return !0 }; h.hasVisibleCallout = function () { return g.hasVisibleCallout(this) }; h.hasVisibleVerticalOffset = function () { return g.hasVisibleVerticalOffset(this) }; h.clone = function () {
  4766. return new t({
  4767. styleOrigin: e.clone(this.styleOrigin),
  4768. symbolLayers: e.clone(this.symbolLayers), thumbnail: e.clone(this.thumbnail), callout: e.clone(this.callout), verticalOffset: e.clone(this.verticalOffset)
  4769. })
  4770. }; f.fromTextSymbol = function (v) { return new t({ symbolLayers: [m.fromTextSymbol(v)] }) }; return f
  4771. }(k); b.__decorate([d.property({ type: p.Symbol3DVerticalOffset, json: { write: !0 } })], c.prototype, "verticalOffset", void 0); b.__decorate([d.property(g.calloutProperty)], c.prototype, "callout", void 0); b.__decorate([d.property({ json: { read: !1, write: !1 } })], c.prototype, "styleOrigin",
  4772. void 0); b.__decorate([d.property({ type: n })], c.prototype, "symbolLayers", void 0); b.__decorate([r.enumeration({ LabelSymbol3D: "label-3d" }, { readOnly: !0 })], c.prototype, "type", void 0); return c = t = b.__decorate([q.subclass("esri.symbols.LabelSymbol3D")], c)
  4773. })
  4774. }, "esri/symbols/Symbol3D": function () {
  4775. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/urlUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../portal/Portal ../chunks/persistableUrlUtils ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./PathSymbol3DLayer ./Symbol ./Symbol3DLayer ./TextSymbol3DLayer ./WaterSymbol3DLayer ./support/StyleOrigin ./support/Thumbnail".split(" "),
  4776. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F, J) {
  4777. const M = { icon: y, object: w, line: B, path: x, fill: v, extrude: h, text: A, water: D }; k = c.ofType({ base: C, key: "type", typeMap: M, errorContext: "symbol-layer" }); const N = d.getLogger("esri.symbols.Symbol3D"); d = function (E) {
  4778. function G(K) { K = E.call(this, K) || this; K.styleOrigin = null; K.thumbnail = null; K.type = null; const S = K.__accessor__ && K.__accessor__.metadatas && K.__accessor__.metadatas.symbolLayers; K._set("symbolLayers", new (S && S.type || c)); return K } a._inheritsLoose(G,
  4779. E); var H = G.prototype; H.readStyleOrigin = function (K, S, fa) { if (K.styleUrl && K.name) return S = f.fromJSON(K.styleUrl, fa), new F({ styleUrl: S, name: K.name }); if (K.styleName && K.name) return new F({ portal: fa && fa.portal || u.getDefault(), styleName: K.styleName, name: K.name }); fa && fa.messages && fa.messages.push(new r("symbol3d:incomplete-style-origin", "Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property", { context: fa, definition: K })) }; H.writeStyleOrigin = function (K, S, fa, ha) {
  4780. K.styleUrl && K.name ? (fa =
  4781. f.toJSON(K.styleUrl, ha), l.isAbsolute(fa) && (fa = l.normalize(fa)), S.styleOrigin = { styleUrl: fa, name: K.name }) : K.styleName && K.name && (K.portal && ha && ha.portal && !l.hasSamePortal(K.portal.restUrl, ha.portal.restUrl) ? ha && ha.messages && ha.messages.push(new r("symbol:cross-portal", "The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.", { symbol: this })) : S.styleOrigin = { styleName: K.styleName, name: K.name })
  4782. }; H.normalizeCtorArgs = function (K) {
  4783. return K instanceof
  4784. C || K && M[K.type] ? { symbolLayers: [K] } : Array.isArray(K) ? { symbolLayers: K } : K
  4785. }; a._createClass(G, [{ key: "color", get: function () { return null }, set: function (K) { this.initialized && N.error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.") } }, { key: "symbolLayers", set: function (K) { e.referenceSetter(K, this._get("symbolLayers")) } }]); return G
  4786. }(z); b.__decorate([q.property({ json: { read: !1, write: !1 } })], d.prototype, "color", null); b.__decorate([q.property({
  4787. type: k,
  4788. nonNullable: !0, json: { write: !0 }
  4789. }), g.cast(e.castForReferenceSetter)], d.prototype, "symbolLayers", null); b.__decorate([q.property({ type: F })], d.prototype, "styleOrigin", void 0); b.__decorate([p.reader("styleOrigin")], d.prototype, "readStyleOrigin", null); b.__decorate([n.writer("styleOrigin", { "styleOrigin.styleUrl": { type: String }, "styleOrigin.styleName": { type: String }, "styleOrigin.name": { type: String } })], d.prototype, "writeStyleOrigin", null); b.__decorate([q.property({ type: J.Thumbnail, json: { read: !1 } })], d.prototype,
  4790. "thumbnail", void 0); b.__decorate([q.property({ type: ["point-3d", "line-3d", "polygon-3d", "mesh-3d", "label-3d"], readOnly: !0 })], d.prototype, "type", void 0); return d = b.__decorate([t.subclass("esri.symbols.Symbol3D")], d)
  4791. })
  4792. }, "esri/symbols/LineSymbol3DLayer": function () {
  4793. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineStyleMarker3D ./Symbol3DLayer ./patterns/LineStylePattern3D ./patterns/utils ./support/colors ./support/materialUtils ./support/Symbol3DMaterial ./support/symbolLayerUtils3D".split(" "),
  4794. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v) {
  4795. var y; l = y = function (B) {
  4796. function w(x) { x = B.call(this, x) || this; x.material = null; x.type = "line"; x.join = "miter"; x.cap = "butt"; x.size = e.px2pt(1); x.pattern = null; x.marker = null; return x } a._inheritsLoose(w, B); w.prototype.clone = function () {
  4797. const x = {
  4798. enabled: this.enabled, material: c.isSome(this.material) ? this.material.clone() : null, size: this.size, join: this.join, cap: this.cap, pattern: c.isSome(this.pattern) ? this.pattern.clone() : null, marker: c.isSome(this.marker) ? this.marker.clone() :
  4799. null
  4800. }; return new y(x)
  4801. }; w.fromSimpleLineSymbol = function (x) { var z, C, A; x = { enabled: !0, size: null != (z = x.width) ? z : e.px2pt(1), cap: x.cap || "butt", join: x.join || "miter", pattern: x.style && "inside-frame" !== x.style ? new t({ style: x.style }) : null, material: new h.Symbol3DMaterial({ color: (x.color || u.white).clone() }), marker: x.marker ? new g({ placement: x.marker.placement, style: x.marker.style, color: null != (C = null == (A = x.marker.color) ? void 0 : A.clone()) ? C : null }) : null }; return new y(x) }; return w
  4802. }(p); b.__decorate([d.property({
  4803. type: h.Symbol3DMaterial,
  4804. json: { write: !0 }
  4805. })], l.prototype, "material", void 0); b.__decorate([k.enumeration({ Line: "line" }, { readOnly: !0 })], l.prototype, "type", void 0); b.__decorate([d.property({ type: v.lineJoins, json: { write: !0, default: "miter" } })], l.prototype, "join", void 0); b.__decorate([d.property({ type: v.lineCaps, json: { write: !0, default: "butt" } })], l.prototype, "cap", void 0); b.__decorate([d.property(f.screenSizeProperty)], l.prototype, "size", void 0); b.__decorate([d.property(n.symbol3dLinePatternProperty)], l.prototype, "pattern", void 0);
  4806. b.__decorate([d.property({ types: { key: "type", base: g, typeMap: { style: g } }, json: { write: !0 } })], l.prototype, "marker", void 0); return l = y = b.__decorate([m.subclass("esri.symbols.LineSymbol3DLayer")], l)
  4807. })
  4808. }, "esri/symbols/LineStyleMarker3D": function () {
  4809. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/Clonable ../core/JSONSupport ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/lineMarkers".split(" "),
  4810. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4811. e = function (t) { function n(u) { u = t.call(this, u) || this; u.type = "style"; u.placement = "begin-end"; u.style = "arrow"; u.color = null; return u } a._inheritsLoose(n, t); n.prototype.equals = function (u) { return l.isSome(u) && u.placement === this.placement && u.style === this.style && (l.isNone(this.color) && l.isNone(u.color) || l.isSome(this.color) && l.isSome(u.color) && this.color.toJSON() === u.color.toJSON()) }; return n }(e.ClonableMixin(d.JSONSupport)); b.__decorate([r.property({
  4812. type: ["style"], readOnly: !0,
  4813. json: { read: !0, write: { ignoreOrigin: !0 } }
  4814. })], e.prototype, "type", void 0); b.__decorate([r.property({ type: p.lineMarkerPlacements, json: { default: "begin-end", write: !0 } })], e.prototype, "placement", void 0); b.__decorate([r.property({ type: p.lineMarkerStyles, json: { default: "arrow", write: !0 } })], e.prototype, "style", void 0); b.__decorate([r.property({ type: c, json: { type: [m.Integer], default: null, write: !0 } })], e.prototype, "color", void 0); return e = b.__decorate([g.subclass("esri.symbols.LineStyleMarker3D")], e)
  4815. })
  4816. }, "esri/symbols/ObjectSymbol3DLayer": function () {
  4817. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/ObjectSymbol3DLayerResource ./support/Symbol3DAnchorPosition3D ./support/Symbol3DMaterial".split(" "),
  4818. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  4819. var n; d = n = function (u) {
  4820. function f(h) { h = u.call(this, h) || this; h.material = null; h.castShadows = !0; h.resource = null; h.type = "object"; h.width = void 0; h.height = void 0; h.depth = void 0; h.anchor = void 0; h.anchorPosition = void 0; h.heading = void 0; h.tilt = void 0; h.roll = void 0; return h } a._inheritsLoose(f, u); f.prototype.clone = function () {
  4821. return new n({
  4822. heading: this.heading, tilt: this.tilt, roll: this.roll, anchor: this.anchor, anchorPosition: this.anchorPosition && this.anchorPosition.clone(), depth: this.depth,
  4823. enabled: this.enabled, height: this.height, material: c.isSome(this.material) ? this.material.clone() : null, castShadows: this.castShadows, resource: this.resource && this.resource.clone(), width: this.width
  4824. })
  4825. }; a._createClass(f, [{ key: "isPrimitive", get: function () { return !this.resource || "string" !== typeof this.resource.href } }]); return f
  4826. }(m); b.__decorate([e.property({ type: t.Symbol3DMaterial, json: { write: !0 } })], d.prototype, "material", void 0); b.__decorate([e.property({ type: Boolean, nonNullable: !0, json: { write: !0, default: !0 } })],
  4827. d.prototype, "castShadows", void 0); b.__decorate([e.property({ type: g.ObjectSymbol3DLayerResource, json: { write: !0 } })], d.prototype, "resource", void 0); b.__decorate([q.enumeration({ Object: "object" }, { readOnly: !0 })], d.prototype, "type", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "width", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "height", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "depth", void 0); b.__decorate([q.enumeration({
  4828. center: "center",
  4829. top: "top", bottom: "bottom", origin: "origin", relative: "relative"
  4830. }), e.property({ json: { default: "origin" } })], d.prototype, "anchor", void 0); b.__decorate([e.property({ type: p.Symbol3DAnchorPosition3D, json: { type: [Number], read: { reader: u => new p.Symbol3DAnchorPosition3D({ x: u[0], y: u[1], z: u[2] }) }, write: { writer: (u, f) => { f.anchorPosition = [u.x, u.y, u.z] }, overridePolicy() { return { enabled: "relative" === this.anchor } } } } })], d.prototype, "anchorPosition", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype,
  4831. "heading", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "tilt", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "roll", void 0); b.__decorate([e.property({ readOnly: !0 })], d.prototype, "isPrimitive", null); return d = n = b.__decorate([k.subclass("esri.symbols.ObjectSymbol3DLayer")], d)
  4832. })
  4833. }, "esri/symbols/support/ObjectSymbol3DLayerResource": function () {
  4834. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../chunks/persistableUrlUtils".split(" "),
  4835. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  4836. var t; e = e.strict()({ sphere: "sphere", cylinder: "cylinder", cube: "cube", cone: "cone", diamond: "diamond", tetrahedron: "tetrahedron", invertedCone: "inverted-cone" }); a.ObjectSymbol3DLayerResource = t = function (n) { function u() { return n.apply(this, arguments) || this } b._inheritsLoose(u, n); u.prototype.clone = function () { return new t({ href: this.href, primitive: this.primitive }) }; return u }(d.JSONSupport); c.__decorate([l.property({ type: String, json: { read: p.read, write: p.write } })], a.ObjectSymbol3DLayerResource.prototype,
  4837. "href", void 0); c.__decorate([m.enumeration(e)], a.ObjectSymbol3DLayerResource.prototype, "primitive", void 0); a.ObjectSymbol3DLayerResource = t = c.__decorate([g.subclass("esri.symbols.support.ObjectSymbol3DLayerResource")], a.ObjectSymbol3DLayerResource); a.defaultPrimitive = "sphere"; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4838. })
  4839. }, "esri/symbols/support/Symbol3DAnchorPosition3D": function () {
  4840. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  4841. function (a, b, c, e, d, l, r, q, k) {
  4842. var m; a.Symbol3DAnchorPosition3D = m = function (g) { function p() { var t = g.apply(this, arguments) || this; t.x = 0; t.y = 0; t.z = 0; return t } b._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ x: this.x, y: this.y, z: this.z }) }; return p }(e); c.__decorate([d.property({ type: Number })], a.Symbol3DAnchorPosition3D.prototype, "x", void 0); c.__decorate([d.property({ type: Number })], a.Symbol3DAnchorPosition3D.prototype, "y", void 0); c.__decorate([d.property({ type: Number })], a.Symbol3DAnchorPosition3D.prototype,
  4843. "z", void 0); a.Symbol3DAnchorPosition3D = m = c.__decorate([k.subclass("esri.symbols.support.Symbol3DAnchorPosition3D")], a.Symbol3DAnchorPosition3D); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4844. })
  4845. }, "esri/symbols/PathSymbol3DLayer": function () {
  4846. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/Symbol3DMaterial ./support/symbolLayerUtils3D".split(" "),
  4847. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  4848. var n; d = n = function (u) {
  4849. function f(v) { v = u.call(this, v) || this; v.material = null; v.castShadows = !0; v.type = "path"; v.profile = "circle"; v.join = "miter"; v.cap = "butt"; v.width = void 0; v.height = void 0; v.anchor = "center"; v.profileRotation = "all"; return v } a._inheritsLoose(f, u); var h = f.prototype; h.readWidth = function (v, y) { return null != v ? v : null == y.height && null != y.size ? y.size : void 0 }; h.readHeight = function (v, y) { return null != v ? v : null == y.width && null != y.size ? y.size : void 0 }; h.clone = function () {
  4850. return new n({
  4851. enabled: this.enabled,
  4852. material: c.isSome(this.material) ? this.material.clone() : null, castShadows: this.castShadows, profile: this.profile, join: this.join, cap: this.cap, width: this.width, height: this.height, profileRotation: this.profileRotation, anchor: this.anchor
  4853. })
  4854. }; return f
  4855. }(g); b.__decorate([e.property({ type: p.Symbol3DMaterial, json: { write: !0 } })], d.prototype, "material", void 0); b.__decorate([e.property({ type: Boolean, nonNullable: !0, json: { write: !0, default: !0 } })], d.prototype, "castShadows", void 0); b.__decorate([q.enumeration({ Path: "path" },
  4856. { readOnly: !0 })], d.prototype, "type", void 0); b.__decorate([e.property({ type: ["circle", "quad"], json: { write: !0, default: "circle" } })], d.prototype, "profile", void 0); b.__decorate([e.property({ type: t.lineJoins, json: { write: !0, default: "miter" } })], d.prototype, "join", void 0); b.__decorate([e.property({ type: t.pathCaps, json: { write: !0, default: "butt" } })], d.prototype, "cap", void 0); b.__decorate([e.property({ type: Number, json: { write: { enabled: !0, target: { width: { type: Number }, size: { type: Number } } } } })], d.prototype, "width", void 0);
  4857. b.__decorate([k.reader("width", ["width", "size", "height"])], d.prototype, "readWidth", null); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "height", void 0); b.__decorate([k.reader("height", ["height", "size", "width"])], d.prototype, "readHeight", null); b.__decorate([e.property({ type: ["center", "bottom", "top"], json: { write: !0, default: "center" } })], d.prototype, "anchor", void 0); b.__decorate([e.property({ type: ["heading", "all"], json: { write: !0, default: "all" } })], d.prototype, "profileRotation", void 0);
  4858. return d = n = b.__decorate([m.subclass("esri.symbols.PathSymbol3DLayer")], d)
  4859. })
  4860. }, "esri/symbols/TextSymbol3DLayer": function () {
  4861. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol3DLayer ./support/materialUtils ./support/Symbol3DHalo ./support/Symbol3DMaterial ./support/Symbol3DTextBackground ./support/textUtils".split(" "),
  4862. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f) {
  4863. var h; l = h = function (v) {
  4864. function y(w) { w = v.call(this, w) || this; w._userSize = void 0; w.halo = null; w.horizontalAlignment = "center"; w.lineHeight = 1; w.material = null; w.background = null; w.text = null; w.type = "text"; w.verticalAlignment = "baseline"; return w } a._inheritsLoose(y, v); var B = y.prototype; B.writeFont = function (w, x, z, C) { x.font = w.write({}, { ...C, textSymbol3D: !0 }); delete x.font.size }; B.clone = function () {
  4865. const w = new h({
  4866. enabled: this.enabled, font: this.font && c.clone(this.font), halo: this.halo &&
  4867. c.clone(this.halo), horizontalAlignment: this.horizontalAlignment, lineHeight: this.lineHeight, material: e.isSome(this.material) ? this.material.clone() : null, text: this.text, verticalAlignment: this.verticalAlignment, background: c.clone(this.background)
  4868. }); w._userSize = this._userSize; return w
  4869. }; y.fromTextSymbol = function (w) {
  4870. var x = h, z = e.isSome(w.font) ? w.font.clone() : new m; var C = w.haloColor; var A = w.haloSize; C = C && 0 < A ? new t.Symbol3DHalo({ color: c.clone(C), size: A }) : null; return new x({
  4871. font: z, halo: C, horizontalAlignment: w.horizontalAlignment,
  4872. lineHeight: w.lineHeight, material: w.color ? new n.Symbol3DMaterial({ color: w.color.clone() }) : null, text: w.text, verticalAlignment: w.verticalAlignment, background: w.backgroundColor ? new u.Symbol3DTextBackground({ color: w.backgroundColor.clone() }) : null
  4873. })
  4874. }; a._createClass(y, [{ key: "font", get: function () { return this._get("font") || null }, set: function (w) { e.isSome(w) && e.isSome(this._userSize) && (w.size = this._userSize); this._set("font", w) } }, {
  4875. key: "size", get: function () {
  4876. return e.isSome(this._userSize) ? this._userSize : e.isSome(this.font) &&
  4877. null != this.font.size ? this.font.size : 9
  4878. }, set: function (w) { this._userSize = w; e.isSome(this.font) && (this.font.size = this._userSize); this.notifyChange("size") }
  4879. }]); return y
  4880. }(g); b.__decorate([d.property({ type: m, json: { write: !0 } })], l.prototype, "font", null); b.__decorate([k.writer("font")], l.prototype, "writeFont", null); b.__decorate([d.property({ type: t.Symbol3DHalo, json: { write: !0 } })], l.prototype, "halo", void 0); b.__decorate([d.property({ ...f.horizontalAlignmentProperty, json: { default: "center", write: !0 } })], l.prototype,
  4881. "horizontalAlignment", void 0); b.__decorate([d.property({ ...f.lineHeightProperty, json: { default: 1, write: !0 } })], l.prototype, "lineHeight", void 0); b.__decorate([d.property({ type: n.Symbol3DMaterial, json: { write: !0 } })], l.prototype, "material", void 0); b.__decorate([d.property({ type: u.Symbol3DTextBackground, json: { write: !0 } })], l.prototype, "background", void 0); b.__decorate([d.property(p.screenSizeProperty)], l.prototype, "size", null); b.__decorate([d.property({ type: String, json: { write: !0 } })], l.prototype, "text", void 0);
  4882. b.__decorate([r.enumeration({ Text: "text" }, { readOnly: !0 })], l.prototype, "type", void 0); b.__decorate([d.property({ ...f.verticalAlignmentProperty, json: { default: "baseline", write: !0 } })], l.prototype, "verticalAlignment", void 0); return l = h = b.__decorate([q.subclass("esri.symbols.TextSymbol3DLayer")], l)
  4883. })
  4884. }, "esri/symbols/support/Symbol3DHalo": function () {
  4885. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
  4886. function (a, b, c, e, d, l, r, q, k, m) {
  4887. var g; a.Symbol3DHalo = g = function (p) { function t() { var n = p.apply(this, arguments) || this; n.color = new e([0, 0, 0, 1]); n.size = 0; return n } b._inheritsLoose(t, p); t.prototype.clone = function () { const n = { color: l.clone(this.color), size: this.size }; return new g(n) }; return t }(d.JSONSupport); c.__decorate([r.property(m.colorAndTransparencyProperty)], a.Symbol3DHalo.prototype, "color", void 0); c.__decorate([r.property(m.screenSizeProperty)], a.Symbol3DHalo.prototype, "size", void 0); a.Symbol3DHalo =
  4888. g = c.__decorate([k.subclass("esri.symbols.support.Symbol3DHalo")], a.Symbol3DHalo); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4889. })
  4890. }, "esri/symbols/support/Symbol3DTextBackground": function () {
  4891. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
  4892. function (a, b, c, e, d, l, r, q, k, m, g) { a.Symbol3DTextBackground = function (p) { function t(n) { n = p.call(this, n) || this; n.color = null; return n } b._inheritsLoose(t, p); return t }(e.ClonableMixin(d.JSONSupport)); c.__decorate([l.property(g.colorAndTransparencyProperty)], a.Symbol3DTextBackground.prototype, "color", void 0); a.Symbol3DTextBackground = c.__decorate([m.subclass("esri.symbols.support.Symbol3DTextBackground")], a.Symbol3DTextBackground); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  4893. },
  4894. "esri/symbols/WaterSymbol3DLayer": function () {
  4895. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4896. var m; k = m = function (p) {
  4897. function t(n) {
  4898. n = p.call(this, n) || this; n.color = g.clone(); n.type = "water"; n.waterbodySize = "medium"; n.waveDirection = null; n.waveStrength =
  4899. "moderate"; return n
  4900. } a._inheritsLoose(t, p); t.prototype.clone = function () { return new m({ color: e.clone(this.color), waterbodySize: this.waterbodySize, waveDirection: this.waveDirection, waveStrength: this.waveStrength }) }; return t
  4901. }(k); b.__decorate([d.property({ type: c, nonNullable: !0, json: { type: [l.Integer], write: (p, t, n) => t[n] = p.toArray(c.AlphaMode.UNLESS_OPAQUE), default: () => g.clone(), defaultEquals: p => p.toCss(!0) === g.toCss(!0) } })], k.prototype, "color", void 0); b.__decorate([r.enumeration({ Water: "water" }, { readOnly: !0 })],
  4902. k.prototype, "type", void 0); b.__decorate([d.property({ type: ["small", "medium", "large"], json: { write: !0, default: "medium" } })], k.prototype, "waterbodySize", void 0); b.__decorate([d.property({ type: Number, json: { write: !0, default: null } })], k.prototype, "waveDirection", void 0); b.__decorate([d.property({ type: ["calm", "rippled", "slight", "moderate"], json: { write: !0, default: "moderate" } })], k.prototype, "waveStrength", void 0); k = m = b.__decorate([q.subclass("esri.symbols.WaterSymbol3DLayer")], k); const g = new c([0, 119, 190]);
  4903. return k
  4904. })
  4905. }, "esri/symbols/support/StyleOrigin": function () {
  4906. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../portal/Portal".split(" "), function (a, b, c, e, d, l, r, q, k) {
  4907. var m; c = m = function (g) {
  4908. function p() { var t = g.apply(this, arguments) || this; t.portal = null; return t } a._inheritsLoose(p, g); p.prototype.clone =
  4909. function () { return new m({ name: this.name, styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal }) }; return p
  4910. }(c); b.__decorate([e.property({ type: String })], c.prototype, "name", void 0); b.__decorate([e.property({ type: String })], c.prototype, "styleUrl", void 0); b.__decorate([e.property({ type: String })], c.prototype, "styleName", void 0); b.__decorate([e.property({ type: k })], c.prototype, "portal", void 0); return c = m = b.__decorate([q.subclass("esri.symbols.support.StyleOrigin")], c)
  4911. })
  4912. }, "esri/symbols/support/Thumbnail": function () {
  4913. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  4914. function (a, b, c, e, d, l, r, q, k) { var m; a.Thumbnail = m = function (g) { function p() { return g.apply(this, arguments) || this } b._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ url: this.url }) }; return p }(e); c.__decorate([d.property({ type: String })], a.Thumbnail.prototype, "url", void 0); a.Thumbnail = m = c.__decorate([k.subclass("esri.symbols.support.Thumbnail")], a.Thumbnail); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  4915. }, "esri/symbols/callouts/calloutUtils": function () {
  4916. define(["exports",
  4917. "./Callout3D", "./LineCallout3D"], function (a, b, c) {
  4918. function e(d) { if (!d) return !1; d = d.verticalOffset; return !d || 0 >= d.screenLength || 0 >= d.maxWorldLength ? !1 : !0 } a.calloutProperty = { types: { key: "type", base: b, typeMap: { line: c } }, json: { write: !0 } }; a.hasCalloutSupport = function (d) { return "point-3d" === d.type || "label-3d" === d.type }; a.hasVisibleCallout = function (d) { if (!d || !d.supportsCallout || !d.supportsCallout()) return !1; const l = d.callout; return l && l.visible ? e(d) ? !0 : !1 : !1 }; a.hasVisibleVerticalOffset = e; a.textSymbolLayerSupportsVerticalOffset =
  4919. function (d) { return "center" === d.horizontalAlignment }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4920. })
  4921. }, "esri/symbols/callouts/Callout3D": function () {
  4922. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  4923. c = function (k) {
  4924. function m(g) {
  4925. g =
  4926. k.call(this, g) || this; g.visible = !0; return g
  4927. } a._inheritsLoose(m, k); m.prototype.clone = function () { }; return m
  4928. }(c.JSONSupport); b.__decorate([e.property({ type: ["line"], readOnly: !0, json: { read: !1, write: { ignoreOrigin: !0 } } })], c.prototype, "type", void 0); b.__decorate([e.property({ readOnly: !0 })], c.prototype, "visible", void 0); return c = b.__decorate([q.subclass("esri.symbols.callouts.Callout3D")], c)
  4929. })
  4930. }, "esri/symbols/callouts/LineCallout3D": function () {
  4931. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Callout3D ../../chunks/LineCallout3DBorder ../support/materialUtils".split(" "),
  4932. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  4933. var n; q = n = function (u) { function f(h) { h = u.call(this, h) || this; h.type = "line"; h.color = new c([0, 0, 0, 1]); h.size = l.px2pt(1); h.border = null; return h } a._inheritsLoose(f, u); f.prototype.clone = function () { return new n({ color: e.clone(this.color), size: this.size, border: e.clone(this.border) }) }; a._createClass(f, [{ key: "visible", get: function () { return 0 < this.size && d.isSome(this.color) && 0 < this.color.a } }]); return f }(g); b.__decorate([k.enumeration({ line: "line" }, { readOnly: !0 })], q.prototype,
  4934. "type", void 0); b.__decorate([r.property(t.colorAndTransparencyProperty)], q.prototype, "color", void 0); b.__decorate([r.property(t.screenSizeProperty)], q.prototype, "size", void 0); b.__decorate([r.property({ type: p.LineCallout3DBorder$1, json: { write: !0 } })], q.prototype, "border", void 0); b.__decorate([r.property({ readOnly: !0 })], q.prototype, "visible", null); return q = n = b.__decorate([m.subclass("esri.symbols.callouts.LineCallout3D")], q)
  4935. })
  4936. }, "esri/chunks/LineCallout3DBorder": function () {
  4937. define("exports ./_rollupPluginBabelHelpers ./tslib.es6 ../Color ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../symbols/support/materialUtils".split(" "),
  4938. function (a, b, c, e, d, l, r, q, k, m) {
  4939. var g; d = g = function (p) { function t() { var n = p.apply(this, arguments) || this; n.color = new e("white"); return n } b._inheritsLoose(t, p); t.prototype.clone = function () { return new g({ color: l.clone(this.color) }) }; return t }(d.JSONSupport); c.__decorate([r.property(m.colorAndTransparencyProperty)], d.prototype, "color", void 0); c = d = g = c.__decorate([k.subclass("esri.symbols.callouts.LineCallout3DBorder")], d); r = Object.freeze(Object.defineProperty({ __proto__: null, default: c }, Symbol.toStringTag,
  4940. { value: "Module" })); a.LineCallout3DBorder = r; a.LineCallout3DBorder$1 = c
  4941. })
  4942. }, "esri/symbols/support/Symbol3DVerticalOffset": function () {
  4943. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  4944. var g; a.Symbol3DVerticalOffset = g = function (p) {
  4945. function t() {
  4946. var n =
  4947. p.apply(this, arguments) || this; n.screenLength = 0; n.minWorldLength = 0; return n
  4948. } b._inheritsLoose(t, p); t.prototype.clone = function () { return new g({ screenLength: this.screenLength, minWorldLength: this.minWorldLength, maxWorldLength: this.maxWorldLength }) }; return t
  4949. }(e.JSONSupport); c.__decorate([d.property(m.screenSizeProperty)], a.Symbol3DVerticalOffset.prototype, "screenLength", void 0); c.__decorate([d.property({ type: Number, json: { write: !0, default: 0 } })], a.Symbol3DVerticalOffset.prototype, "minWorldLength", void 0);
  4950. c.__decorate([d.property({ type: Number, json: { write: !0 } })], a.Symbol3DVerticalOffset.prototype, "maxWorldLength", void 0); a.Symbol3DVerticalOffset = g = c.__decorate([k.subclass("esri.symbols.support.Symbol3DVerticalOffset")], a.Symbol3DVerticalOffset); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  4951. })
  4952. }, "esri/symbols/LineSymbol3D": function () {
  4953. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineSymbol3DLayer ./PathSymbol3DLayer ./Symbol3D".split(" "),
  4954. function (a, b, c, e, d, l, r, q, k, m, g) {
  4955. var p; const t = c.ofType({ base: null, key: "type", typeMap: { line: k, path: m } }); c = c.ofType({ base: null, key: "type", typeMap: { line: k, path: m } }); g = p = function (n) {
  4956. function u(f) { f = n.call(this, f) || this; f.symbolLayers = new t; f.type = "line-3d"; return f } a._inheritsLoose(u, n); u.prototype.clone = function () { return new p({ styleOrigin: e.clone(this.styleOrigin), symbolLayers: e.clone(this.symbolLayers), thumbnail: e.clone(this.thumbnail) }) }; u.fromSimpleLineSymbol = function (f) { return new p({ symbolLayers: [k.fromSimpleLineSymbol(f)] }) };
  4957. return u
  4958. }(g); b.__decorate([d.property({ type: t, json: { type: c } })], g.prototype, "symbolLayers", void 0); b.__decorate([r.enumeration({ LineSymbol3D: "line-3d" }, { readOnly: !0 })], g.prototype, "type", void 0); return g = p = b.__decorate([q.subclass("esri.symbols.LineSymbol3D")], g)
  4959. })
  4960. }, "esri/symbols/MarkerSymbol": function () {
  4961. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./Symbol".split(" "),
  4962. function (a, b, c, e, d, l, r, q, k) {
  4963. d = function (m) { function g(p) { p = m.call(this, p) || this; p.angle = 0; p.type = null; p.xoffset = 0; p.yoffset = 0; p.size = 9; return p } a._inheritsLoose(g, m); g.prototype.hash = function () { return `${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}` }; return g }(k); b.__decorate([e.property({ type: Number, json: { read: m => m && -1 * m, write: (m, g) => g.angle = m && -1 * m } })], d.prototype, "angle", void 0); b.__decorate([e.property({ type: ["simple-marker", "picture-marker"], readOnly: !0 })], d.prototype,
  4964. "type", void 0); b.__decorate([e.property({ type: Number, cast: c.toPt, json: { write: !0 } })], d.prototype, "xoffset", void 0); b.__decorate([e.property({ type: Number, cast: c.toPt, json: { write: !0 } })], d.prototype, "yoffset", void 0); b.__decorate([e.property({ type: Number, cast: m => "auto" === m ? m : c.toPt(m), json: { write: !0 } })], d.prototype, "size", void 0); return d = b.__decorate([q.subclass("esri.symbols.MarkerSymbol")], d)
  4965. })
  4966. }, "esri/symbols/MeshSymbol3D": function () {
  4967. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol3DLayer ./Symbol3D".split(" "),
  4968. function (a, b, c, e, d, l, r, q, k, m) {
  4969. var g; const p = c.ofType({ base: null, key: "type", typeMap: { fill: k } }); c = g = function (t) { function n(u) { u = t.call(this, u) || this; u.symbolLayers = new p; u.type = "mesh-3d"; return u } a._inheritsLoose(n, t); n.prototype.clone = function () { return new g({ styleOrigin: e.clone(this.styleOrigin), symbolLayers: e.clone(this.symbolLayers), thumbnail: e.clone(this.thumbnail) }) }; return n }(m); b.__decorate([d.property({ type: p })], c.prototype, "symbolLayers", void 0); b.__decorate([r.enumeration({ MeshSymbol3D: "mesh-3d" },
  4970. { readOnly: !0 })], c.prototype, "type", void 0); return c = g = b.__decorate([q.subclass("esri.symbols.MeshSymbol3D")], c)
  4971. })
  4972. }, "esri/symbols/PictureFillSymbol": function () {
  4973. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./support/urlUtils".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  4974. var g;
  4975. l = g = function (p) {
  4976. function t(...u) { u = p.call(this, ...u) || this; u.type = "picture-fill"; u.url = null; u.xscale = 1; u.yscale = 1; u.width = 12; u.height = 12; u.xoffset = 0; u.yoffset = 0; u.source = null; return u } a._inheritsLoose(t, p); var n = t.prototype; n.normalizeCtorArgs = function (u, f, h, v) { if (u && "string" !== typeof u && null == u.imageData) return u; const y = {}; u && (y.url = u); f && (y.outline = f); null != h && (y.width = e.toPt(h)); null != v && (y.height = e.toPt(v)); return y }; n.clone = function () {
  4977. const u = new g({
  4978. color: c.clone(this.color), height: this.height,
  4979. outline: this.outline && this.outline.clone(), url: this.url, width: this.width, xoffset: this.xoffset, xscale: this.xscale, yoffset: this.yoffset, yscale: this.yscale
  4980. }); u._set("source", c.clone(this.source)); return u
  4981. }; n.hash = function () { var u; return `${p.prototype.hash.call(this)}.${null == (u = this.color) ? void 0 : u.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}` }; return t
  4982. }(k); b.__decorate([r.enumeration({ esriPFS: "picture-fill" }, { readOnly: !0 })], l.prototype,
  4983. "type", void 0); b.__decorate([d.property(m.urlPropertyDefinition)], l.prototype, "url", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })], l.prototype, "xscale", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })], l.prototype, "yscale", void 0); b.__decorate([d.property({ type: Number, cast: e.toPt, json: { write: !0 } })], l.prototype, "width", void 0); b.__decorate([d.property({ type: Number, cast: e.toPt, json: { write: !0 } })], l.prototype, "height", void 0); b.__decorate([d.property({
  4984. type: Number, cast: e.toPt,
  4985. json: { write: !0 }
  4986. })], l.prototype, "xoffset", void 0); b.__decorate([d.property({ type: Number, cast: e.toPt, json: { write: !0 } })], l.prototype, "yoffset", void 0); b.__decorate([d.property(m.sourcePropertyDefinition)], l.prototype, "source", void 0); return l = g = b.__decorate([q.subclass("esri.symbols.PictureFillSymbol")], l)
  4987. })
  4988. }, "esri/symbols/support/urlUtils": function () {
  4989. define(["exports", "../../core/urlUtils", "../../chunks/persistableUrlUtils"], function (a, b, c) {
  4990. function e(q, k, m) {
  4991. return k.imageData ? b.makeData({
  4992. mediaType: k.contentType ||
  4993. "image/png", isBase64: !0, data: k.imageData
  4994. }) : d(k.url, m)
  4995. } function d(q, k) { return !k || "service" !== k.origin && "portal-item" !== k.origin || !k.layer || "feature" !== k.layer.type && "stream" !== k.layer.type || b.isAbsolute(q) || !k.layer.parsedUrl ? c.fromJSON(q, k) : b.join(k.layer.parsedUrl.path, "images", q) } function l(q, k, m, g) { b.isDataProtocol(q) ? (q = b.dataComponents(q), k.contentType = q.mediaType, k.imageData = q.data, m && m.imageData === k.imageData && m.url && c.write(m.url, k, "url", g)) : c.write(q, k, "url", g) } const r = {
  4996. json: {
  4997. read: {
  4998. source: ["imageData",
  4999. "url"], reader: e
  5000. }, write: { writer(q, k, m, g) { l(q, k, this.source, g) } }
  5001. }
  5002. }; a.read = d; a.readImageDataOrUrl = e; a.sourcePropertyDefinition = { readOnly: !0, json: { read: { source: ["imageData", "url"], reader(q, k, m) { q = {}; k.imageData && (q.imageData = k.imageData); k.contentType && (q.contentType = k.contentType); k.url && (q.url = d(k.url, m)); return q } } } }; a.urlPropertyDefinition = r; a.writeImageDataAndUrl = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5003. })
  5004. }, "esri/symbols/PictureMarkerSymbol": function () {
  5005. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./MarkerSymbol ./support/urlUtils".split(" "),
  5006. function (a, b, c, e, d, l, r, q, k, m, g) {
  5007. var p; l = p = function (t) {
  5008. function n(...f) { f = t.call(this, ...f) || this; f.color = null; f.type = "picture-marker"; f.url = null; f.source = null; f.height = 12; f.width = 12; f.size = null; return f } a._inheritsLoose(n, t); var u = n.prototype; u.normalizeCtorArgs = function (f, h, v) { if (f && "string" !== typeof f && null == f.imageData) return f; const y = {}; f && (y.url = f); null != h && (y.width = e.toPt(h)); null != v && (y.height = e.toPt(v)); return y }; u.readHeight = function (f, h) { return h.size || f }; u.readWidth = function (f, h) {
  5009. return h.size ||
  5010. f
  5011. }; u.clone = function () { const f = new p({ angle: this.angle, height: this.height, url: this.url, width: this.width, xoffset: this.xoffset, yoffset: this.yoffset }); f._set("source", c.clone(this.source)); return f }; u.hash = function () { return `${t.prototype.hash.call(this)}.${this.height}.${this.url}.${this.width}` }; return n
  5012. }(m); b.__decorate([d.property({ json: { write: !1 } })], l.prototype, "color", void 0); b.__decorate([r.enumeration({ esriPMS: "picture-marker" }, { readOnly: !0 })], l.prototype, "type", void 0); b.__decorate([d.property(g.urlPropertyDefinition)],
  5013. l.prototype, "url", void 0); b.__decorate([d.property(g.sourcePropertyDefinition)], l.prototype, "source", void 0); b.__decorate([d.property({ type: Number, cast: e.toPt, json: { write: !0 } })], l.prototype, "height", void 0); b.__decorate([q.reader("height", ["height", "size"])], l.prototype, "readHeight", null); b.__decorate([d.property({ type: Number, cast: e.toPt, json: { write: !0 } })], l.prototype, "width", void 0); b.__decorate([d.property({ json: { write: !1 } })], l.prototype, "size", void 0); return l = p = b.__decorate([k.subclass("esri.symbols.PictureMarkerSymbol")],
  5014. l)
  5015. })
  5016. }, "esri/symbols/PointSymbol3D": function () {
  5017. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./IconSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./support/Symbol3DVerticalOffset".split(" "), function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  5018. var u; const f =
  5019. c.ofType({ base: null, key: "type", typeMap: { icon: k, object: m, text: p } }); c = u = function (h) {
  5020. function v(B) { B = h.call(this, B) || this; B.verticalOffset = null; B.callout = null; B.symbolLayers = new f; B.type = "point-3d"; return B } a._inheritsLoose(v, h); var y = v.prototype; y.supportsCallout = function () { if (1 > (this.symbolLayers ? this.symbolLayers.length : 0)) return !1; for (const B of this.symbolLayers.items) switch (B.type) { case "icon": case "text": case "object": continue; default: return !1 }return !0 }; y.hasVisibleCallout = function () { return t.hasVisibleCallout(this) };
  5021. y.hasVisibleVerticalOffset = function () { return t.hasVisibleVerticalOffset(this) }; y.clone = function () { return new u({ verticalOffset: e.clone(this.verticalOffset), callout: e.clone(this.callout), styleOrigin: e.clone(this.styleOrigin), symbolLayers: e.clone(this.symbolLayers), thumbnail: e.clone(this.thumbnail) }) }; v.fromSimpleMarkerSymbol = function (B) { return new u({ symbolLayers: [k.fromSimpleMarkerSymbol(B)] }) }; v.fromPictureMarkerSymbol = function (B) { return new u({ symbolLayers: [k.fromPictureMarkerSymbol(B)] }) }; v.fromCIMSymbol =
  5022. function (B) { var w, x; return "CIMPointSymbol" !== (null == (w = B.data) ? void 0 : null == (x = w.symbol) ? void 0 : x.type) ? null : B.data.symbol.callout ? new u({ symbolLayers: [k.fromCIMSymbol(B)], callout: { type: "line", size: .5, color: [0, 0, 0] }, verticalOffset: { screenLength: 40 } }) : new u({ symbolLayers: [k.fromCIMSymbol(B)] }) }; v.fromTextSymbol = function (B) { return new u({ symbolLayers: [p.fromTextSymbol(B)] }) }; return v
  5023. }(g); b.__decorate([d.property({ type: n.Symbol3DVerticalOffset, json: { write: !0 } })], c.prototype, "verticalOffset", void 0);
  5024. b.__decorate([d.property(t.calloutProperty)], c.prototype, "callout", void 0); b.__decorate([d.property({ type: f, json: { origins: { "web-scene": { write: !0 } } } })], c.prototype, "symbolLayers", void 0); b.__decorate([r.enumeration({ PointSymbol3D: "point-3d" }, { readOnly: !0 })], c.prototype, "type", void 0); return c = u = b.__decorate([q.subclass("esri.symbols.PointSymbol3D")], c)
  5025. })
  5026. }, "esri/symbols/PolygonSymbol3D": function () {
  5027. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./WaterSymbol3DLayer".split(" "),
  5028. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h) {
  5029. var v; const y = c.ofType({ base: null, key: "type", typeMap: { extrude: m, fill: g, icon: p, line: t, object: n, text: f, water: h } }); c = v = function (B) {
  5030. function w(x) { x = B.call(this, x) || this; x.symbolLayers = new y; x.type = "polygon-3d"; return x } a._inheritsLoose(w, B); w.prototype.clone = function () { return new v({ styleOrigin: e.clone(this.styleOrigin), symbolLayers: e.clone(this.symbolLayers), thumbnail: e.clone(this.thumbnail) }) }; w.fromJSON = function (x) {
  5031. const z = new v; z.read(x); if (2 === z.symbolLayers.length &&
  5032. "fill" === z.symbolLayers.getItemAt(0).type && "line" === z.symbolLayers.getItemAt(1).type) { const C = z.symbolLayers.getItemAt(0), A = z.symbolLayers.getItemAt(1); !A.enabled || x.symbolLayers && x.symbolLayers[1] && !1 === x.symbolLayers[1].enable || (C.outline = { size: A.size, color: d.isSome(A.material) ? A.material.color : null }); z.symbolLayers.removeAt(1) } return z
  5033. }; w.fromSimpleFillSymbol = function (x) { return new v({ symbolLayers: [g.fromSimpleFillSymbol(x)] }) }; return w
  5034. }(u); b.__decorate([l.property({ type: y, json: { write: !0 } })], c.prototype,
  5035. "symbolLayers", void 0); b.__decorate([q.enumeration({ PolygonSymbol3D: "polygon-3d" }, { readOnly: !0 })], c.prototype, "type", void 0); return c = v = b.__decorate([k.subclass("esri.symbols.PolygonSymbol3D")], c)
  5036. })
  5037. }, "esri/symbols/SimpleFillSymbol": function () {
  5038. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./SimpleLineSymbol".split(" "),
  5039. function (a, b, c, e, d, l, r, q, k, m, g) {
  5040. var p; e = new e.JSONMap({ esriSFSSolid: "solid", esriSFSNull: "none", esriSFSHorizontal: "horizontal", esriSFSVertical: "vertical", esriSFSForwardDiagonal: "forward-diagonal", esriSFSBackwardDiagonal: "backward-diagonal", esriSFSCross: "cross", esriSFSDiagonalCross: "diagonal-cross" }); m = p = function (t) {
  5041. function n(...f) { f = t.call(this, ...f) || this; f.color = new c([0, 0, 0, .25]); f.outline = new g; f.type = "simple-fill"; f.style = "solid"; return f } a._inheritsLoose(n, t); var u = n.prototype; u.normalizeCtorArgs =
  5042. function (f, h, v) { if (f && "string" !== typeof f) return f; const y = {}; f && (y.style = f); h && (y.outline = h); v && (y.color = v); return y }; u.clone = function () { return new p({ color: d.clone(this.color), outline: this.outline && this.outline.clone(), style: this.style }) }; u.hash = function () { return `${t.prototype.hash.call(this)}${this.style}.${this.color && this.color.hash()}` }; return n
  5043. }(m); b.__decorate([l.property()], m.prototype, "color", void 0); b.__decorate([l.property()], m.prototype, "outline", void 0); b.__decorate([q.enumeration({ esriSFS: "simple-fill" },
  5044. { readOnly: !0 })], m.prototype, "type", void 0); b.__decorate([l.property({ type: e.apiValues, json: { read: e.read, write: e.write } })], m.prototype, "style", void 0); return m = p = b.__decorate([k.subclass("esri.symbols.SimpleFillSymbol")], m)
  5045. })
  5046. }, "esri/symbols/SimpleMarkerSymbol": function () {
  5047. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./MarkerSymbol ./SimpleLineSymbol".split(" "),
  5048. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  5049. var n; e = new e.JSONMap({ esriSMSCircle: "circle", esriSMSSquare: "square", esriSMSCross: "cross", esriSMSX: "x", esriSMSDiamond: "diamond", esriSMSTriangle: "triangle", esriSMSPath: "path" }); p = n = function (u) {
  5050. function f(...v) { v = u.call(this, ...v) || this; v.color = new c([255, 255, 255, .25]); v.type = "simple-marker"; v.size = 12; v.style = "circle"; v.outline = new t; return v } a._inheritsLoose(f, u); var h = f.prototype; h.normalizeCtorArgs = function (v, y, B, w) {
  5051. if (v && "string" !== typeof v) return v; const x = {};
  5052. v && (x.style = v); null != y && (x.size = l.toPt(y)); B && (x.outline = B); w && (x.color = w); return x
  5053. }; h.writeColor = function (v, y) { v && "x" !== this.style && "cross" !== this.style && (y.color = v.toJSON()); null === v && (y.color = null) }; h.clone = function () { return new n({ angle: this.angle, color: d.clone(this.color), outline: this.outline && this.outline.clone(), path: this.path, size: this.size, style: this.style, xoffset: this.xoffset, yoffset: this.yoffset }) }; h.hash = function () {
  5054. var v; return `${u.prototype.hash.call(this)}.${this.color && this.color.hash()}.${this.path}.${this.style}.${null ==
  5055. (v = this.outline) ? void 0 : v.hash()}`
  5056. }; a._createClass(f, [{ key: "path", set: function (v) { this.style = "path"; this._set("path", v) } }]); return f
  5057. }(p); b.__decorate([r.property()], p.prototype, "color", void 0); b.__decorate([g.writer("color")], p.prototype, "writeColor", null); b.__decorate([k.enumeration({ esriSMS: "simple-marker" }, { readOnly: !0 })], p.prototype, "type", void 0); b.__decorate([r.property()], p.prototype, "size", void 0); b.__decorate([r.property({ type: e.apiValues, json: { read: e.read, write: e.write } })], p.prototype, "style",
  5058. void 0); b.__decorate([r.property({ type: String, json: { write: !0 } })], p.prototype, "path", null); b.__decorate([r.property({ types: { key: "type", base: null, defaultKeyValue: "simple-line", typeMap: { "simple-line": t } }, json: { default: null, write: !0 } })], p.prototype, "outline", void 0); return p = n = b.__decorate([m.subclass("esri.symbols.SimpleMarkerSymbol")], p)
  5059. })
  5060. }, "esri/symbols/TextSymbol": function () {
  5061. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol ./support/textUtils".split(" "),
  5062. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  5063. var n; p = n = function (u) {
  5064. function f(...v) { v = u.call(this, ...v) || this; v.backgroundColor = null; v.borderLineColor = null; v.borderLineSize = null; v.font = new g; v.horizontalAlignment = "center"; v.kerning = !0; v.haloColor = null; v.haloSize = null; v.rightToLeft = null; v.rotated = !1; v.text = ""; v.type = "text"; v.verticalAlignment = "baseline"; v.xoffset = 0; v.yoffset = 0; v.angle = 0; v.width = null; v.lineWidth = 192; v.lineHeight = 1; return v } a._inheritsLoose(f, u); var h = f.prototype; h.normalizeCtorArgs = function (v,
  5065. y, B) { if (v && "string" !== typeof v) return v; const w = {}; v && (w.text = v); y && (w.font = y); B && (w.color = B); return w }; h.writeLineWidth = function (v, y, B, w) { w && "string" !== typeof w || (y[B] = v) }; h.castLineWidth = function (v) { return d.toPt(v) }; h.writeLineHeight = function (v, y, B, w) { w && "string" !== typeof w || (y[B] = v) }; h.clone = function () {
  5066. return new n({
  5067. angle: this.angle, backgroundColor: e.clone(this.backgroundColor), borderLineColor: e.clone(this.borderLineColor), borderLineSize: this.borderLineSize, color: e.clone(this.color), font: this.font &&
  5068. this.font.clone(), haloColor: e.clone(this.haloColor), haloSize: this.haloSize, horizontalAlignment: this.horizontalAlignment, kerning: this.kerning, lineHeight: this.lineHeight, lineWidth: this.lineWidth, rightToLeft: this.rightToLeft, rotated: this.rotated, text: this.text, verticalAlignment: this.verticalAlignment, width: this.width, xoffset: this.xoffset, yoffset: this.yoffset
  5069. })
  5070. }; h.hash = function () {
  5071. return `${this.backgroundColor && this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color.hash()}.${this.font &&
  5072. this.font.hash()}.${this.haloColor && this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`
  5073. }; return f
  5074. }(p); b.__decorate([l.property({ type: c, json: { write: !0 } })], p.prototype, "backgroundColor", void 0); b.__decorate([l.property({ type: c, json: { write: !0 } })], p.prototype, "borderLineColor", void 0); b.__decorate([l.property({
  5075. type: Number,
  5076. json: { write: !0 }
  5077. })], p.prototype, "borderLineSize", void 0); b.__decorate([l.property({ type: g, json: { write: !0 } })], p.prototype, "font", void 0); b.__decorate([l.property({ ...t.horizontalAlignmentProperty, json: { write: !0 } })], p.prototype, "horizontalAlignment", void 0); b.__decorate([l.property({ type: Boolean, json: { write: !0 } })], p.prototype, "kerning", void 0); b.__decorate([l.property({ type: c, json: { write: !0 } })], p.prototype, "haloColor", void 0); b.__decorate([l.property({ type: Number, cast: d.toPt, json: { write: !0 } })], p.prototype,
  5078. "haloSize", void 0); b.__decorate([l.property({ type: Boolean, json: { write: !0 } })], p.prototype, "rightToLeft", void 0); b.__decorate([l.property({ type: Boolean, json: { write: !0 } })], p.prototype, "rotated", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], p.prototype, "text", void 0); b.__decorate([q.enumeration({ esriTS: "text" }, { readOnly: !0 })], p.prototype, "type", void 0); b.__decorate([l.property({ ...t.verticalAlignmentProperty, json: { write: !0 } })], p.prototype, "verticalAlignment", void 0); b.__decorate([l.property({
  5079. type: Number,
  5080. cast: d.toPt, json: { write: !0 }
  5081. })], p.prototype, "xoffset", void 0); b.__decorate([l.property({ type: Number, cast: d.toPt, json: { write: !0 } })], p.prototype, "yoffset", void 0); b.__decorate([l.property({ type: Number, json: { read: u => u && -1 * u, write: (u, f) => f.angle = u && -1 * u } })], p.prototype, "angle", void 0); b.__decorate([l.property({ type: Number, json: { write: !0 } })], p.prototype, "width", void 0); b.__decorate([l.property({ type: Number })], p.prototype, "lineWidth", void 0); b.__decorate([m.writer("lineWidth")], p.prototype, "writeLineWidth",
  5082. null); b.__decorate([r.cast("lineWidth")], p.prototype, "castLineWidth", null); b.__decorate([l.property(t.lineHeightProperty)], p.prototype, "lineHeight", void 0); b.__decorate([m.writer("lineHeight")], p.prototype, "writeLineHeight", null); return p = n = b.__decorate([k.subclass("esri.symbols.TextSymbol")], p)
  5083. })
  5084. }, "esri/symbols/WebStyleSymbol": function () {
  5085. define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../portal/Portal ../chunks/persistableUrlUtils ./Symbol ./support/Thumbnail".split(" "),
  5086. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f) {
  5087. function h() { return new Promise((B, w) => a(["./support/webStyleSymbolUtils"], B, w)) } var v; const y = e.getLogger("esri.symbols.WebStyleSymbol"); e = v = function (B) {
  5088. function w(z) { z = B.call(this, z) || this; z.styleName = null; z.portal = null; z.styleUrl = null; z.thumbnail = null; z.name = null; z.type = "web-style"; return z } b._inheritsLoose(w, B); var x = w.prototype; x.read = function (z, C) { this.portal = C ? C.portal : void 0; B.prototype.read.call(this, z, C) }; x.clone = function () {
  5089. return new v({
  5090. name: this.name,
  5091. styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal
  5092. })
  5093. }; x.fetchSymbol = function (z) { return this._fetchSymbol("webRef", z) }; x.fetchCIMSymbol = function (z) { return this._fetchSymbol("cimRef", z) }; x._fetchSymbol = function () {
  5094. var z = b._asyncToGenerator(function* (C, A) {
  5095. const D = d.isSome(A) ? A.cache : null, F = D ? this.fetchCacheKey : null; if (d.isSome(D)) { var J = D.get(F); if (J) return J.clone() } J = yield h(); l.throwIfAborted(A); A = J.resolveWebStyleSymbol(this, { portal: this.portal }, C, A); A.catch(M => {
  5096. y.error("#fetchSymbol()",
  5097. "Failed to create symbol from style", M)
  5098. }); A = yield A; if (!("webRef" === C && "point-3d" === A.type || "cimRef" === C && "cim" === A.type)) return null; d.isSome(D) && D.set(F, A.clone()); return A
  5099. }); return function (C, A) { return z.apply(this, arguments) }
  5100. }(); b._createClass(w, [{ key: "fetchCacheKey", get: function () { const z = d.isSome(this.portal) ? this.portal : t.getDefault(); return `${this.styleName}:${this.styleUrl}:${this.name}:${z.user ? z.user.username : null}:${z.url}` } }]); return w
  5101. }(u); c.__decorate([r.property({ json: { write: !1 } })],
  5102. e.prototype, "color", void 0); c.__decorate([r.property({ type: String, json: { write: !0 } })], e.prototype, "styleName", void 0); c.__decorate([r.property({ type: t, json: { write: !1 } })], e.prototype, "portal", void 0); c.__decorate([r.property({ type: String, json: { read: n.read, write: n.write } })], e.prototype, "styleUrl", void 0); c.__decorate([r.property({ type: f.Thumbnail, json: { read: !1 } })], e.prototype, "thumbnail", void 0); c.__decorate([r.property({ type: String, json: { write: !0 } })], e.prototype, "name", void 0); c.__decorate([g.enumeration({ styleSymbolReference: "web-style" },
  5103. { readOnly: !0 })], e.prototype, "type", void 0); c.__decorate([r.property()], e.prototype, "fetchCacheKey", null); return e = v = c.__decorate([p.subclass("esri.symbols.WebStyleSymbol")], e)
  5104. })
  5105. }, "esri/renderers/Renderer": function () {
  5106. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/AuthoringInfo".split(" "),
  5107. function (a, b, c, e, d, l, r, q, k, m) {
  5108. c = new c.JSONMap({ simple: "simple", uniqueValue: "unique-value", classBreaks: "class-breaks", heatmap: "heatmap", dotDensity: "dot-density", dictionary: "dictionary", pieChart: "pie-chart" }, { ignoreUnknown: !0 }); e = function (g) {
  5109. function p(n) { n = g.call(this, n) || this; n.authoringInfo = null; n.type = null; return n } a._inheritsLoose(p, g); var t = p.prototype; t.getRequiredFields = function () {
  5110. var n = a._asyncToGenerator(function* (u) {
  5111. if (!this.collectRequiredFields) return []; const f = new Set; yield this.collectRequiredFields(f,
  5112. u); return Array.from(f).sort()
  5113. }); return function (u) { return n.apply(this, arguments) }
  5114. }(); t.getSymbol = function (n, u) { }; t.getSymbolAsync = function () { var n = a._asyncToGenerator(function* (u, f) { }); return function (u, f) { return n.apply(this, arguments) } }(); t.getSymbols = function () { return [] }; t.getAttributeHash = function () { return JSON.stringify(this) }; t.getMeshHash = function () { return JSON.stringify(this) }; return p
  5115. }(e.JSONSupport); b.__decorate([d.property({ type: m, json: { write: !0 } })], e.prototype, "authoringInfo", void 0);
  5116. b.__decorate([d.property({ type: c.apiValues, readOnly: !0, json: { type: c.jsonValues, read: !1, write: { writer: c.write, ignoreOrigin: !0 } } })], e.prototype, "type", void 0); return e = b.__decorate([k.subclass("esri.renderers.Renderer")], e)
  5117. })
  5118. }, "esri/renderers/support/AuthoringInfo": function () {
  5119. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ./AuthoringInfoFieldInfo ./AuthoringInfoVisualVariable ../../rest/support/colorRamps".split(" "),
  5120. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  5121. var t; const n = new c.JSONMap({ esriClassifyDefinedInterval: "defined-interval", esriClassifyEqualInterval: "equal-interval", esriClassifyManual: "manual", esriClassifyNaturalBreaks: "natural-breaks", esriClassifyQuantile: "quantile", esriClassifyStandardDeviation: "standard-deviation" }), u = new c.JSONMap({
  5122. pieChart: "pie-chart", classedSize: "class-breaks-size", classedColor: "class-breaks-color", univariateColorSize: "univariate-color-size", relationship: "relationship", predominance: "predominance",
  5123. dotDensity: "dot-density", flow: "flow"
  5124. }); c = new c.JSONMap({ classedSize: "class-breaks-size", classedColor: "class-breaks-color", univariateColorSize: "univariate-color-size", relationship: "relationship", predominance: "predominance", dotDensity: "dot-density" }); const f = "inches feet yards miles nautical-miles millimeters centimeters decimeters meters kilometers decimal-degrees".split(" "); e = t = function (h) {
  5125. function v(B) {
  5126. B = h.call(this, B) || this; B.colorRamp = null; B.lengthUnit = null; B.maxSliderValue = null; B.minSliderValue =
  5127. null; B.visualVariables = null; return B
  5128. } a._inheritsLoose(v, h); var y = v.prototype; y.readColorRamp = function (B) { if (B) return p.fromJSON(B) }; y.clone = function () {
  5129. return new t({
  5130. classificationMethod: this.classificationMethod, colorRamp: d.clone(this.colorRamp), fields: this.fields && this.fields.slice(0), field1: d.clone(this.field1), field2: d.clone(this.field2), focus: this.focus, numClasses: this.numClasses, maxSliderValue: this.maxSliderValue, minSliderValue: this.minSliderValue, lengthUnit: this.lengthUnit, statistics: this.statistics,
  5131. standardDeviationInterval: this.standardDeviationInterval, type: this.type, visualVariables: this.visualVariables && this.visualVariables.map(B => B.clone()), univariateSymbolStyle: this.univariateSymbolStyle, univariateTheme: this.univariateTheme, flowTheme: this.flowTheme
  5132. })
  5133. }; a._createClass(v, [{
  5134. key: "classificationMethod", get: function () { const B = this._get("classificationMethod"), w = this.type; return w && "relationship" !== w ? "class-breaks-size" === w || "class-breaks-color" === w ? B || "manual" : null : B }, set: function (B) {
  5135. this._set("classificationMethod",
  5136. B)
  5137. }
  5138. }, { key: "fields", get: function () { return this.type && "predominance" !== this.type ? null : this._get("fields") }, set: function (B) { this._set("fields", B) } }, { key: "field1", get: function () { return this.type && "relationship" !== this.type ? null : this._get("field1") }, set: function (B) { this._set("field1", B) } }, { key: "field2", get: function () { return this.type && "relationship" !== this.type ? null : this._get("field2") }, set: function (B) { this._set("field2", B) } }, {
  5139. key: "flowTheme", get: function () {
  5140. return "flow" === this.type ? this._get("flowTheme") :
  5141. null
  5142. }, set: function (B) { this._set("flowTheme", B) }
  5143. }, { key: "focus", get: function () { return this.type && "relationship" !== this.type ? null : this._get("focus") }, set: function (B) { this._set("focus", B) } }, { key: "numClasses", get: function () { return this.type && "relationship" !== this.type ? null : this._get("numClasses") }, set: function (B) { this._set("numClasses", B) } }, {
  5144. key: "statistics", get: function () { return "univariate-color-size" === this.type && "above-and-below" === this.univariateTheme ? this._get("statistics") : null }, set: function (B) {
  5145. this._set("statistics",
  5146. B)
  5147. }
  5148. }, { key: "standardDeviationInterval", get: function () { const B = this.type; return B && "relationship" !== B && "class-breaks-size" !== B && "class-breaks-color" !== B ? null : this.classificationMethod && "standard-deviation" !== this.classificationMethod ? null : this._get("standardDeviationInterval") }, set: function (B) { this._set("standardDeviationInterval", B) } }, {
  5149. key: "type", get: function () { return this._get("type") }, set: function (B) {
  5150. let w = B; "classed-size" === B ? w = "class-breaks-size" : "classed-color" === B && (w = "class-breaks-color"); this._set("type",
  5151. w)
  5152. }
  5153. }, { key: "univariateSymbolStyle", get: function () { return "univariate-color-size" === this.type && "above-and-below" === this.univariateTheme ? this._get("univariateSymbolStyle") : null }, set: function (B) { this._set("univariateSymbolStyle", B) } }, { key: "univariateTheme", get: function () { return "univariate-color-size" === this.type ? this._get("univariateTheme") : null }, set: function (B) { this._set("univariateTheme", B) } }]); return v
  5154. }(e.JSONSupport); b.__decorate([l.property({
  5155. type: n.apiValues, value: null, json: {
  5156. type: n.jsonValues, read: n.read,
  5157. write: n.write, origins: { "web-document": { default: "manual", type: n.jsonValues, read: n.read, write: n.write } }
  5158. }
  5159. })], e.prototype, "classificationMethod", null); b.__decorate([l.property({ types: p.types, json: { write: !0 } })], e.prototype, "colorRamp", void 0); b.__decorate([q.reader("colorRamp")], e.prototype, "readColorRamp", null); b.__decorate([l.property({ type: [String], value: null, json: { write: !0 } })], e.prototype, "fields", null); b.__decorate([l.property({ type: m.AuthoringInfoFieldInfo, value: null, json: { write: !0 } })], e.prototype,
  5160. "field1", null); b.__decorate([l.property({ type: m.AuthoringInfoFieldInfo, value: null, json: { write: !0 } })], e.prototype, "field2", null); b.__decorate([l.property({ type: ["flow-line", "wave-front"], value: null, json: { write: !0, origins: { "web-scene": { write: !1 } } } })], e.prototype, "flowTheme", null); b.__decorate([l.property({ type: ["HH", "HL", "LH", "LL"], value: null, json: { write: !0 } })], e.prototype, "focus", null); b.__decorate([l.property({ type: Number, value: null, json: { type: r.Integer, write: !0 } })], e.prototype, "numClasses", null);
  5161. b.__decorate([l.property({ type: f, json: { type: f, read: !1, write: !1, origins: { "web-scene": { read: !0, write: !0 } } } })], e.prototype, "lengthUnit", void 0); b.__decorate([l.property({ type: Number, json: { write: !0, origins: { "web-scene": { write: !1, read: !1 } } } })], e.prototype, "maxSliderValue", void 0); b.__decorate([l.property({ type: Number, json: { write: !0, origins: { "web-scene": { write: !1, read: !1 } } } })], e.prototype, "minSliderValue", void 0); b.__decorate([l.property({
  5162. type: Object, value: null, json: {
  5163. write: !0, origins: {
  5164. "web-scene": {
  5165. write: !1,
  5166. read: !1
  5167. }
  5168. }
  5169. }
  5170. })], e.prototype, "statistics", null); b.__decorate([l.property({ type: [.25, .33, .5, 1], value: null, json: { type: [.25, .33, .5, 1], write: !0 } })], e.prototype, "standardDeviationInterval", null); b.__decorate([l.property({ type: u.apiValues, value: null, json: { type: u.jsonValues, read: u.read, write: u.write, origins: { "web-scene": { type: c.jsonValues, write: { writer: c.write, overridePolicy(h) { return { enabled: "flow" !== h } } } } } } })], e.prototype, "type", null); b.__decorate([l.property({ type: [g], json: { write: !0 } })], e.prototype, "visualVariables",
  5171. void 0); b.__decorate([l.property({ type: "caret circle-caret arrow circle-arrow plus-minus circle-plus-minus square circle triangle happy-sad thumb custom".split(" "), value: null, json: { write: !0, origins: { "web-scene": { write: !1 } } } })], e.prototype, "univariateSymbolStyle", null); b.__decorate([l.property({ type: ["high-to-low", "above-and-below", "above", "below", "90-10"], value: null, json: { write: !0, origins: { "web-scene": { write: !1 } } } })], e.prototype, "univariateTheme", null); return e = t = b.__decorate([k.subclass("esri.renderers.support.AuthoringInfo")],
  5172. e)
  5173. })
  5174. }, "esri/renderers/support/AuthoringInfoFieldInfo": function () {
  5175. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./AuthoringInfoClassBreakInfo".split(" "), function (a, b, c, e, d, l, r, q, k) {
  5176. var m; a.AuthoringInfoFieldInfo = m = function (g) {
  5177. function p(t) {
  5178. t = g.call(this, t) || this; t.field = ""; t.normalizationField = "";
  5179. t.label = ""; t.classBreakInfos = []; return t
  5180. } b._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ field: this.field, normalizationField: this.normalizationField, label: this.label, classBreakInfos: d.clone(this.classBreakInfos) }) }; return p
  5181. }(e.JSONSupport); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.AuthoringInfoFieldInfo.prototype, "field", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.AuthoringInfoFieldInfo.prototype, "normalizationField", void 0); c.__decorate([l.property({
  5182. type: String,
  5183. json: { write: !0 }
  5184. })], a.AuthoringInfoFieldInfo.prototype, "label", void 0); c.__decorate([l.property({ type: [k.AuthoringInfoClassBreakInfo], json: { write: !0 } })], a.AuthoringInfoFieldInfo.prototype, "classBreakInfos", void 0); a.AuthoringInfoFieldInfo = m = c.__decorate([q.subclass("esri.renderers.support.AuthoringInfoFieldInfo")], a.AuthoringInfoFieldInfo); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5185. })
  5186. }, "esri/renderers/support/AuthoringInfoClassBreakInfo": function () {
  5187. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  5188. function (a, b, c, e, d, l, r, q, k) {
  5189. var m; a.AuthoringInfoClassBreakInfo = m = function (g) { function p(t) { t = g.call(this, t) || this; t.minValue = 0; t.maxValue = 0; return t } b._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ minValue: this.minValue, maxValue: this.maxValue }) }; return p }(e.JSONSupport); c.__decorate([d.property({ type: Number, json: { write: !0 } })], a.AuthoringInfoClassBreakInfo.prototype, "minValue", void 0); c.__decorate([d.property({ type: Number, json: { write: !0 } })], a.AuthoringInfoClassBreakInfo.prototype,
  5190. "maxValue", void 0); a.AuthoringInfoClassBreakInfo = m = c.__decorate([k.subclass("esri.renderer.support.AuthoringInfoClassBreakInfo")], a.AuthoringInfoClassBreakInfo); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5191. })
  5192. }, "esri/renderers/support/AuthoringInfoVisualVariable": function () {
  5193. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass".split(" "),
  5194. function (a, b, c, e, d, l, r, q, k) {
  5195. var m; l = new c.JSONMap({ percentTotal: "percent-of-total", ratio: "ratio", percent: "percent" }); c = new c.JSONMap({ sizeInfo: "size", colorInfo: "color", transparencyInfo: "opacity", rotationInfo: "rotation" }); r = { key(n) { return "number" === typeof n ? "number" : "string" }, typeMap: { number: Number, string: String }, base: null }; const g = ["high-to-low", "above-and-below", "centered-on", "extremes"], p = [...new Set("high-to-low above-and-below centered-on extremes 90-10 above below high-to-low above-and-below 90-10 above below".split(" "))],
  5196. t = "seconds minutes hours days months years".split(" "); e = m = function (n) {
  5197. function u(h) { h = n.call(this, h) || this; h.endTime = null; h.field = null; h.maxSliderValue = null; h.minSliderValue = null; h.startTime = null; h.type = null; h.units = null; return h } a._inheritsLoose(u, n); var f = u.prototype; f.castEndTime = function (h) { return "string" === typeof h || "number" === typeof h ? h : null }; f.castStartTime = function (h) { return "string" === typeof h || "number" === typeof h ? h : null }; f.clone = function () {
  5198. return new m({
  5199. endTime: this.endTime, field: this.field,
  5200. maxSliderValue: this.maxSliderValue, minSliderValue: this.minSliderValue, startTime: this.startTime, style: this.style, theme: this.theme, type: this.type, units: this.units
  5201. })
  5202. }; a._createClass(u, [{ key: "style", get: function () { return "color" === this.type ? this._get("style") : null }, set: function (h) { this._set("style", h) } }, { key: "theme", get: function () { return "color" === this.type || "size" === this.type ? this._get("theme") || "high-to-low" : null }, set: function (h) { this._set("theme", h) } }]); return u
  5203. }(e.JSONSupport); b.__decorate([d.property({
  5204. types: r,
  5205. json: { write: !0 }
  5206. })], e.prototype, "endTime", void 0); b.__decorate([q.cast("endTime")], e.prototype, "castEndTime", null); b.__decorate([d.property({ type: String, json: { write: !0 } })], e.prototype, "field", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })], e.prototype, "maxSliderValue", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })], e.prototype, "minSliderValue", void 0); b.__decorate([d.property({ types: r, json: { write: !0 } })], e.prototype, "startTime", void 0); b.__decorate([q.cast("startTime")],
  5207. e.prototype, "castStartTime", null); b.__decorate([d.property({ type: l.apiValues, value: null, json: { type: l.jsonValues, read: l.read, write: l.write } })], e.prototype, "style", null); b.__decorate([d.property({ type: p, value: null, json: { type: p, origins: { "web-scene": { type: g, write: { writer: (n, u) => { g.includes(n) && (u.theme = n) } } } }, write: !0 } })], e.prototype, "theme", null); b.__decorate([d.property({ type: c.apiValues, json: { type: c.jsonValues, read: c.read, write: c.write } })], e.prototype, "type", void 0); b.__decorate([d.property({
  5208. type: t,
  5209. json: { type: t, write: !0 }
  5210. })], e.prototype, "units", void 0); return e = m = b.__decorate([k.subclass("esri.renderers.support.AuthoringInfoVisualVariable")], e)
  5211. })
  5212. }, "esri/rest/support/colorRamps": function () {
  5213. define(["exports", "./AlgorithmicColorRamp", "./ColorRamp", "./MultipartColorRamp"], function (a, b, c, e) {
  5214. c = { key: "type", base: c, typeMap: { algorithmic: b, multipart: e } }; a.fromJSON = function (d) { return d && d.type ? "algorithmic" === d.type ? b.fromJSON(d) : "multipart" === d.type ? e.fromJSON(d) : null : null }; a.types = c; Object.defineProperties(a,
  5215. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5216. })
  5217. }, "esri/rest/support/AlgorithmicColorRamp": function () {
  5218. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./ColorRamp".split(" "), function (a, b, c, e, d, l, r, q, k) {
  5219. var m; k = m = function (g) {
  5220. function p(t) {
  5221. t = g.call(this, t) ||
  5222. this; t.algorithm = null; t.fromColor = null; t.toColor = null; t.type = "algorithmic"; return t
  5223. } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ fromColor: e.clone(this.fromColor), toColor: e.clone(this.toColor), algorithm: this.algorithm }) }; return p
  5224. }(k); b.__decorate([r.enumeration({ esriCIELabAlgorithm: "cie-lab", esriHSVAlgorithm: "hsv", esriLabLChAlgorithm: "lab-lch" })], k.prototype, "algorithm", void 0); b.__decorate([d.property({ type: c, json: { type: [l.Integer], write: !0 } })], k.prototype, "fromColor", void 0);
  5225. b.__decorate([d.property({ type: c, json: { type: [l.Integer], write: !0 } })], k.prototype, "toColor", void 0); b.__decorate([d.property({ type: ["algorithmic"] })], k.prototype, "type", void 0); return k = m = b.__decorate([q.subclass("esri.rest.support.AlgorithmicColorRamp")], k)
  5226. })
  5227. }, "esri/rest/support/ColorRamp": function () {
  5228. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  5229. function (a, b, c, e, d, l, r, q) { c = function (k) { function m(g) { g = k.call(this, g) || this; g.type = null; return g } a._inheritsLoose(m, k); return m }(c.JSONSupport); b.__decorate([e.property({ readOnly: !0, json: { read: !1, write: !0 } })], c.prototype, "type", void 0); return c = b.__decorate([q.subclass("esri.rest.support.ColorRamp")], c) })
  5230. }, "esri/rest/support/MultipartColorRamp": function () {
  5231. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./AlgorithmicColorRamp ./ColorRamp".split(" "),
  5232. function (a, b, c, e, d, l, r, q) { var k; d = k = function (m) { function g(p) { p = m.call(this, p) || this; p.colorRamps = null; p.type = "multipart"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ colorRamps: c.clone(this.colorRamps) }) }; return g }(q); b.__decorate([e.property({ type: [r], json: { write: !0 } })], d.prototype, "colorRamps", void 0); b.__decorate([e.property({ type: ["multipart"] })], d.prototype, "type", void 0); return d = k = b.__decorate([l.subclass("esri.rest.support.MultipartColorRamp")], d) })
  5233. }, "esri/renderers/mixins/VisualVariablesMixin": function () {
  5234. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/fieldUtils ../visualVariables/ColorVariable ../visualVariables/OpacityVariable ../visualVariables/RotationVariable ../visualVariables/SizeVariable ../visualVariables/VisualVariable ../visualVariables/VisualVariableFactory".split(" "),
  5235. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h) {
  5236. const v = { base: f, key: "type", typeMap: { opacity: t, color: p, rotation: n, size: u } }; a.VisualVariablesMixin = y => {
  5237. y = function (B) {
  5238. function w() { var z = B.apply(this, arguments) || this; z._vvFactory = new h; return z } b._inheritsLoose(w, B); var x = w.prototype; x.readVisualVariables = function (z, C, A) { return this._vvFactory.readVariables(z, C, A) }; x.writeVisualVariables = function (z, C, A, D) { C[A] = this._vvFactory.writeVariables(z, D) }; x.hasVisualVariables = function (z, C) {
  5239. return z ? 0 < this.getVisualVariablesForType(z,
  5240. C).length : 0 < this.getVisualVariablesForType("size", C).length || 0 < this.getVisualVariablesForType("color", C).length || 0 < this.getVisualVariablesForType("opacity", C).length || 0 < this.getVisualVariablesForType("rotation", C).length
  5241. }; x.getVisualVariablesForType = function (z, C) { const A = this.visualVariables; return A ? A.filter(D => D.type === z && ("string" === typeof C ? D.target === C : !1 === C ? !D.target : !0)) : [] }; x.collectVVRequiredFields = function () {
  5242. var z = b._asyncToGenerator(function* (C, A) {
  5243. let D = []; this.visualVariables && (D = D.concat(this.visualVariables));
  5244. for (const F of D) F && (F.field && g.collectField(C, A, F.field), F.normalizationField && g.collectField(C, A, F.normalizationField), F.valueExpression && (yield g.collectArcadeFieldNames(C, A, F.valueExpression)))
  5245. }); return function (C, A) { return z.apply(this, arguments) }
  5246. }(); b._createClass(w, [{ key: "visualVariables", set: function (z) { this._vvFactory.visualVariables = z; this._set("visualVariables", this._vvFactory.visualVariables) } }, {
  5247. key: "arcadeRequiredForVisualVariables", get: function () {
  5248. if (!this.visualVariables) return !1; for (const z of this.visualVariables) if (z.arcadeRequired) return !0;
  5249. return !1
  5250. }
  5251. }]); return w
  5252. }(y); c.__decorate([e.property({ types: [v], value: null, json: { write: !0 } })], y.prototype, "visualVariables", null); c.__decorate([q.reader("visualVariables", ["visualVariables", "rotationType", "rotationExpression"])], y.prototype, "readVisualVariables", null); c.__decorate([m.writer("visualVariables")], y.prototype, "writeVisualVariables", null); return y = c.__decorate([k.subclass("esri.renderers.mixins.VisualVariablesMixin")], y)
  5253. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5254. })
  5255. },
  5256. "esri/renderers/visualVariables/ColorVariable": function () {
  5257. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/ColorStop".split(" "), function (a, b, c, e, d, l, r, q, k) {
  5258. var m; e = m = function (g) {
  5259. function p(n) { n = g.call(this, n) || this; n.type = "color"; n.normalizationField = null; return n } a._inheritsLoose(p,
  5260. g); var t = p.prototype; t.clone = function () { return new m({ field: this.field, normalizationField: this.normalizationField, valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle, stops: this.stops && this.stops.map(n => n.clone()), legendOptions: this.legendOptions && this.legendOptions.clone() }) }; t.getAttributeHash = function () { return `${g.prototype.getAttributeHash.call(this)}-${this.normalizationField}` }; t._interpolateData = function () { return this.stops && this.stops.map(n => n.value || 0) }; a._createClass(p,
  5261. [{ key: "cache", get: function () { return { ipData: this._interpolateData(), hasExpression: !!this.valueExpression, compiledFunc: null } } }, { key: "stops", set: function (n) { n && Array.isArray(n) && (n = n.filter(u => !!u), n.sort((u, f) => u.value - f.value)); this._set("stops", n) } }]); return p
  5262. }(q); b.__decorate([c.property({ readOnly: !0 })], e.prototype, "cache", null); b.__decorate([c.property({ type: ["color"], json: { type: ["colorInfo"] } })], e.prototype, "type", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "normalizationField",
  5263. void 0); b.__decorate([c.property({ type: [k], json: { write: !0 } })], e.prototype, "stops", null); return e = m = b.__decorate([r.subclass("esri.renderers.visualVariables.ColorVariable")], e)
  5264. })
  5265. }, "esri/renderers/visualVariables/VisualVariable": function () {
  5266. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType ./support/VisualVariableLegendOptions".split(" "),
  5267. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  5268. const t = d.getLogger("esri.renderers.visualVariables.VisualVariable"); c = new c.JSONMap({ colorInfo: "color", transparencyInfo: "opacity", rotationInfo: "rotation", sizeInfo: "size" }); e = function (n) {
  5269. function u(h) { h = n.call(this, h) || this; h.index = null; h.type = null; h.field = null; h.valueExpression = null; h.valueExpressionTitle = null; h.legendOptions = null; return h } a._inheritsLoose(u, n); var f = u.prototype; f.castField = function (h) {
  5270. return null == h ? h : "function" === typeof h ? (t.error(".field: field must be a string value"),
  5271. null) : g.ensureString(h)
  5272. }; f.clone = function () { }; f.getAttributeHash = function () { return `${this.type}-${this.field}-${this.valueExpression}` }; a._createClass(u, [{ key: "arcadeRequired", get: function () { return !!this.valueExpression } }]); return u
  5273. }(e.JSONSupport); b.__decorate([l.property()], e.prototype, "index", void 0); b.__decorate([l.property({ type: c.apiValues, readOnly: !0, json: { read: c.read, write: c.write } })], e.prototype, "type", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "field", void 0);
  5274. b.__decorate([k.cast("field")], e.prototype, "castField", null); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "valueExpression", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "valueExpressionTitle", void 0); b.__decorate([l.property({ readOnly: !0 })], e.prototype, "arcadeRequired", null); b.__decorate([l.property({ type: p, json: { write: !0 } })], e.prototype, "legendOptions", void 0); return e = b.__decorate([m.subclass("esri.renderers.visualVariables.VisualVariable")],
  5275. e)
  5276. })
  5277. }, "esri/renderers/visualVariables/support/VisualVariableLegendOptions": function () {
  5278. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../support/LegendOptions".split(" "), function (a, b, c, e, d, l, r, q) {
  5279. var k; e = k = function (m) {
  5280. function g() {
  5281. var p = m.apply(this, arguments) || this; p.showLegend = null;
  5282. return p
  5283. } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ title: this.title, showLegend: this.showLegend }) }; return g
  5284. }(q.LegendOptions); b.__decorate([c.property({ type: Boolean, json: { write: !0 } })], e.prototype, "showLegend", void 0); return e = k = b.__decorate([r.subclass("esri.renderers.visualVariables.support.VisualVariableLegendOptions")], e)
  5285. })
  5286. }, "esri/renderers/support/LegendOptions": function () {
  5287. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  5288. function (a, b, c, e, d, l, r, q, k) { var m; a.LegendOptions = m = function (g) { function p() { var t = g.apply(this, arguments) || this; t.title = null; return t } b._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ title: this.title }) }; return p }(e.JSONSupport); c.__decorate([d.property({ type: String, json: { write: !0 } })], a.LegendOptions.prototype, "title", void 0); a.LegendOptions = m = c.__decorate([k.subclass("esri.renderers.support.LegendOptions")], a.LegendOptions); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  5289. },
  5290. "esri/renderers/visualVariables/support/ColorStop": function () {
  5291. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../Color ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  5292. var g; e = g = function (p) {
  5293. function t(u) {
  5294. u = p.call(this,
  5295. u) || this; u.color = null; u.label = null; u.value = null; return u
  5296. } a._inheritsLoose(t, p); var n = t.prototype; n.writeValue = function (u, f, h) { f[h] = null == u ? 0 : u }; n.clone = function () { return new g({ color: this.color && this.color.clone(), label: this.label, value: this.value }) }; return t
  5297. }(e.JSONSupport); b.__decorate([d.property({ type: c, json: { type: [q.Integer], write: !0 } })], e.prototype, "color", void 0); b.__decorate([d.property({ type: String, json: { write: !0 } })], e.prototype, "label", void 0); b.__decorate([d.property({ type: Number, json: { write: { writerEnsuresNonNull: !0 } } })],
  5298. e.prototype, "value", void 0); b.__decorate([m.writer("value")], e.prototype, "writeValue", null); return e = g = b.__decorate([k.subclass("esri.renderers.visualVariables.support.ColorStop")], e)
  5299. })
  5300. }, "esri/renderers/visualVariables/OpacityVariable": function () {
  5301. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/OpacityStop".split(" "),
  5302. function (a, b, c, e, d, l, r, q, k) {
  5303. var m; e = m = function (g) {
  5304. function p(n) { n = g.call(this, n) || this; n.type = "opacity"; n.normalizationField = null; return n } a._inheritsLoose(p, g); var t = p.prototype; t.clone = function () { return new m({ field: this.field, normalizationField: this.normalizationField, valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle, stops: this.stops && this.stops.map(n => n.clone()), legendOptions: this.legendOptions && this.legendOptions.clone() }) }; t.getAttributeHash = function () { return `${g.prototype.getAttributeHash.call(this)}-${this.normalizationField}` };
  5305. t._interpolateData = function () { return this.stops && this.stops.map(n => n.value || 0) }; a._createClass(p, [{ key: "cache", get: function () { return { ipData: this._interpolateData(), hasExpression: !!this.valueExpression, compiledFunc: null } } }, { key: "stops", set: function (n) { n && Array.isArray(n) && (n = n.filter(u => !!u), n.sort((u, f) => u.value - f.value)); this._set("stops", n) } }]); return p
  5306. }(q); b.__decorate([c.property({ readOnly: !0 })], e.prototype, "cache", null); b.__decorate([c.property({ type: ["opacity"], json: { type: ["transparencyInfo"] } })],
  5307. e.prototype, "type", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "normalizationField", void 0); b.__decorate([c.property({ type: [k], json: { write: !0 } })], e.prototype, "stops", null); return e = m = b.__decorate([r.subclass("esri.renderers.visualVariables.OpacityVariable")], e)
  5308. })
  5309. }, "esri/renderers/visualVariables/support/OpacityStop": function () {
  5310. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ../../../webdoc/support/opacityUtils".split(" "),
  5311. function (a, b, c, e, d, l, r, q, k, m, g) {
  5312. var p; c = p = function (t) { function n(f) { f = t.call(this, f) || this; f.label = null; f.opacity = null; f.value = null; return f } a._inheritsLoose(n, t); var u = n.prototype; u.readOpacity = function (f, h) { return g.transparencyToOpacity(h.transparency) }; u.writeOpacity = function (f, h, v) { h[v] = g.opacityToTransparency(f) }; u.clone = function () { return new p({ label: this.label, opacity: this.opacity, value: this.value }) }; return n }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype,
  5313. "label", void 0); b.__decorate([e.property({ type: Number, json: { type: r.Integer, write: { target: "transparency" } } })], c.prototype, "opacity", void 0); b.__decorate([q.reader("opacity", ["transparency"])], c.prototype, "readOpacity", null); b.__decorate([m.writer("opacity")], c.prototype, "writeOpacity", null); b.__decorate([e.property({ type: Number, json: { write: !0 } })], c.prototype, "value", void 0); return c = p = b.__decorate([k.subclass("esri.renderers.visualVariables.support.OpacityStop")], c)
  5314. })
  5315. }, "esri/renderers/visualVariables/RotationVariable": function () {
  5316. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./VisualVariable".split(" "),
  5317. function (a, b, c, e, d, l, r, q, k, m) {
  5318. var g; d = g = function (p) {
  5319. function t(u) { u = p.call(this, u) || this; u.axis = null; u.type = "rotation"; u.rotationType = "geographic"; u.valueExpressionTitle = null; return u } a._inheritsLoose(t, p); var n = t.prototype; n.writeValueExpressionTitleWebScene = function (u, f, h, v) {
  5320. v && v.messages && v.messages.push(new c("property:unsupported", this.type + "VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.", {
  5321. instance: this, propertyName: `visualVariables[${this.index}]` +
  5322. ".valueExpressionTitle", context: v
  5323. }))
  5324. }; n.clone = function () { return new g({ axis: this.axis, rotationType: this.rotationType, field: this.field, valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle, legendOptions: this.legendOptions && this.legendOptions.clone() }) }; a._createClass(t, [{ key: "cache", get: function () { return { hasExpression: !!this.valueExpression, compiledFunc: null } } }]); return t
  5325. }(m); b.__decorate([e.property({ readOnly: !0 })], d.prototype, "cache", null); b.__decorate([e.property({
  5326. type: ["heading",
  5327. "tilt", "roll"], json: { origins: { "web-scene": { default: "heading", write: !0 } } }
  5328. })], d.prototype, "axis", void 0); b.__decorate([e.property({ type: ["rotation"], json: { type: ["rotationInfo"] } })], d.prototype, "type", void 0); b.__decorate([e.property({ type: ["geographic", "arithmetic"], json: { write: !0, origins: { "web-document": { write: !0, default: "geographic" } } } })], d.prototype, "rotationType", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], d.prototype, "valueExpressionTitle", void 0); b.__decorate([k.writer("web-scene",
  5329. "valueExpressionTitle")], d.prototype, "writeValueExpressionTitleWebScene", null); return d = g = b.__decorate([q.subclass("esri.renderers.visualVariables.RotationVariable")], d)
  5330. })
  5331. }, "esri/renderers/visualVariables/SizeVariable": function () {
  5332. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/jsonMap ../../core/Logger ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./VisualVariable ./support/SizeStop ./support/SizeVariableLegendOptions ./support/sizeVariableUtils ./support/visualVariableUtils".split(" "),
  5333. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v) {
  5334. function y(A) { if (null != A) { if ("string" === typeof A || "number" === typeof A) return l.toPt(A); if ("size" === A.type) { if (h.isSizeVariable(A)) return A; A = { ...A }; delete A.type; return new C(A) } } } function B(A, D, F) { if ("object" !== typeof A) return A; D = new C; D.read(A, F); return D } var w; const x = d.getLogger("esri.renderers.visualVariables.SizeVariable"); d = new e.JSONMap({ width: "width", depth: "depth", height: "height", widthAndDepth: "width-and-depth", all: "all" }); const z = new e.JSONMap({
  5335. unknown: "unknown",
  5336. inch: "inches", foot: "feet", yard: "yards", mile: "miles", "nautical-mile": "nautical-miles", millimeter: "millimeters", centimeter: "centimeters", decimeter: "decimeters", meter: "meters", kilometer: "kilometers", "decimal-degree": "decimal-degrees"
  5337. }); let C = w = function (A) {
  5338. function D(J) { J = A.call(this, J) || this; J.axis = null; J.legendOptions = null; J.normalizationField = null; J.scaleBy = null; J.target = null; J.type = "size"; J.useSymbolValue = null; J.valueExpression = null; J.valueRepresentation = null; J.valueUnit = null; return J } a._inheritsLoose(D,
  5339. A); var F = D.prototype; F.castMaxSize = function (J) { return y(J) }; F.readMaxSize = function (J, M, N) { return B(J, M, N) }; F.castMinSize = function (J) { return y(J) }; F.readMinSize = function (J, M, N) { return B(J, M, N) }; F.readValueExpression = function (J, M) { return J || M.expression && "$view.scale" }; F.writeValueExpressionWebScene = function (J, M, N, E) {
  5340. "$view.scale" === J ? E && E.messages && (J = this.index, E.messages.push(new c("property:unsupported", this.type + "VisualVariable.valueExpression \x3d '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",
  5341. { instance: this, propertyName: ("string" === typeof J ? J : `visualVariables[${J}]`) + ".valueExpression", context: E }))) : M[N] = J
  5342. }; F.readValueUnit = function (J) { return J ? z.read(J) : null }; F.clone = function () {
  5343. return new w({
  5344. axis: this.axis, field: this.field, valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle, maxDataValue: this.maxDataValue, maxSize: h.isSizeVariable(this.maxSize) ? this.maxSize.clone() : this.maxSize, minDataValue: this.minDataValue, minSize: h.isSizeVariable(this.minSize) ? this.minSize.clone() :
  5345. this.minSize, normalizationField: this.normalizationField, stops: this.stops && this.stops.map(J => J.clone()), target: this.target, useSymbolValue: this.useSymbolValue, valueRepresentation: this.valueRepresentation, valueUnit: this.valueUnit, legendOptions: this.legendOptions && this.legendOptions.clone()
  5346. })
  5347. }; F.flipSizes = function () {
  5348. if (this.transformationType === h.TransformationType.ClampedLinear) { const { minSize: J, maxSize: M } = this; this.minSize = M; this.maxSize = J; return this } if (this.transformationType === h.TransformationType.Stops) {
  5349. const J =
  5350. this.stops, M = J.map(E => E.size).reverse(), N = J.length; for (let E = 0; E < N; E++)J[E].size = M[E]
  5351. } return this
  5352. }; F.getAttributeHash = function () { return `${A.prototype.getAttributeHash.call(this)}-${this.target}-${this.normalizationField}` }; F._interpolateData = function () { return this.stops && this.stops.map(J => J.value || 0) }; a._createClass(D, [{ key: "cache", get: function () { return { ipData: this._interpolateData(), hasExpression: !!this.valueExpression, compiledFunc: null, isScaleDriven: v.viewScaleRE.test(this.valueExpression) } } }, {
  5353. key: "expression",
  5354. set: function (J) { x.warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."); "view.scale" === J ? (this.valueExpression = "$view.scale", this._set("expression", J)) : this._set("expression", null) }
  5355. }, { key: "index", set: function (J) { h.isSizeVariable(this.maxSize) && (this.maxSize.index = `visualVariables[${J}].maxSize`); h.isSizeVariable(this.minSize) && (this.minSize.index = `visualVariables[${J}].minSize`); this._set("index", J) } }, {
  5356. key: "inputValueType",
  5357. get: function () { return h.getInputValueType(this) }
  5358. }, { key: "maxDataValue", set: function (J) { J && this.stops && (x.warn("cannot set maxDataValue when stops is not null."), J = null); this._set("maxDataValue", J) } }, { key: "maxSize", set: function (J) { J && this.stops && (x.warn("cannot set maxSize when stops is not null."), J = null); this._set("maxSize", J) } }, { key: "minDataValue", set: function (J) { J && this.stops && (x.warn("cannot set minDataValue when stops is not null."), J = null); this._set("minDataValue", J) } }, {
  5359. key: "minSize", set: function (J) {
  5360. J &&
  5361. this.stops && (x.warn("cannot set minSize when stops is not null."), J = null); this._set("minSize", J)
  5362. }
  5363. }, { key: "arcadeRequired", get: function () { return this.valueExpression ? !0 : this.minSize && "object" === typeof this.minSize && this.minSize.arcadeRequired || this.maxSize && "object" === typeof this.maxSize && this.maxSize.arcadeRequired } }, {
  5364. key: "stops", set: function (J) {
  5365. null == this.minDataValue && null == this.maxDataValue && null == this.minSize && null == this.maxSize ? J && Array.isArray(J) && (J = J.filter(M => !!M), J.sort((M, N) => M.value - N.value)) :
  5366. J && (x.warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."), J = null); this._set("stops", J)
  5367. }
  5368. }, { key: "transformationType", get: function () { return h.getTransformationType(this, this.inputValueType) } }]); return D
  5369. }(n); b.__decorate([r.property({ readOnly: !0 })], C.prototype, "cache", null); b.__decorate([r.property({ type: d.apiValues, json: { type: d.jsonValues, origins: { "web-map": { read: !1 } }, read: d.read, write: d.write } })], C.prototype, "axis", void 0); b.__decorate([r.property({
  5370. type: String,
  5371. value: null, json: { read: !1 }
  5372. })], C.prototype, "expression", null); b.__decorate([r.property()], C.prototype, "index", null); b.__decorate([r.property({ type: String, readOnly: !0 })], C.prototype, "inputValueType", null); b.__decorate([r.property({ type: f, json: { write: !0 } })], C.prototype, "legendOptions", void 0); b.__decorate([r.property({ type: Number, value: null, json: { write: !0 } })], C.prototype, "maxDataValue", null); b.__decorate([r.property({ type: Number, value: null, json: { write: !0 } })], C.prototype, "maxSize", null); b.__decorate([m.cast("maxSize")],
  5373. C.prototype, "castMaxSize", null); b.__decorate([g.reader("maxSize")], C.prototype, "readMaxSize", null); b.__decorate([r.property({ type: Number, value: null, json: { write: !0 } })], C.prototype, "minDataValue", null); b.__decorate([r.property({ type: Number, value: null, json: { write: !0 } })], C.prototype, "minSize", null); b.__decorate([m.cast("minSize")], C.prototype, "castMinSize", null); b.__decorate([g.reader("minSize")], C.prototype, "readMinSize", null); b.__decorate([r.property({ type: String, json: { write: !0 } })], C.prototype, "normalizationField",
  5374. void 0); b.__decorate([r.property({ readOnly: !0 })], C.prototype, "arcadeRequired", null); b.__decorate([r.property({ type: String })], C.prototype, "scaleBy", void 0); b.__decorate([r.property({ type: [u], value: null, json: { write: !0 } })], C.prototype, "stops", null); b.__decorate([r.property({ type: ["outline"], json: { write: !0 } })], C.prototype, "target", void 0); b.__decorate([r.property({ type: String, readOnly: !0 })], C.prototype, "transformationType", null); b.__decorate([r.property({ type: ["size"], json: { type: ["sizeInfo"] } })], C.prototype,
  5375. "type", void 0); b.__decorate([r.property({ type: Boolean, json: { write: !0, origins: { "web-map": { read: !1 } } } })], C.prototype, "useSymbolValue", void 0); b.__decorate([r.property({ type: String, json: { write: !0 } })], C.prototype, "valueExpression", void 0); b.__decorate([g.reader("valueExpression", ["valueExpression", "expression"])], C.prototype, "readValueExpression", null); b.__decorate([t.writer("web-scene", "valueExpression")], C.prototype, "writeValueExpressionWebScene", null); b.__decorate([r.property({
  5376. type: ["radius", "diameter",
  5377. "area", "width", "distance"], json: { write: !0 }
  5378. })], C.prototype, "valueRepresentation", void 0); b.__decorate([r.property({ type: z.apiValues, json: { write: z.write, origins: { "web-map": { read: !1 }, "web-scene": { write: !0 } } } })], C.prototype, "valueUnit", void 0); b.__decorate([g.reader("valueUnit")], C.prototype, "readValueUnit", null); return C = w = b.__decorate([p.subclass("esri.renderers.visualVariables.SizeVariable")], C)
  5379. })
  5380. }, "esri/renderers/visualVariables/support/SizeStop": function () {
  5381. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/screenUtils ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
  5382. function (a, b, c, e, d, l, r, q, k) {
  5383. var m; c = m = function (g) { function p(t) { t = g.call(this, t) || this; t.label = null; t.size = null; t.value = null; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ label: this.label, size: this.size, value: this.value }) }; return p }(c.JSONSupport); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype, "label", void 0); b.__decorate([d.property({ type: Number, cast: e.toPt, json: { write: !0 } })], c.prototype, "size", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })],
  5384. c.prototype, "value", void 0); return c = m = b.__decorate([k.subclass("esri.renderers.visualVariables.support.SizeStop")], c)
  5385. })
  5386. }, "esri/renderers/visualVariables/support/SizeVariableLegendOptions": function () {
  5387. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./VisualVariableLegendOptions".split(" "),
  5388. function (a, b, c, e, d, l, r, q) {
  5389. var k; e = k = function (m) { function g() { var p = m.apply(this, arguments) || this; p.customValues = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ title: this.title, showLegend: this.showLegend, customValues: this.customValues && this.customValues.slice(0) }) }; return g }(q); b.__decorate([c.property({ type: [Number], json: { write: !0 } })], e.prototype, "customValues", void 0); return e = k = b.__decorate([r.subclass("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],
  5390. e)
  5391. })
  5392. }, "esri/renderers/visualVariables/support/sizeVariableUtils": function () {
  5393. define(["exports"], function (a) {
  5394. function b(c) { return c.valueExpression ? a.InputValueType.Expression : c.field && "string" === typeof c.field ? a.InputValueType.Field : a.InputValueType.Unknown } a.InputValueType = void 0; (function (c) { c.Unknown = "unknown"; c.Expression = "expression"; c.Field = "field" })(a.InputValueType || (a.InputValueType = {})); a.TransformationType = void 0; (function (c) {
  5395. c.Unknown = "unknown"; c.Stops = "stops"; c.ClampedLinear = "clamped-linear";
  5396. c.Proportional = "proportional"; c.Additive = "additive"; c.Constant = "constant"; c.Identity = "identity"; c.RealWorldSize = "real-world-size"
  5397. })(a.TransformationType || (a.TransformationType = {})); a.getInputValueType = b; a.getTransformationType = function (c, e) {
  5398. return (e || b(c)) === a.InputValueType.Unknown ? a.TransformationType.Constant : c.stops ? a.TransformationType.Stops : null != c.minSize && null != c.maxSize && null != c.minDataValue && null != c.maxDataValue ? a.TransformationType.ClampedLinear : "unknown" === (c.valueUnit || "unknown") ? null !=
  5399. c.minSize && null != c.minDataValue ? c.minSize && c.minDataValue ? a.TransformationType.Proportional : a.TransformationType.Additive : a.TransformationType.Identity : a.TransformationType.RealWorldSize
  5400. }; a.isSizeVariable = function (c) { return c && "esri.renderers.visualVariables.SizeVariable" === c.declaredClass }; a.isValidNumber = function (c) { return null != c && !isNaN(c) && isFinite(c) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5401. })
  5402. }, "esri/renderers/visualVariables/support/visualVariableUtils": function () {
  5403. define("exports ../../../Color ../../../Graphic ../../../core/compilerUtils ../../../core/Logger ../../../core/maybe ../../support/lengthUtils ./sizeVariableUtils".split(" "),
  5404. function (a, b, c, e, d, l, r, q) {
  5405. function k(w, x, z) {
  5406. if (w = "visualVariables" in w && w.visualVariables ? w.visualVariables.find(E => "color" === E.type) : w) if ("esri.renderers.visualVariables.ColorVariable" !== w.declaredClass) v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable"); else {
  5407. var C = "number" === typeof x, A = C ? null : x, D = A && A.attributes, F = C ? x : null, J = w.field, { ipData: M, hasExpression: N } = w.cache; x = w.cache.compiledFunc; if (!J && !N) return (z = w.stops) && z[0] && z[0].color; if ("number" !==
  5408. typeof F) if (N) { if (l.isNone(z) || l.isNone(z.arcade)) { v.error("Use of arcade expressions requires an arcade context"); return } F = z.arcade.arcadeUtils; J = F.getViewInfo({ viewingMode: z.viewingMode, scale: z.scale, spatialReference: z.spatialReference }); A = F.createExecContext(A, J); x || (x = F.createSyntaxTree(w.valueExpression), x = F.createFunction(x), w.cache.compiledFunc = x); F = F.executeFunction(x, A) } else D && (F = D[J]); A = w.normalizationField; D = D ? parseFloat(D[A]) : void 0; if (null != F && (!A || C || !isNaN(D) && 0 !== D) && (isNaN(D) || C ||
  5409. (F /= D), C = h(F, M))) return D = C[0], A = C[1], z = D === A ? w.stops[D].color : b.blendColors(w.stops[D].color, w.stops[A].color, C[2], l.isSome(z) ? z.color : void 0), new b(z)
  5410. }
  5411. } function m(w, x, z) {
  5412. if (w = "visualVariables" in w && w.visualVariables ? w.visualVariables.find(E => "opacity" === E.type) : w) if ("esri.renderers.visualVariables.OpacityVariable" !== w.declaredClass) v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable"); else {
  5413. var C = "number" === typeof x, A = C ? null : x, D = A && A.attributes, F = C ?
  5414. x : null, J = w.field, { ipData: M, hasExpression: N } = w.cache; x = w.cache.compiledFunc; if (!J && !N) return (w = w.stops) && w[0] && w[0].opacity; if ("number" !== typeof F) if (N) {
  5415. if (l.isNone(z) || l.isNone(z.arcade)) { v.error("Use of arcade expressions requires an arcade context"); return } F = z.arcade.arcadeUtils; z = F.getViewInfo({ viewingMode: z.viewingMode, scale: z.scale, spatialReference: z.spatialReference }); z = F.createExecContext(A, z); x || (A = F.createSyntaxTree(w.valueExpression), x = F.createFunction(A), w.cache.compiledFunc = x); F = F.executeFunction(x,
  5416. z)
  5417. } else D && (F = D[J]); z = w.normalizationField; D = D ? parseFloat(D[z]) : void 0; if (null != F && (!z || C || !isNaN(D) && 0 !== D) && (isNaN(D) || C || (F /= D), C = h(F, M))) { z = C[0]; D = C[1]; if (z === D) return w.stops[z].opacity; z = w.stops[z].opacity; return z + (w.stops[D].opacity - z) * C[2] }
  5418. }
  5419. } function g(w, x, z) {
  5420. if (w = "visualVariables" in w && w.visualVariables ? w.visualVariables.find(E => "rotation" === E.type) : w) if ("esri.renderers.visualVariables.RotationVariable" !== w.declaredClass) v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");
  5421. else {
  5422. var C = w.axis || "heading", A = "heading" === C && "arithmetic" === w.rotationType ? 90 : 0; C = "heading" === C && "arithmetic" === w.rotationType ? -1 : 1; var D = "number" === typeof x ? null : x, F = D && D.attributes, J = w.field, { hasExpression: M } = w.cache; x = w.cache.compiledFunc; var N = 0; if (!J && !M) return N; if (M) {
  5423. if (l.isNone(z) || l.isNone(z.arcade)) { v.error("Use of arcade expressions requires an arcade context"); return } F = z.arcade.arcadeUtils; z = F.getViewInfo({ viewingMode: z.viewingMode, scale: z.scale, spatialReference: z.spatialReference });
  5424. z = F.createExecContext(D, z); x || (x = F.createSyntaxTree(w.valueExpression), x = F.createFunction(x), w.cache.compiledFunc = x); N = F.executeFunction(x, z)
  5425. } else F && (N = F[J] || 0); return N = "number" !== typeof N || isNaN(N) ? null : A + C * N
  5426. }
  5427. } function p(w, x, z) {
  5428. const C = "number" === typeof x; var A = C ? null : x; const D = A && A.attributes; var F = C ? x : null; const { isScaleDriven: J } = w.cache; x = w.cache.compiledFunc; if (J) A = l.isSome(z) ? z.scale : void 0, z = l.isSome(z) ? z.view : void 0, null == A || "3d" === z ? (A = z = null, (A = w.stops) ? (z = A[0].value, A = A[A.length - 1].value) :
  5429. (z = w.minDataValue || 0, A = w.maxDataValue || 0), z = (z + A) / 2) : z = A, F = z; else if (!C) switch (w.inputValueType) {
  5430. case q.InputValueType.Expression: if (l.isNone(z) || l.isNone(z.arcade)) { v.error("Use of arcade expressions requires an arcade context"); return } F = z.arcade.arcadeUtils; z = F.getViewInfo({ viewingMode: z.viewingMode, scale: z.scale, spatialReference: z.spatialReference }); z = F.createExecContext(A, z); x || (A = F.createSyntaxTree(w.valueExpression), x = F.createFunction(A), w.cache.compiledFunc = x); F = F.executeFunction(x, z); break;
  5431. case q.InputValueType.Field: D && (F = D[w.field]); break; case q.InputValueType.Unknown: F = null
  5432. }if (!q.isValidNumber(F)) return null; if (C || !w.normalizationField) return F; w = D ? parseFloat(D[w.normalizationField]) : null; return q.isValidNumber(w) && 0 !== w ? F / w : null
  5433. } function t(w, x, z) {
  5434. if (w = "visualVariables" in w && w.visualVariables ? w.visualVariables.find(A => "size" === A.type) : w) if ("esri.renderers.visualVariables.SizeVariable" !== w.declaredClass) v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");
  5435. else { var C = p(w, x, z); x = f(C, w, x, z, w.cache.ipData); return null === x || void 0 === x || isNaN(x) ? 0 : x }
  5436. } function n(w, x, z) { return null == w ? null : q.isSizeVariable(w) ? t(w, x, z) : q.isValidNumber(w) ? w : null } function u(w, x, z) { return q.isValidNumber(z) && w > z ? z : q.isValidNumber(x) && w < x ? x : w } function f(w, x, z, C, A) {
  5437. switch (x.transformationType) {
  5438. case q.TransformationType.Additive: return C = n(x.minSize, z, C), x = w + (C || x.minDataValue); case q.TransformationType.Constant: return w = (w = x.stops) && w.length && w[0].size, null == w && (w = x.minSize), x =
  5439. n(w, z, C); case q.TransformationType.ClampedLinear: A = (w - x.minDataValue) / (x.maxDataValue - x.minDataValue); var D = n(x.minSize, z, C); z = n(x.maxSize, z, C); C = l.isSome(C) ? C.shape : void 0; w <= x.minDataValue ? x = D : w >= x.maxDataValue ? x = z : "area" === x.scaleBy && C ? (w = (x = "circle" === C) ? B * (D / 2) ** 2 : D * D, w += A * ((x ? B * (z / 2) ** 2 : z * z) - w), x = x ? 2 * Math.sqrt(w / B) : Math.sqrt(w)) : x = D + A * (z - D); return x; case q.TransformationType.Proportional: return A = l.isSome(C) ? C.shape : void 0, w /= x.minDataValue, D = n(x.minSize, z, C), x = n(x.maxSize, z, C), C = null, C = "circle" ===
  5440. A ? 2 * Math.sqrt(w * (D / 2) ** 2) : "square" === A || "diamond" === A || "image" === A ? Math.sqrt(w * D ** 2) : w * D, x = u(C, D, x); case q.TransformationType.Stops: { const [F, J, M] = h(w, A); F === J ? x = n(x.stops[F].size, z, C) : (w = n(x.stops[F].size, z, C), x = n(x.stops[J].size, z, C), x = w + (x - w) * M) } return x; case q.TransformationType.RealWorldSize: return A = (l.isSome(C) && C.resolution ? C.resolution : 1) * r.meterIn[x.valueUnit], D = n(x.minSize, z, C), C = n(x.maxSize, z, C), { valueRepresentation: x } = x, z = null, z = "area" === x ? 2 * Math.sqrt(w / B) / A : "radius" === x || "distance" ===
  5441. x ? 2 * w / A : w / A, x = u(z, D, C); case q.TransformationType.Identity: return w; case q.TransformationType.Unknown: return null
  5442. }
  5443. } function h(w, x) { if (x) { var z = 0, C = x.length - 1; x.some((A, D) => { if (w < A) return C = D, !0; z = D; return !1 }); return [z, C, (w - x[z]) / (x[C] - x[z])] } } const v = d.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"), y = new c, B = Math.PI; a.getAllSizes = function (w, x, z) {
  5444. const C = ["proportional", "proportional", "proportional"]; for (const A of w) switch (w = A.useSymbolValue ? "symbol-value" : t(A, x, z), A.axis) {
  5445. case "width": C[0] =
  5446. w; break; case "depth": C[1] = w; break; case "height": C[2] = w; break; case "width-and-depth": C[0] = w; C[1] = w; break; case "all": case void 0: case null: C[0] = w; C[1] = w; C[2] = w; break; default: e.neverReached(A.axis)
  5447. }return C
  5448. }; a.getColor = k; a.getOpacity = m; a.getRotationAngle = g; a.getSize = t; a.getSizeForValue = f; a.getSizeFromNumberOrVariable = n; a.getSizeRangeAtScale = function (w, x, z) {
  5449. const { isScaleDriven: C } = w.cache; if (!(C && "3d" === z || x)) return null; z = { scale: x, view: z }; x = n(w.minSize, y, z); w = n(w.maxSize, y, z); if (null != x || null != w) return x >
  5450. w && (z = w, w = x, x = z), { minSize: x, maxSize: w }
  5451. }; a.getVisualVariableValues = function (w, x, z) {
  5452. if (w.visualVariables) {
  5453. var C = [], A = [], D = [], F = [], J = []; for (const M of w.visualVariables) switch (M.type) { case "color": A.push(M); break; case "opacity": D.push(M); break; case "rotation": J.push(M); break; case "size": F.push(M) }A.forEach(M => { const N = k(M, x, z); C.push({ variable: M, value: N }) }); D.forEach(M => { const N = m(M, x, z); C.push({ variable: M, value: N }) }); J.forEach(M => { const N = g(M, x, z); C.push({ variable: M, value: N }) }); F.forEach(M => {
  5454. const N =
  5455. t(M, x, z); C.push({ variable: M, value: N })
  5456. }); return C.filter(M => null != M.value)
  5457. }
  5458. }; a.viewScaleRE = /^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5459. })
  5460. }, "esri/Graphic": function () {
  5461. define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./geometry ./PopupTemplate ./symbols ./core/Clonable ./core/JSONSupport ./core/maybe ./core/uid ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/has ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),
  5462. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  5463. l = function (f) {
  5464. function h(...y) { y = f.call(this, ...y) || this; y.isAggregate = !1; y.layer = null; y.popupTemplate = null; y.sourceLayer = null; Object.defineProperty(a._assertThisInitialized(y), "uid", { value: k.generateUID(), configurable: !0 }); return y } a._inheritsLoose(h, f); var v = h.prototype; v.normalizeCtorArgs = function (y, B, w, x) { return y && !y.declaredClass ? y : { geometry: y, symbol: B, attributes: w, popupTemplate: x } }; v.getEffectivePopupTemplate = function (y = !1) {
  5465. if (this.popupTemplate) return this.popupTemplate;
  5466. for (const B of [this.sourceLayer, this.layer]) if (B) { if ("popupTemplate" in B && B.popupTemplate) return B.popupTemplate; if (y && "defaultPopupTemplate" in B && q.isSome(B.defaultPopupTemplate)) return B.defaultPopupTemplate } return null
  5467. }; v.getAttribute = function (y) { return this.attributes && this.attributes[y] }; v.setAttribute = function (y, B) { if (this.attributes) { const w = this.getAttribute(y); this.attributes[y] = B; this._notifyLayer("attributes", w, B, y) } else this.attributes = { [y]: B }, this._notifyLayer("attributes", void 0, B, y) };
  5468. v.getObjectId = function () { return this.sourceLayer ? "objectIdField" in this.sourceLayer && this.sourceLayer.objectIdField ? this.getAttribute(this.sourceLayer.objectIdField) : null : null }; v.toJSON = function () {
  5469. var y = this.aggregateGeometries; if (q.isSome(y)) { var B = {}; for (const w in y) { const x = y[w]; x && (B[w] = x.toJSON()) } y = 0 !== Object.keys(B).length ? B : null } else y = null; return {
  5470. aggregateGeometries: y, geometry: q.isSome(this.geometry) ? this.geometry.toJSON() : null, symbol: q.isSome(this.symbol) ? this.symbol.toJSON() : null, attributes: { ...this.attributes },
  5471. popupTemplate: this.popupTemplate && this.popupTemplate.toJSON()
  5472. }
  5473. }; v.notifyGeometryChanged = function () { this._notifyLayer("geometry", this.geometry, this.geometry) }; v.notifyMeshTransformChanged = function () { q.isSome(this.geometry) && "mesh" === this.geometry.type && this._notifyLayer("transform", this.geometry.transform, this.geometry.transform) }; v._notifyLayer = function (y, B, w, x) { this.layer && "graphicChanged" in this.layer && (B = { graphic: this, property: y, oldValue: B, newValue: w }, "attributes" === y && (B.attributeName = x), this.layer.graphicChanged(B)) };
  5474. a._createClass(h, [{ key: "aggregateGeometries", set: function (y) { const B = this._get("aggregateGeometries"); JSON.stringify(B) !== JSON.stringify(y) && this._set("aggregateGeometries", y) } }, { key: "attributes", set: function (y) { const B = this._get("attributes"); B !== y && (this._set("attributes", y), this._notifyLayer("attributes", B, y)) } }, { key: "geometry", set: function (y) { const B = this._get("geometry"); B !== y && (this._set("geometry", y), this._notifyLayer("geometry", B, y)) } }, {
  5475. key: "symbol", set: function (y) {
  5476. const B = this._get("symbol");
  5477. B !== y && (this._set("symbol", y), this._notifyLayer("symbol", B, y))
  5478. }
  5479. }, { key: "visible", set: function (y) { const B = this._get("visible"); B !== y && (this._set("visible", y), this._notifyLayer("visible", B, y)) } }]); return h
  5480. }(l.ClonableMixin(r.JSONSupport)); b.__decorate([m.property({ value: null, json: { read: function (f) { if (!f) return null; const h = {}; for (const v in f) { const y = u.fromJSON(f[v]); y && (h[v] = y) } return 0 !== Object.keys(h).length ? h : null } } })], l.prototype, "aggregateGeometries", null); b.__decorate([m.property({ value: null })],
  5481. l.prototype, "attributes", null); b.__decorate([m.property({ value: null, types: c.geometryTypes, json: { read: u.fromJSON } })], l.prototype, "geometry", null); b.__decorate([m.property({ type: Boolean })], l.prototype, "isAggregate", void 0); b.__decorate([m.property({ clonable: "reference" })], l.prototype, "layer", void 0); b.__decorate([m.property({ type: e })], l.prototype, "popupTemplate", void 0); b.__decorate([m.property({ clonable: "reference" })], l.prototype, "sourceLayer", void 0); b.__decorate([m.property({ value: null, types: d.symbolTypes })],
  5482. l.prototype, "symbol", null); b.__decorate([m.property({ type: Boolean, value: !0 })], l.prototype, "visible", null); l = b.__decorate([n.subclass("esri.Graphic")], l); (l || (l = {})).generateUID = k.generateUID; return l
  5483. })
  5484. }, "esri/renderers/visualVariables/VisualVariableFactory": function () {
  5485. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/jsonMap ../../core/Logger ../../core/Warning ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ColorVariable ./OpacityVariable ./RotationVariable ./SizeVariable".split(" "),
  5486. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  5487. const f = d.getLogger("esri.renderers.visualVariables.VisualVariableFactory"), h = { color: p, size: u, opacity: t, rotation: n }, v = new e.JSONMap({ colorInfo: "color", transparencyInfo: "opacity", rotationInfo: "rotation", sizeInfo: "size" }), y = /^\[([^\]]+)\]$/i; c = function (B) {
  5488. function w() { var z = B.apply(this, arguments) || this; z.colorVariables = null; z.opacityVariables = null; z.rotationVariables = null; z.sizeVariables = null; return z } a._inheritsLoose(w, B); var x = w.prototype; x.readVariables = function (z,
  5489. C, A) { const { rotationExpression: D, rotationType: F } = C; if (C = (C = D && D.match(y)) && C[1]) z || (z = []), z.push({ type: "rotationInfo", rotationType: F, field: C }); if (z) return z.map(J => { var M = v.read(J.type); const N = h[M]; N || (f.warn(`Unknown variable type: ${M}`), A && A.messages && A.messages.push(new l("visual-variable:unsupported", `visualVariable of type '${M}' is not supported`, { definition: J, context: A }))); M = new N; M.read(J, A); return M }) }; x.writeVariables = function (z, C) {
  5490. const A = []; for (const D of z) (z = D.toJSON(C)) && A.push(z);
  5491. return A
  5492. }; x._resetVariables = function () { this.colorVariables = []; this.opacityVariables = []; this.rotationVariables = []; this.sizeVariables = [] }; a._createClass(w, [{
  5493. key: "visualVariables", set: function (z) {
  5494. this._resetVariables(); if ((z = z && z.filter(A => !!A)) && z.length) {
  5495. for (var C of z) switch (C.type) { case "color": this.colorVariables.push(C); break; case "opacity": this.opacityVariables.push(C); break; case "rotation": this.rotationVariables.push(C); break; case "size": this.sizeVariables.push(C) }this.sizeVariables.length &&
  5496. this.sizeVariables.some(A => !!A.target) && z.sort((A, D) => { let F = null; return F = A.target === D.target ? 0 : A.target ? 1 : -1 }); for (C = 0; C < z.length; C++)z[C].index = C
  5497. } this._set("visualVariables", z)
  5498. }
  5499. }]); return w
  5500. }(c); b.__decorate([r.property()], c.prototype, "visualVariables", null); return c = b.__decorate([g.subclass("esri.renderers.visualVariables.VisualVariableFactory")], c)
  5501. })
  5502. }, "esri/renderers/support/ClassBreakInfo": function () {
  5503. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),
  5504. function (a, b, c, e, d, l, r, q, k) {
  5505. var m; c = m = function (g) { function p(n) { n = g.call(this, n) || this; n.description = null; n.label = null; n.minValue = null; n.maxValue = 0; n.symbol = null; return n } a._inheritsLoose(p, g); var t = p.prototype; t.clone = function () { return new m({ description: this.description, label: this.label, minValue: this.minValue, maxValue: this.maxValue, symbol: this.symbol ? this.symbol.clone() : null }) }; t.getMeshHash = function () { const n = JSON.stringify(this.symbol); return `${this.minValue}.${this.maxValue}.${n}` }; return p }(c.JSONSupport);
  5506. b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "description", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "label", void 0); b.__decorate([e.property({ type: Number, json: { read: { source: "classMinValue" }, write: { target: "classMinValue" } } })], c.prototype, "minValue", void 0); b.__decorate([e.property({ type: Number, json: { read: { source: "classMaxValue" }, write: { target: "classMaxValue" } } })], c.prototype, "maxValue", void 0); b.__decorate([e.property(k.rendererSymbolProperty)],
  5507. c.prototype, "symbol", void 0); return c = m = b.__decorate([q.subclass("esri.renderers.support.ClassBreakInfo")], c)
  5508. })
  5509. }, "esri/renderers/support/commonProperties": function () {
  5510. define("exports ../../symbols ../../core/accessorSupport/extensions/serializableProperty/reader ../../symbols/support/jsonUtils ../../symbols/Symbol ../../symbols/PolygonSymbol3D".split(" "), function (a, b, c, e, d, l) {
  5511. c = {
  5512. types: b.symbolTypesRenderer, json: {
  5513. write: { writer: e.write }, origins: {
  5514. "web-scene": {
  5515. types: b.symbolTypesRenderer3D, write: { writer: e.write },
  5516. read: { reader: c.createTypeReader({ types: b.symbolTypesRenderer3D }) }
  5517. }
  5518. }
  5519. }
  5520. }; a.rendererBackgroundFillSymbolProperty = { types: { base: d, key: "type", typeMap: { "simple-fill": b.symbolTypes.typeMap["simple-fill"], "picture-fill": b.symbolTypes.typeMap["picture-fill"], "polygon-3d": b.symbolTypes.typeMap["polygon-3d"] } }, json: { write: { writer: e.write }, origins: { "web-scene": { type: l, write: { writer: e.write } } } } }; a.rendererSymbolProperty = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5521. })
  5522. },
  5523. "esri/symbols/support/jsonUtils": function () {
  5524. define("exports ../../symbols ../../core/Error ../../core/maybe ../Symbol3D ./symbolConversion ../WebStyleSymbol".split(" "), function (a, b, c, e, d, l, r) {
  5525. function q(m, g, p) {
  5526. if (e.isNone(m)) return null; const { context: t, isLabelSymbol: n } = p, u = null == t ? void 0 : t.origin; p = null == t ? void 0 : t.messages; if ("web-scene" === u && !(m instanceof d || m instanceof r)) {
  5527. var f = l.to3D(m, { retainCIM: !0, hasLabelingContext: n }); if (e.isSome(f.symbol)) return f.symbol.write(g, t); null == p ? void 0 : p.push(new c("symbol:unsupported",
  5528. `Symbols of type '${m.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`, { symbol: m, context: t, error: f.error })); return null
  5529. } return ("web-map" === u || "portal-item" === u && !k.includes(null == t ? void 0 : null == (f = t.layer) ? void 0 : f.type)) && (m instanceof d || m instanceof r) ? (null == p ? void 0 : p.push(new c("symbol:unsupported", `Symbols of type '${m.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,
  5530. { symbol: m, context: t })), null) : m.write(g, t)
  5531. } const k = ["building-scene", "integrated-mesh", "point-cloud", "scene"]; a.fromJSON = function (m, g) { return b.readSymbol(m, null, g) }; a.write = function (m, g, p, t) { m = q(m, {}, { context: t, isLabelSymbol: !1 }); e.isSome(m) && (g[p] = m) }; a.writeLabelSymbol = function (m, g, p, t) { m = q(m, {}, { context: t, isLabelSymbol: !0 }); e.isSome(m) && (g[p] = m) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5532. })
  5533. }, "esri/symbols/support/symbolConversion": function () {
  5534. define("exports ../../symbols ../../core/Error ../WebStyleSymbol ../PointSymbol3D ../SimpleLineSymbol ../LineSymbol3D ../SimpleMarkerSymbol ../PictureMarkerSymbol ../SimpleFillSymbol ../PolygonSymbol3D ../TextSymbol ../LabelSymbol3D".split(" "),
  5535. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  5536. const n = { retainId: !1, ignoreDrivers: !1, hasLabelingContext: !0 }; a.to3D = function (u, f = n) {
  5537. if (!u) return { symbol: null }; const { retainId: h = n.retainId, ignoreDrivers: v = n.ignoreDrivers, hasLabelingContext: y = n.hasLabelingContext, retainCIM: B = n.retainCIM } = f; if (b.isSymbol3D(u) || u instanceof e) var w = u.clone(); else if ("cim" === u.type) {
  5538. var x; f = null == (w = u.data) ? void 0 : null == (x = w.symbol) ? void 0 : x.type; if ("CIMPointSymbol" !== f) return {
  5539. error: new c("symbol-conversion:unsupported-cim-symbol",
  5540. `CIM symbol of type '${f || "unknown"}' is unsupported in 3D`, { symbol: u })
  5541. }; w = B ? u.clone() : d.fromCIMSymbol(u)
  5542. } else if (u instanceof l) w = r.fromSimpleLineSymbol(u); else if (u instanceof q) w = d.fromSimpleMarkerSymbol(u); else if (u instanceof k) w = d.fromPictureMarkerSymbol(u); else if (u instanceof m) w = g.fromSimpleFillSymbol(u); else if (u instanceof p) w = y ? t.fromTextSymbol(u) : d.fromTextSymbol(u); else return {
  5543. error: new c("symbol-conversion:unsupported-2d-symbol", `2D symbol of type '${u.type || u.declaredClass}' is unsupported in 3D`,
  5544. { symbol: u })
  5545. }; h && "cim" !== w.type && (w.id = u.id); if (v && b.isSymbol3D(w)) for (u = 0; u < w.symbolLayers.length; ++u)w.symbolLayers.getItemAt(u)._ignoreDrivers = !0; return { symbol: w }
  5546. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5547. })
  5548. }, "esri/renderers/DictionaryRenderer": function () {
  5549. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/DictionaryLoader".split(" "),
  5550. function (a, b, c, e, d, l, r, q, k, m, g) {
  5551. var p; d = p = function (t) {
  5552. function n(f) { f = t.call(this, f) || this; f.config = null; f.fieldMap = null; f.scaleExpression = null; f.scaleExpressionTitle = null; f.url = null; f.type = "dictionary"; return f } a._inheritsLoose(n, t); var u = n.prototype; u.writeData = function (f, h) { f && (h.scalingExpressionInfo = { expression: f, returnType: "number" }) }; u.writeVisualVariables = function (f, h, v, y) { null != y && y.origin || t.prototype.writeVisualVariables.call(this, f, h, v, y) }; u.clone = function () {
  5553. return new p({
  5554. config: c.clone(this.config),
  5555. scaleExpression: this.scaleExpression, scaleExpressionTitle: this.scaleExpressionTitle, fieldMap: c.clone(this.fieldMap), url: c.clone(this.url), visualVariables: c.clone(this.visualVariables)
  5556. })
  5557. }; u.getSymbolAsync = function () { var f = a._asyncToGenerator(function* (h, v) { return this._loader.getSymbolAsync(h, v) }); return function (h, v) { return f.apply(this, arguments) } }(); u.collectRequiredFields = function () {
  5558. var f = a._asyncToGenerator(function* (h, v) {
  5559. yield this.collectVVRequiredFields(h, v); this.scaleExpression && (yield q.collectArcadeFieldNames(h,
  5560. v, this.scaleExpression)); for (const y in this.fieldMap) { const B = this.fieldMap[y]; v.has(B) && h.add(B) }
  5561. }); return function (h, v) { return f.apply(this, arguments) }
  5562. }(); u.getSymbol = function () { return null }; u.getSymbols = function () { return [] }; u.getAttributeHash = function () { return this.visualVariables && this.visualVariables.reduce((f, h) => f + h.getAttributeHash(), "") }; u.getMeshHash = function () { return `${this.url}-${JSON.stringify(this.fieldMap)}` }; u.getSymbolFields = function () { return this._loader.getSymbolFields() }; a._createClass(n,
  5563. [{ key: "_loader", get: function () { return new g.DictionaryLoader(this.url, this.config, this.fieldMap) } }, { key: "arcadeRequired", get: function () { return !0 } }]); return n
  5564. }(m.VisualVariablesMixin(k)); b.__decorate([e.property({ type: g.DictionaryLoader })], d.prototype, "_loader", null); b.__decorate([e.property({ type: Object, json: { read: { source: "configuration" }, write: { target: "configuration" } } })], d.prototype, "config", void 0); b.__decorate([e.property({ type: Object, json: { write: !0 } })], d.prototype, "fieldMap", void 0); b.__decorate([e.property({
  5565. type: String,
  5566. json: { read: { source: "scalingExpressionInfo.expression" }, write: !0 }
  5567. })], d.prototype, "scaleExpression", void 0); b.__decorate([r.writer("scaleExpression")], d.prototype, "writeData", null); b.__decorate([e.property({ type: String, json: { read: { source: "scalingExpressionInfo.title" }, write: { target: "scalingExpressionInfo.title", overridePolicy(t) { return { enabled: !!t && !!this.scaleExpression } } } } })], d.prototype, "scaleExpressionTitle", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], d.prototype, "url", void 0);
  5568. b.__decorate([r.writer("visualVariables")], d.prototype, "writeVisualVariables", null); return d = p = b.__decorate([l.subclass("esri.renderers.DictionaryRenderer")], d)
  5569. })
  5570. }, "esri/renderers/support/DictionaryLoader": function () {
  5571. define("exports ../../chunks/_rollupPluginBabelHelpers ../../Color ../../request ../../core/Error ../../core/Logger ../../core/LRUCache ../../core/maybe ../../core/promiseUtils ../../core/string ../../support/arcadeOnDemand ../../symbols/CIMSymbol".split(" "), function (a, b, c, e, d, l, r, q,
  5572. k, m, g, p) {
  5573. function t(f, h) { if (f && (f = f.symbolLayers)) for (var v = f.length; v--;) { var y = f[v]; if (y && !1 !== y.enable) switch (y.type) { case "CIMVectorMarker": var B = h; if (y = y.markerGraphics) for (const w of y) if (w && (y = w.symbol)) switch (y.type) { case "CIMPointSymbol": case "CIMLineSymbol": case "CIMPolygonSymbol": t(y, B); break; case "CIMTextSymbol": y.fieldMap = B } } } } const n = l.getLogger("esri.renderers.support.DictionaryLoader"), u = {
  5574. type: "CIMSimpleLineCallout", lineSymbol: {
  5575. type: "CIMLineSymbol", symbolLayers: [{
  5576. type: "CIMSolidStroke",
  5577. width: .5, color: [0, 0, 0, 255]
  5578. }]
  5579. }
  5580. }; l = function () {
  5581. function f(v, y, B) { this.url = this.fieldMap = this.config = null; this._ongoingRequests = new Map; this._symbolCache = new r(100); this.url = v; this.config = y; this.fieldMap = B } var h = f.prototype; h.getSymbolFields = function () { return this._symbolFields }; h.getSymbolAsync = function () {
  5582. var v = b._asyncToGenerator(function* (y, B) {
  5583. this._dictionaryPromise || (this._dictionaryPromise = this.fetchResources(B)); try { var w = yield this._dictionaryPromise } catch (F) {
  5584. if (k.isAbortError(F)) return this._dictionaryPromise =
  5585. null
  5586. } var x = {}; if (this.fieldMap) for (var z of this._symbolFields) { var C = this.fieldMap[z]; x[z] = C && null != y.attributes[C] ? "" + y.attributes[C] : "" } w = w(x, B); if (!w || "string" !== typeof w) return null; const A = m.numericHash(w).toString(); if (x = this._symbolCache.get(A)) return x.catch(() => { this._symbolCache.pop(A) }), x; z = w.split(";"); w = []; x = []; for (const F of z) if (F) if (F.includes("po:")) {
  5587. var D = F.substr(3).split("|"); 3 === D.length && (z = D[0], C = D[1], D = D[2], "DashTemplate" === C ? D = D.split(" ").map(J => Number(J)) : "Color" === C ? (D =
  5588. (new c(D)).toRgba(), D = [D[0], D[1], D[2], 255 * D[3]]) : D = Number(D), x.push({ primitiveName: z, propertyName: C, value: D }))
  5589. } else if (F.includes("|")) for (const J of F.split("|")) { if (this._itemNames.has(J)) { w.push(J); break } } else this._itemNames.has(F) && w.push(F); y = q.isSome(y.geometry) && (y.geometry.hasZ || "point" !== y.geometry.type) ? !1 : !0; B = this._cimPartsToCIMSymbol(w, x, y, B); this._symbolCache.put(A, B, 1); return B
  5590. }); return function (y, B) { return v.apply(this, arguments) }
  5591. }(); h.fetchResources = function () {
  5592. var v = b._asyncToGenerator(function* (y) {
  5593. if (this._dictionaryPromise) return this._dictionaryPromise;
  5594. if (this.url) {
  5595. var B = e(this.url + "/resources/styles/dictionary-info.json", { responseType: "json", query: { f: "json" }, signal: q.isSome(y) ? y.signal : null }), [{ data: w }] = yield Promise.all([B, g.loadArcade()]); if (!w) throw this._dictionaryPromise = null, new d("esri.renderers.DictionaryRenderer", "Bad dictionary data!"); B = w.expression; var x = w.authoringInfo; this._refSymbolUrlTemplate = this.url + "/" + w.cimRefTemplateUrl; this._itemNames = new Set(w.itemsNames); this._symbolFields = x.symbol; w = {}; if (this.config) {
  5596. const A = this.config;
  5597. for (var z in A) w[z] = A[z]
  5598. } if (x.configuration) for (var C of x.configuration) w.hasOwnProperty(C.name) || (w[C.name] = C.value); z = []; if (q.isSome(y) && y.fields && this.fieldMap) for (const A of this._symbolFields) { const D = this.fieldMap[A]; C = y.fields.filter(F => F.name === D); 0 < C.length && z.push({ ...C[0], name: A }) } return this._dictionaryPromise = g.createDictionaryExpression(B, q.isSome(y) ? y.spatialReference : null, z, w).then(A => {
  5599. const D = { scale: 0 }; return (F, J) => {
  5600. F = A.repurposeFeature({ geometry: null, attributes: F }); D.scale = q.isSome(J) ?
  5601. J.scale : void 0; return A.evaluate({ $feature: F, $view: D })
  5602. }
  5603. }).catch(A => { n.error("Creating dictinoary expression failed:", A); return null })
  5604. } n.error("no valid URL!")
  5605. }); return function (y) { return v.apply(this, arguments) }
  5606. }(); h._cimPartsToCIMSymbol = function () {
  5607. var v = b._asyncToGenerator(function* (y, B, w, x) { const z = Array(y.length); for (let C = 0; C < y.length; C++)z[C] = this._getSymbolPart(y[C], x); y = yield Promise.all(z); x = this.fieldMap; for (const C of y) t(C, x); return new p({ data: this._combineSymbolParts(y, B, w) }) }); return function (y,
  5608. B, w, x) { return v.apply(this, arguments) }
  5609. }(); h._getSymbolPart = function () { var v = b._asyncToGenerator(function* (y, B) { if (this._ongoingRequests.has(y)) return this._ongoingRequests.get(y).then(x => x.data); const w = this._refSymbolUrlTemplate.replace(/\{itemName\}/gi, y); B = e(w, { responseType: "json", query: { f: "json" }, ...B }); this._ongoingRequests.set(y, B); try { return (yield B).data } catch (x) { throw this._ongoingRequests.delete(y), x; } }); return function (y, B) { return v.apply(this, arguments) } }(); h._combineSymbolParts = function (v,
  5610. y, B) { if (!v || 0 === v.length) return null; const w = { ...v[0] }; if (1 < v.length) { w.symbolLayers = []; for (const x of v) w.symbolLayers.unshift(...x.symbolLayers) } B && (w.callout = u); return { type: "CIMSymbolReference", symbol: w, primitiveOverrides: y } }; return f
  5611. }(); a.DictionaryLoader = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5612. })
  5613. }, "esri/core/LRUCache": function () {
  5614. define(["../chunks/_rollupPluginBabelHelpers", "./MemCache"], function (a, b) {
  5615. return function () {
  5616. function c(d, l) {
  5617. this._storage =
  5618. new b.MemCacheStorage; this._storage.maxSize = d; l && this._storage.registerRemoveFunc("", l)
  5619. } var e = c.prototype; e.put = function (d, l, r) { this._storage.put(d, l, r, 1) }; e.pop = function (d) { return this._storage.pop(d) }; e.get = function (d) { return this._storage.get(d) }; e.clear = function () { this._storage.clearAll() }; e.destroy = function () { this._storage.destroy() }; a._createClass(c, [{ key: "maxSize", get: function () { return this._storage.maxSize }, set: function (d) { this._storage.maxSize = d } }]); return c
  5620. }()
  5621. })
  5622. }, "esri/core/MemCache": function () {
  5623. define(["exports",
  5624. "../chunks/_rollupPluginBabelHelpers", "./maybe", "./PooledArray"], function (a, b, c, e) {
  5625. a.RemoveMode = void 0; (function (r) { r[r.ALL = 0] = "ALL"; r[r.SOME = 1] = "SOME" })(a.RemoveMode || (a.RemoveMode = {})); let d = function () {
  5626. function r(k, m, g) { this._namespace = k; this._storage = m; this._removeFunc = !1; this._miss = this._hit = 0; this._storage.register(this); this._namespace += ":"; g && (this._storage.registerRemoveFunc(this._namespace, g), this._removeFunc = !0) } var q = r.prototype; q.destroy = function () {
  5627. this._storage.clear(this._namespace);
  5628. this._removeFunc && this._storage.deregisterRemoveFunc(this._namespace); this._storage.deregister(this); this._storage = null
  5629. }; q.resetHitRate = function () { this._hit = this._miss = 0 }; q.put = function (k, m, g, p = 0) { this._storage.put(this._namespace + k, m, g, p) }; q.get = function (k) { k = this._storage.get(this._namespace + k); void 0 === k ? ++this._miss : ++this._hit; return k }; q.pop = function (k) { k = this._storage.pop(this._namespace + k); void 0 === k ? ++this._miss : ++this._hit; return k }; q.updateSize = function (k, m, g) {
  5630. this._storage.updateSize(this._namespace +
  5631. k, m, g)
  5632. }; q.clear = function () { this._storage.clear(this._namespace) }; q.clearAll = function () { this._storage.clearAll() }; q.getStats = function () { return this._storage.getStats() }; q.resetStats = function () { this._storage.resetStats() }; b._createClass(r, [{ key: "namespace", get: function () { return this._namespace.slice(0, -1) } }, { key: "hitRate", get: function () { return this._hit / (this._hit + this._miss) } }, { key: "size", get: function () { return this._storage.size } }, { key: "maxSize", get: function () { return this._storage.maxSize } }]); return r
  5633. }(),
  5634. l = function () {
  5635. function r(k = 10485760) { this._maxSize = k; this._db = new Map; this._miss = this._hit = this._size = 0; this._removeFuncs = new e; this._users = new e } var q = r.prototype; q.destroy = function () { this.clearAll(); this._removeFuncs.clear(); this._users.clear(); this._db = null }; q.register = function (k) { this._users.push(k) }; q.deregister = function (k) { this._users.removeUnordered(k) }; q.registerRemoveFunc = function (k, m) { this._removeFuncs.push([k, m]) }; q.deregisterRemoveFunc = function (k) {
  5636. this._removeFuncs.filterInPlace(m => m[0] !==
  5637. k)
  5638. }; q.put = function (k, m, g, p) { const t = this._db.get(k); t && (this._size -= t.size, this._db.delete(k), t.entry !== m && this._notifyRemove(k, t.entry, a.RemoveMode.ALL)); g > this._maxSize ? this._notifyRemove(k, m, a.RemoveMode.ALL) : void 0 === m ? console.warn("Refusing to cache undefined entry ") : !g || 0 > g ? console.warn("Refusing to cache entry with invalid size " + g) : (p = 1 + Math.max(p, -3) - -3, this._db.set(k, { entry: m, size: g, lifetime: p, lives: p }), this._size += g, this._checkSizeLimit()) }; q.updateSize = function (k, m, g) {
  5639. const p = this._db.get(k);
  5640. if (p && p.entry === m) { for (this._size -= p.size; g > this._maxSize;)if (g = this._notifyRemove(k, m, a.RemoveMode.SOME), !(c.isSome(g) && 0 < g)) { this._db.delete(k); return } p.size = g; this._size += g; this._checkSizeLimit() }
  5641. }; q.pop = function (k) { const m = this._db.get(k); if (m) return this._size -= m.size, this._db.delete(k), ++this._hit, m.entry; ++this._miss }; q.get = function (k) { const m = this._db.get(k); if (void 0 === m) ++this._miss; else return this._db.delete(k), m.lives = m.lifetime, this._db.set(k, m), ++this._hit, m.entry }; q.getStats = function () {
  5642. const k =
  5643. { Size: Math.round(this._size / 1048576) + "/" + Math.round(this._maxSize / 1048576) + "MB", "Hit rate": Math.round(100 * this._getHitRate()) + "%", Entries: this._db.size.toString() }, m = {}, g = []; this._db.forEach((n, u) => { const f = n.lifetime; g[f] = (g[f] || 0) + n.size; this._users.forAll(h => { h = h.namespace; u.startsWith(h) && (m[h] = (m[h] || 0) + n.size) }) }); const p = {}; this._users.forAll(n => { const u = n.namespace; !isNaN(n.hitRate) && 0 < n.hitRate ? (m[u] = m[u] || 0, p[u] = Math.round(100 * n.hitRate) + "%") : p[u] = "0%" }); var t = Object.keys(m); t.sort((n, u) =>
  5644. m[u] - m[n]); t.forEach(n => k[n] = Math.round(m[n] / 2 ** 20) + "MB / " + p[n]); for (t = g.length - 1; 0 <= t; --t) { const n = g[t]; n && (k["Priority " + (t + -3 - 1)] = Math.round(n / this.size * 100) + "%") } return k
  5645. }; q.resetStats = function () { this._hit = this._miss = 0; this._users.forAll(k => k.resetHitRate()) }; q.clear = function (k) { this._db.forEach((m, g) => { g.startsWith(k) && (this._size -= m.size, this._db.delete(g), this._notifyRemove(g, m.entry, a.RemoveMode.ALL)) }) }; q.clearAll = function () {
  5646. this._db.forEach((k, m) => this._notifyRemove(m, k.entry, a.RemoveMode.ALL));
  5647. this._size = 0; this._db.clear()
  5648. }; q._getHitRate = function () { return this._hit / (this._hit + this._miss) }; q._notifyRemove = function (k, m, g) { let p; this._removeFuncs.some(t => k.startsWith(t[0]) ? (t = t[1](m, g), "number" === typeof t && (p = t), !0) : !1); return p }; q._checkSizeLimit = function () {
  5649. if (!(this._size <= this._maxSize)) for (const [k, m] of this._db) {
  5650. this._db.delete(k); if (1 >= m.lives) {
  5651. this._size -= m.size; const g = this._notifyRemove(k, m.entry, a.RemoveMode.SOME); c.isSome(g) && 0 < g && (this._size += g, m.lives = m.lifetime, m.size = g, this._db.set(k,
  5652. m))
  5653. } else --m.lives, this._db.set(k, m); if (this._size <= .9 * this.maxSize) break
  5654. }
  5655. }; b._createClass(r, [{ key: "size", get: function () { return this._size } }, { key: "maxSize", get: function () { return this._maxSize }, set: function (k) { this._maxSize = Math.max(k, 0); this._checkSizeLimit() } }]); return r
  5656. }(); a.MIN_PRIORITY = -3; a.MemCache = d; a.MemCacheStorage = l; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5657. })
  5658. }, "esri/renderers/DotDensityRenderer": function () {
  5659. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/accessorSupport/decorators/aliasOf ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/AttributeColorInfo ./support/DotDensityLegendOptions ../symbols/SimpleFillSymbol ../symbols/SimpleLineSymbol".split(" "),
  5660. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f) {
  5661. var h; l = h = function (v) {
  5662. function y(w) { w = v.call(this, w) || this; w.attributes = null; w.backgroundColor = new c([0, 0, 0, 0]); w.blendDots = !0; w.dotBlendingEnabled = !0; w.dotShape = "square"; w.dotSize = 1; w.legendOptions = null; w.outline = new f; w.dotValue = null; w.referenceDotValue = null; w.referenceScale = null; w.seed = 1; w.type = "dot-density"; return w } a._inheritsLoose(y, v); var B = y.prototype; B.calculateDotValue = function (w) {
  5663. if (null == this.referenceScale) return this.dotValue; w = w / this.referenceScale *
  5664. this.dotValue; return 1 > w ? 1 : w
  5665. }; B.getSymbol = function () { return new u({ outline: this.outline }) }; B.getSymbolAsync = function () { var w = a._asyncToGenerator(function* () { return this.getSymbol() }); return function () { return w.apply(this, arguments) } }(); B.getSymbols = function () { return [this.getSymbol()] }; B.getAttributeHash = function () { return this.attributes && this.attributes.reduce((w, x) => w + x.getAttributeHash(), "") }; B.getMeshHash = function () { return JSON.stringify(this.outline) }; B.clone = function () {
  5666. return new h({
  5667. attributes: e.clone(this.attributes),
  5668. backgroundColor: e.clone(this.backgroundColor), dotBlendingEnabled: e.clone(this.dotBlendingEnabled), dotShape: e.clone(this.dotShape), dotSize: e.clone(this.dotSize), dotValue: e.clone(this.dotValue), legendOptions: e.clone(this.legendOptions), outline: e.clone(this.outline), referenceScale: e.clone(this.referenceScale), visualVariables: e.clone(this.visualVariables), authoringInfo: this.authoringInfo && this.authoringInfo.clone()
  5669. })
  5670. }; B.getControllerHash = function () {
  5671. const w = this.attributes.map(z => z.field || z.valueExpression ||
  5672. ""), x = this.outline && JSON.stringify(this.outline.toJSON()) || ""; return `${w}-${x}`
  5673. }; B.collectRequiredFields = function () { var w = a._asyncToGenerator(function* (x, z) { yield this.collectVVRequiredFields(x, z); for (const C of this.attributes) C.valueExpression && (yield m.collectArcadeFieldNames(x, z, C.valueExpression)), C.field && x.add(C.field) }); return function (x, z) { return w.apply(this, arguments) } }(); return y
  5674. }(p.VisualVariablesMixin(g)); b.__decorate([q.property({ type: [t], json: { write: !0 } })], l.prototype, "attributes",
  5675. void 0); b.__decorate([q.property({ type: c, json: { write: !0 } })], l.prototype, "backgroundColor", void 0); b.__decorate([q.property({ type: Boolean }), d.aliasOf("dotBlendingEnabled")], l.prototype, "blendDots", void 0); b.__decorate([q.property({ type: Boolean, json: { write: !0 } })], l.prototype, "dotBlendingEnabled", void 0); b.__decorate([q.property({ type: String, json: { write: !1 } })], l.prototype, "dotShape", void 0); b.__decorate([q.property({ type: Number, json: { write: !0, origins: { "web-map": { write: !1 }, "web-scene": { write: !1 } } } })],
  5676. l.prototype, "dotSize", void 0); b.__decorate([q.property({ type: n, json: { write: !0 } })], l.prototype, "legendOptions", void 0); b.__decorate([q.property({ type: f, json: { default: null, write: !0 } })], l.prototype, "outline", void 0); b.__decorate([q.property({ type: Number, json: { write: !0 } })], l.prototype, "dotValue", void 0); b.__decorate([q.property({ type: Number }), d.aliasOf("dotValue")], l.prototype, "referenceDotValue", void 0); b.__decorate([q.property({ type: Number, json: { write: !0 } })], l.prototype, "referenceScale", void 0); b.__decorate([q.property({
  5677. type: Number,
  5678. json: { write: !0 }
  5679. })], l.prototype, "seed", void 0); b.__decorate([r.enumeration({ dotDensity: "dot-density" })], l.prototype, "type", void 0); return l = h = b.__decorate([k.subclass("esri.renderers.DotDensityRenderer")], l)
  5680. })
  5681. }, "esri/core/accessorSupport/decorators/aliasOf": function () { define(["exports", "./property"], function (a, b) { a.aliasOf = function (c, e) { return b.property({ aliasOf: e ? { ...e, source: c } : c }) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/renderers/support/AttributeColorInfo": function () {
  5682. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType".split(" "),
  5683. function (a, b, c, e, d, l, r, q, k, m, g) {
  5684. var p; const t = d.getLogger("esri.renderers.support.AttributeColorInfo"); e = p = function (n) {
  5685. function u(h) { h = n.call(this, h) || this; h.color = null; h.field = null; h.label = null; h.valueExpression = null; h.valueExpressionTitle = null; return h } a._inheritsLoose(u, n); var f = u.prototype; f.castField = function (h) { return null == h ? h : "function" === typeof h ? (t.error(".field: field must be a string value"), null) : g.ensureString(h) }; f.getAttributeHash = function () { return `${this.field}-${this.valueExpression}` };
  5686. f.clone = function () { return new p({ color: this.color && this.color.clone(), field: this.field, label: this.label, valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle }) }; return u
  5687. }(e.JSONSupport); b.__decorate([l.property({ type: c, json: { type: [Number], write: !0 } })], e.prototype, "color", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "field", void 0); b.__decorate([k.cast("field")], e.prototype, "castField", null); b.__decorate([l.property({ type: String, json: { write: !0 } })],
  5688. e.prototype, "label", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "valueExpression", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "valueExpressionTitle", void 0); return e = p = b.__decorate([m.subclass("esri.renderers.support.AttributeColorInfo")], e)
  5689. })
  5690. }, "esri/renderers/support/DotDensityLegendOptions": function () {
  5691. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  5692. function (a, b, c, e, d, l, r, q) { var k; c = k = function (m) { function g() { var p = m.apply(this, arguments) || this; p.unit = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ unit: this.unit }) }; return g }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "unit", void 0); return c = k = b.__decorate([q.subclass("esri.renderers.support.DotDensityLegendOptions")], c) })
  5693. }, "esri/renderers/HeatmapRenderer": function () {
  5694. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../symbols ../core/deprecate ../core/lang ../core/Logger ../core/scheduling ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/utils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./support/AuthoringInfo ./support/HeatmapColorStop ./support/HeatmapLegendOptions ./support/heatmapUtils ../symbols/SimpleMarkerSymbol".split(" "),
  5695. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w) {
  5696. function x(A) { if (null != A) { const { maxDensity: D, minDensity: F, radius: J } = A; if (null != D || null != F || null != J) { const { blurRadius: M, maxPixelIntensity: N, minPixelIntensity: E, ...G } = A; return G } } return A } var z; const C = r.getLogger("esri.renderers.HeatmapRenderer"); e = z = function (A) {
  5697. function D(J) {
  5698. J = A.call(this, J) || this; J.authoringInfo = null; J.colorStops = [new v({ ratio: 0, color: new c("rgba(255, 140, 0, 0)") }), new v({ ratio: .75, color: new c("rgba(255, 140, 0, 1)") }), new v({
  5699. ratio: .9,
  5700. color: new c("rgba(255, 0, 0, 1)")
  5701. })]; J.field = null; J.fieldOffset = 0; J.legendOptions = null; J.maxDensity = .04; J.minDensity = 0; J.radius = 18; J.referenceScale = 0; J.type = "heatmap"; J.valueExpression = null; J.valueExpressionTitle = null; J._warnedProps = { blurRadius: !1, maxPixelIntensity: !1, minPixelIntensity: !1 }; return J
  5702. } a._inheritsLoose(D, A); var F = D.prototype; F.normalizeCtorArgs = function (J) { return x(J) }; F._warnAboutDeprecatedGaussianBlurProp = function (J, M) {
  5703. this._warnedProps[J] || "user" !== g.getProperties(this).getDefaultOrigin() ||
  5704. (this._warnedProps[J] = !0, q.schedule(() => { d.deprecatedProperty(C, J, { replacement: `${String(M)} (suggested value: ${this._get(M)})`, version: "4.24" }) }))
  5705. }; F.read = function (J, M) { J = x(J); A.prototype.read.call(this, J, M) }; F.getSymbol = function () { const J = Math.min(this.radius * (0 !== this.referenceScale ? 5 : 1), k.px2pt(256)); return new w({ size: J }) }; F.getSymbolAsync = function () { var J = a._asyncToGenerator(function* () { return this.getSymbol() }); return function () { return J.apply(this, arguments) } }(); F.getSymbols = function () { return [this.getSymbol()] };
  5706. F.collectRequiredFields = function () { var J = a._asyncToGenerator(function* (M, N) { const E = this.field, G = this.valueExpression; E && "string" === typeof E && (yield u.collectField(M, N, E)); G && "string" === typeof G && (yield u.collectArcadeFieldNames(M, N, G)) }); return function (M, N) { return J.apply(this, arguments) } }(); F.getAttributeHash = function () { return null }; F.getMeshHash = function () { return `${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}` }; F.clone = function () {
  5707. return new z({
  5708. colorStops: l.clone(this.colorStops),
  5709. field: this.field, legendOptions: l.clone(this.legendOptions), maxDensity: this.maxDensity, minDensity: this.minDensity, radius: this.radius, referenceScale: this.referenceScale, valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle
  5710. })
  5711. }; a._createClass(D, [{
  5712. key: "blurRadius", get: function () { return B.kernelDensityRadiusPtToGaussianBlurRadiusPx(this.radius) }, set: function (J) {
  5713. const M = this.maxPixelIntensity, N = this.minPixelIntensity; this._set("radius", B.gaussianBlurRadiusPxToKernelDensityRadiusPt(J));
  5714. this._warnAboutDeprecatedGaussianBlurProp("blurRadius", "radius"); this._set("maxDensity", M * this._pixelIntensityToDensity); this._set("minDensity", N * this._pixelIntensityToDensity)
  5715. }
  5716. }, { key: "maxPixelIntensity", get: function () { return this.maxDensity / this._pixelIntensityToDensity }, set: function (J) { this._set("maxDensity", J * this._pixelIntensityToDensity); this._warnAboutDeprecatedGaussianBlurProp("maxPixelIntensity", "maxDensity") } }, {
  5717. key: "minPixelIntensity", get: function () { return this.minDensity / this._pixelIntensityToDensity },
  5718. set: function (J) { this._set("minDensity", J * this._pixelIntensityToDensity); this._warnAboutDeprecatedGaussianBlurProp("minPixelIntensity", "minDensity") }
  5719. }, { key: "_pixelIntensityToDensity", get: function () { return 24 / (B.MAGIC_KERNEL_DENSITY_RADIUS_INFLATION_FACTOR ** 2 * this.blurRadius ** 4) } }]); return D
  5720. }(f); b.__decorate([m.property({ type: h, json: { write: !1 } })], e.prototype, "authoringInfo", void 0); b.__decorate([m.property({ type: Number, json: { origins: { "portal-item": { write: !0 }, "web-map": { write: !0 } } } })], e.prototype, "blurRadius",
  5721. null); b.__decorate([m.property({ type: [v], json: { write: !0 } })], e.prototype, "colorStops", void 0); b.__decorate([m.property({ type: String, json: { write: !0 } })], e.prototype, "field", void 0); b.__decorate([m.property({ type: Number, json: { write: { overridePolicy: (A, D, F) => ({ enabled: null == F }) }, origins: { "web-scene": { write: !1 } } } })], e.prototype, "fieldOffset", void 0); b.__decorate([m.property({ type: y.HeatmapLegendOptions, json: { write: !0 } })], e.prototype, "legendOptions", void 0); b.__decorate([m.property({ type: Number, json: { write: !0 } })],
  5722. e.prototype, "maxDensity", void 0); b.__decorate([m.property({ type: Number, json: { origins: { "portal-item": { write: !0 }, "web-map": { write: !0 } } } })], e.prototype, "maxPixelIntensity", null); b.__decorate([m.property({ type: Number, json: { write: !0 } })], e.prototype, "minDensity", void 0); b.__decorate([m.property({ type: Number, json: { origins: { "portal-item": { write: !0 }, "web-map": { write: !0 } } } })], e.prototype, "minPixelIntensity", null); b.__decorate([m.property({ type: Number, cast: k.toPt, json: { write: !0 } })], e.prototype, "radius", void 0);
  5723. b.__decorate([m.property({ type: Number, range: { min: 0 }, json: { default: 0, write: !0 } })], e.prototype, "referenceScale", void 0); b.__decorate([t.enumeration({ heatmap: "heatmap" })], e.prototype, "type", void 0); b.__decorate([m.property({ type: String, json: { write: !0, origins: { "web-document": { write: !1 }, "portal-item": { write: !1 } } } })], e.prototype, "valueExpression", void 0); b.__decorate([m.property({ type: String })], e.prototype, "valueExpressionTitle", void 0); b.__decorate([m.property({ readOnly: !0 })], e.prototype, "_pixelIntensityToDensity",
  5724. null); return e = z = b.__decorate([n.subclass("esri.renderers.HeatmapRenderer")], e)
  5725. })
  5726. }, "esri/renderers/support/HeatmapColorStop": function () {
  5727. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k) {
  5728. var m; e = m = function (g) {
  5729. function p(t) {
  5730. t = g.call(this, t) ||
  5731. this; t.color = null; t.ratio = null; return t
  5732. } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ color: this.color, ratio: this.ratio }) }; return p
  5733. }(e.JSONSupport); b.__decorate([d.property({ type: c, json: { type: [q.Integer], default: null, write: !0 } })], e.prototype, "color", void 0); b.__decorate([d.property({ type: Number, json: { write: !0 } })], e.prototype, "ratio", void 0); return e = m = b.__decorate([k.subclass("esri.renderers.support.HeatmapColorStop")], e)
  5734. })
  5735. }, "esri/renderers/support/HeatmapLegendOptions": function () {
  5736. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  5737. function (a, b, c, e, d, l, r, q, k, m) {
  5738. a.HeatmapLegendOptions = function (g) { function p() { var t = g.apply(this, arguments) || this; t.minLabel = null; t.maxLabel = null; t.title = null; return t } b._inheritsLoose(p, g); return p }(e.ClonableMixin(d.JSONSupport)); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.HeatmapLegendOptions.prototype, "minLabel", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.HeatmapLegendOptions.prototype, "maxLabel", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })],
  5739. a.HeatmapLegendOptions.prototype, "title", void 0); a.HeatmapLegendOptions = c.__decorate([m.subclass("esri.renderers.support.HeatmapLegendOptions")], a.HeatmapLegendOptions); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5740. })
  5741. }, "esri/renderers/support/heatmapUtils": function () {
  5742. define(["exports", "../../core/mathUtils", "../../core/screenUtils", "../../chunks/vec4", "../../chunks/vec4f64"], function (a, b, c, e, d) {
  5743. function l(g, p, t, n) {
  5744. let { color: u, ratio: f } = p, { color: h, ratio: v } =
  5745. t; v === f && (1 === v ? f -= 1E-6 : v += 1E-6); p = b.clamp((n - f) / (v - f), 0, 1); e.lerp(g, u.toArray(), h.toArray(), p)
  5746. } function r(g, p, t, n, u) { g = new Uint32Array(g * g); p = "buffer" in p ? p : new Float64Array(p); t = "buffer" in t ? new Uint32Array(t.buffer) : new Uint32Array((new Uint8Array(t)).buffer); u = t.length / (u - n); for (let f = 0; f < p.length; f++)g[f] = t[b.clamp(Math.floor((p[f] - n) * u), 0, t.length - 1)]; return g.buffer } function q(g, p, t) { g = Math.sqrt(g ** 2 + p ** 2) / t; return 1 < g ? 0 : 3 / (Math.PI * t ** 2) * (1 - g ** 2) ** 2 } function k(g, p) {
  5747. return "function" === typeof g ?
  5748. g : g ? "string" === typeof p ? t => -1 * +t[g] : t => +t[g] + p : () => 1
  5749. } function m(g, p) { return null != g ? "string" === typeof p ? t => -1 * +t.readAttribute(g) : t => +t.readAttribute(g) + p : t => 1 } a.MAGIC_KERNEL_DENSITY_RADIUS_INFLATION_FACTOR = 2.4; a.calculateHeatmapIntensityInfo = function (g, p, t, n) {
  5750. const { radius: u, fieldOffset: f, field: h } = p; p = c.pt2px(u); const v = new Float64Array(t * n); let y = Number.NEGATIVE_INFINITY; const B = k(h, f); for (const { geometry: z, attributes: C } of g) {
  5751. g = Math.max(0, z.x - p); var w = Math.max(0, z.y - p); const A = Math.min(n, z.y + p),
  5752. D = Math.min(t, z.x + p), F = +B(C); for (; w < A; w++)for (let J = g; J < D; J++) { var x = w * t + J; const M = q(z.x - J, z.y - w, p); x = v[x] += M * F; x > y && (y = x) }
  5753. } return { matrix: v.buffer, max: y }
  5754. }; a.calculateHeatmapIntensityInfoReaders = function (g, p, t, n) {
  5755. const { radius: u, fieldOffset: f, field: h } = p; p = Math.round(c.pt2px(u)); const v = new Float64Array(t * n); let y = Number.NEGATIVE_INFINITY; const B = m(h, f), w = new Set; for (const A of g) for (g = A.getCursor(); g.next();) {
  5756. var x = g.getObjectId(); if (w.has(x)) continue; w.add(x); x = g.readLegacyPointGeometry(); if (-128 >
  5757. x.x || x.x >= t + 128 || -128 > x.y || x.y > n + 128) continue; const D = +B(g), F = Math.max(0, Math.round(x.x) - p); var z = Math.max(0, Math.round(x.y) - p); const J = Math.min(n, Math.round(x.y) + p), M = Math.min(t, Math.round(x.x) + p); for (; z < J; z++)for (let N = F; N < M; N++) { var C = z * t + N; const E = q(x.x - N, x.y - z, p); C = v[C] += E * D; C > y && (y = C) }
  5758. } return { matrix: v.buffer, max: y }
  5759. }; a.createHeatmapImageData = r; a.createValueFunction = k; a.createValueFunctionCursor = m; a.drawHeatmap = function (g, p, t, n, u, f) {
  5760. g.canvas.width = g.canvas.height = p; g.clearRect(0, 0, p, p); const h =
  5761. g.getImageData(0, 0, p, p); t && n && h.data.set(new Uint8ClampedArray(r(p, t, n, u, f))); g.putImageData(h, 0, 0)
  5762. }; a.evaluateDensityKernel = q; a.gaussianBlurRadiusPxToKernelDensityRadiusPt = function (g) { return c.px2pt(2.4 * g) }; a.generateGradient = function (g) {
  5763. const p = new Uint8ClampedArray(2048); g = g.filter(({ ratio: h }) => 0 <= h && 1 >= h).sort((h, v) => h.ratio - v.ratio).map(({ color: h, ratio: v }) => ({ color: h, ratio: Math.max(v, .001) })); if (1 > g.length) return p; let t = g[0], n = g[0], u = 1; const f = d.create(); for (let h = 0; 512 > h; h++) {
  5764. const v = (h + .5) /
  5765. 512; for (; v > n.ratio && u < g.length;)t = n, n = g[u++]; l(f, t, n, v); p.set(f, 4 * h)
  5766. } return p
  5767. }; a.kernelDensityRadiusPtToGaussianBlurRadiusPx = function (g) { return c.pt2px(g) / 2.4 }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5768. })
  5769. }, "esri/chunks/vec4f64": function () {
  5770. define(["exports"], function (a) {
  5771. function b() { return [0, 0, 0, 0] } function c(B) { return [B[0], B[1], B[2], B[3]] } function e(B, w, x, z) { return [B, w, x, z] } function d(B) {
  5772. const w = b(), x = Math.min(4, B.length); for (let z = 0; z < x; ++z)w[z] = B[z];
  5773. return w
  5774. } function l(B, w) { return new Float64Array(B, w, 4) } function r() { return b() } function q() { return [1, 1, 1, 1] } function k() { return [1, 0, 0, 0] } function m() { return [0, 1, 0, 0] } function g() { return [0, 0, 1, 0] } function p() { return [0, 0, 0, 1] } const t = b(), n = q(), u = k(), f = m(), h = g(), v = p(), y = Object.freeze(Object.defineProperty({ __proto__: null, create: b, clone: c, fromValues: e, fromArray: d, createView: l, zeros: r, ones: q, unitX: k, unitY: m, unitZ: g, unitW: p, ZEROS: t, ONES: n, UNIT_X: u, UNIT_Y: f, UNIT_Z: h, UNIT_W: v }, Symbol.toStringTag, { value: "Module" }));
  5775. a.ONES = n; a.UNIT_W = v; a.UNIT_X = u; a.UNIT_Y = f; a.UNIT_Z = h; a.ZEROS = t; a.clone = c; a.create = b; a.createView = l; a.fromArray = d; a.fromValues = e; a.ones = q; a.unitW = p; a.unitX = k; a.unitY = m; a.unitZ = g; a.vec4f64 = y; a.zeros = r
  5776. })
  5777. }, "esri/renderers/PieChartRenderer": function () {
  5778. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../symbols ../core/Clonable ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/AttributeColorInfo ./support/OthersCategory ./support/PieChartLegendOptions ../symbols/SimpleMarkerSymbol ../symbols/SimpleFillSymbol ../symbols/SimpleLineSymbol".split(" "),
  5779. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w) {
  5780. e = function (x) {
  5781. function z(A) { A = x.call(this, A) || this; A.attributes = null; A.backgroundFillSymbol = null; A.defaultColor = new c([0, 0, 0, 0]); A.defaultLabel = null; A.holePercentage = 0; A.othersCategory = new h.OthersCategory; A.legendOptions = null; A.outline = null; A.size = 12; A.type = "pie-chart"; return A } a._inheritsLoose(z, x); var C = z.prototype; C.getSymbol = function () { var A; return new y({ size: this.size ? this.size / 2 + ((null == (A = this.outline) ? void 0 : A.width) || 0) : 0 }) }; C.getSymbolAsync =
  5782. function () { var A = a._asyncToGenerator(function* () { return this.getSymbol() }); return function () { return A.apply(this, arguments) } }(); C.getSymbols = function () { return [this.getSymbol(), this.backgroundFillSymbol] }; C.getAttributeHash = function () { return this.visualVariables && this.visualVariables.reduce((A, D) => A + D.getAttributeHash(), "") }; C.getMeshHash = function () { return this.getSymbols().reduce((A, D) => A += JSON.stringify(D), "") }; C.collectRequiredFields = function () {
  5783. var A = a._asyncToGenerator(function* (D, F) {
  5784. yield this.collectVVRequiredFields(D,
  5785. F); for (const J of this.attributes) J.valueExpression && (yield t.collectArcadeFieldNames(D, F, J.valueExpression)), J.field && D.add(J.field)
  5786. }); return function (D, F) { return A.apply(this, arguments) }
  5787. }(); return z
  5788. }(u.VisualVariablesMixin(d.ClonableMixin(n))); b.__decorate([r.property({ type: [f], json: { write: !0 } })], e.prototype, "attributes", void 0); b.__decorate([r.property({ type: B, json: { default: null, write: !0 } })], e.prototype, "backgroundFillSymbol", void 0); b.__decorate([r.property({ type: c, json: { write: !0 } })], e.prototype,
  5789. "defaultColor", void 0); b.__decorate([r.property({ type: String, json: { write: !0 } })], e.prototype, "defaultLabel", void 0); b.__decorate([r.property({ type: Number, range: { min: 0, max: 1 }, json: { write: !0 } })], e.prototype, "holePercentage", void 0); b.__decorate([r.property({ type: h.OthersCategory, json: { write: !0 } })], e.prototype, "othersCategory", void 0); b.__decorate([r.property({ type: v.PieChartLegendOptions, json: { write: !0 } })], e.prototype, "legendOptions", void 0); b.__decorate([r.property({ type: w, json: { default: null, write: !0 } })],
  5790. e.prototype, "outline", void 0); b.__decorate([r.property({ type: Number, cast: l.toPt, json: { write: !0 } })], e.prototype, "size", void 0); b.__decorate([g.enumeration({ pieChart: "pie-chart" })], e.prototype, "type", void 0); return e = b.__decorate([p.subclass("esri.renderers.PieChartRenderer")], e)
  5791. })
  5792. }, "esri/renderers/support/OthersCategory": function () {
  5793. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  5794. function (a, b, c, e, d, l, r, q, k, m, g) {
  5795. a.OthersCategory = function (p) { function t() { var n = p.apply(this, arguments) || this; n.color = new e([0, 0, 0, 0]); n.label = null; n.threshold = 0; return n } b._inheritsLoose(t, p); return t }(d.ClonableMixin(l.JSONSupport)); c.__decorate([r.property({ type: e, json: { write: !0 } })], a.OthersCategory.prototype, "color", void 0); c.__decorate([r.property({ type: String, json: { write: !0 } })], a.OthersCategory.prototype, "label", void 0); c.__decorate([r.property({ type: Number, range: { min: 0, max: 1 }, json: { write: !0 } })],
  5796. a.OthersCategory.prototype, "threshold", void 0); a.OthersCategory = c.__decorate([g.subclass("esri.renderers.support.OthersCategory")], a.OthersCategory); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5797. })
  5798. }, "esri/renderers/support/PieChartLegendOptions": function () {
  5799. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  5800. function (a, b, c, e, d, l, r, q, k, m) { a.PieChartLegendOptions = function (g) { function p() { var t = g.apply(this, arguments) || this; t.title = null; return t } b._inheritsLoose(p, g); return p }(e.ClonableMixin(d.JSONSupport)); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.PieChartLegendOptions.prototype, "title", void 0); a.PieChartLegendOptions = c.__decorate([m.subclass("esri.renderers.support.PieChartLegendOptions")], a.PieChartLegendOptions); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  5801. },
  5802. "esri/renderers/SimpleRenderer": function () {
  5803. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  5804. var g; d = g = function (p) {
  5805. function t(u) {
  5806. u = p.call(this, u) || this; u.description = null; u.label = null; u.symbol = null;
  5807. u.type = "simple"; return u
  5808. } a._inheritsLoose(t, p); var n = t.prototype; n.collectRequiredFields = function () { var u = a._asyncToGenerator(function* (f, h) { yield Promise.all([this.collectSymbolFields(f, h), this.collectVVRequiredFields(f, h)]) }); return function (f, h) { return u.apply(this, arguments) } }(); n.collectSymbolFields = function () { var u = a._asyncToGenerator(function* (f, h) { yield Promise.all(this.getSymbols().map(v => v.collectRequiredFields(f, h))) }); return function (f, h) { return u.apply(this, arguments) } }(); n.getSymbol =
  5809. function (u, f) { return this.symbol }; n.getSymbolAsync = function () { var u = a._asyncToGenerator(function* (f, h) { return this.symbol }); return function (f, h) { return u.apply(this, arguments) } }(); n.getSymbols = function () { return this.symbol ? [this.symbol] : [] }; n.getAttributeHash = function () { return this.visualVariables && this.visualVariables.reduce((u, f) => u + f.getAttributeHash(), "") }; n.getMeshHash = function () { return this.getSymbols().reduce((u, f) => u += JSON.stringify(f), "") }; n.clone = function () {
  5810. return new g({
  5811. description: this.description,
  5812. label: this.label, symbol: this.symbol && this.symbol.clone(), visualVariables: c.clone(this.visualVariables), authoringInfo: this.authoringInfo && this.authoringInfo.clone()
  5813. })
  5814. }; a._createClass(t, [{ key: "arcadeRequired", get: function () { return this.arcadeRequiredForVisualVariables } }]); return t
  5815. }(k.VisualVariablesMixin(q)); b.__decorate([e.property({ type: String, json: { write: !0 } })], d.prototype, "description", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], d.prototype, "label", void 0); b.__decorate([e.property(m.rendererSymbolProperty)],
  5816. d.prototype, "symbol", void 0); b.__decorate([l.enumeration({ simple: "simple" })], d.prototype, "type", void 0); return d = g = b.__decorate([r.subclass("esri.renderers.SimpleRenderer")], d)
  5817. })
  5818. }, "esri/renderers/UniqueValueRenderer": function () {
  5819. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../symbols ../core/Error ../core/lang ../core/Logger ../core/maybe ../core/object ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/diffUtils ../core/accessorSupport/ensureType ../layers/support/fieldUtils ../portal/Portal ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties ./support/LegendOptions ./support/UniqueValueInfo ../support/arcadeOnDemand ../chunks/persistableUrlUtils ../symbols/support/styleUtils ../symbols/WebStyleSymbol".split(" "),
  5820. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F) {
  5821. var J; const M = l.getLogger("esri.renderers.UniqueValueRenderer"), N = f.ensureType(z); l = J = function (E) {
  5822. function G(K) {
  5823. K = E.call(this, K) || this; K._valueInfoMap = {}; K._isDefaultSymbolDerived = !1; K.type = "unique-value"; K.backgroundFillSymbol = null; K.field = null; K.field2 = null; K.field3 = null; K.valueExpression = null; K.valueExpressionTitle = null; K.legendOptions = null; K.defaultLabel = null; K.fieldDelimiter = null; K.portal = null; K.styleOrigin = null; K.diff = {
  5824. uniqueValueInfos(S,
  5825. fa) { if (S || fa) { if (!S || !fa) return { type: "complete", oldValue: S, newValue: fa }; var ha = !1, ba = { type: "collection", added: [], removed: [], changed: [], unchanged: [] }; for (let O = 0; O < fa.length; O++) { const na = S.find(ra => ra.value === fa[O].value); na ? u.diff(na, fa[O]) ? (ba.changed.push({ type: "complete", oldValue: na, newValue: fa[O] }), ha = !0) : ba.unchanged.push({ oldValue: na, newValue: fa[O] }) : (ba.added.push(fa[O]), ha = !0) } for (let O = 0; O < S.length; O++)fa.find(na => na.value === S[O].value) || (ba.removed.push(S[O]), ha = !0); return ha ? ba : void 0 } }
  5826. };
  5827. K._set("uniqueValueInfos", []); return K
  5828. } a._inheritsLoose(G, E); var H = G.prototype; H.castField = function (K) { return null == K || "function" === typeof K ? K : f.ensureString(K) }; H.writeField = function (K, S, fa, ha) { "string" === typeof K ? S[fa] = K : ha && ha.messages ? ha.messages.push(new e("property:unsupported", "UniqueValueRenderer.field set to a function cannot be written to JSON")) : M.error(".field: cannot write field to JSON since it's not a string value") }; H.readPortal = function (K, S, fa) { return fa.portal || v.getDefault() }; H.readStyleOrigin =
  5829. function (K, S, fa) { if (S.styleName) return Object.freeze({ styleName: S.styleName }); if (S.styleUrl) return K = A.fromJSON(S.styleUrl, fa), Object.freeze({ styleUrl: K }) }; H.writeStyleOrigin = function (K, S, fa, ha) { K.styleName ? S.styleName = K.styleName : K.styleUrl && (S.styleUrl = A.toJSON(K.styleUrl, ha)) }; H.addUniqueValueInfo = function (K, S) {
  5830. this.styleOrigin ? M.error("#addUniqueValueInfo()", "Cannot modify unique value infos of a UniqueValueRenderer created from a web style") : (K = "object" === typeof K ? N(K) : new z({ value: K, symbol: c.ensureType(S) }),
  5831. this.uniqueValueInfos.push(K), this._valueInfoMap[K.value] = K)
  5832. }; H.removeUniqueValueInfo = function (K) { if (this.styleOrigin) M.error("#removeUniqueValueInfo()", "Cannot modify unique value infos of a UniqueValueRenderer created from a web style"); else for (let S = 0; S < this.uniqueValueInfos.length; S++)if (this.uniqueValueInfos[S].value === K + "") { delete this._valueInfoMap[K]; this.uniqueValueInfos.splice(S, 1); break } }; H.getUniqueValueInfo = function () {
  5833. var K = a._asyncToGenerator(function* (S, fa) {
  5834. let ha = fa; this.valueExpression &&
  5835. (r.isNone(fa) || r.isNone(fa.arcade)) && (ha = { ...ha, arcade: yield C.loadArcade() }); return this._getUniqueValueInfo(S, ha)
  5836. }); return function (S, fa) { return K.apply(this, arguments) }
  5837. }(); H.getSymbol = function (K, S) { if (this.valueExpression && (r.isNone(S) || r.isNone(S.arcade))) M.error("#getSymbol()", "Please use getSymbolAsync if valueExpression is used"); else return (K = this._getUniqueValueInfo(K, S)) && K.symbol || this.defaultSymbol }; H.getSymbolAsync = function () {
  5838. var K = a._asyncToGenerator(function* (S, fa) {
  5839. if (this.valueExpression &&
  5840. (r.isNone(fa) || r.isNone(fa.arcade))) { const ha = yield C.loadArcade(), { arcadeUtils: ba } = ha; ba.hasGeometryOperations(this.valueExpression) && (yield ba.enableGeometryOperations()); fa = { ...fa, arcade: ha } } return (S = this._getUniqueValueInfo(S, fa)) && S.symbol || this.defaultSymbol
  5841. }); return function (S, fa) { return K.apply(this, arguments) }
  5842. }(); H.getSymbols = function () { const K = []; for (const S of this.uniqueValueInfos) S.symbol && K.push(S.symbol); this.defaultSymbol && K.push(this.defaultSymbol); return K }; H.getAttributeHash = function () {
  5843. return this.visualVariables &&
  5844. this.visualVariables.reduce((K, S) => K + S.getAttributeHash(), "")
  5845. }; H.getMeshHash = function () { const K = JSON.stringify(this.backgroundFillSymbol), S = JSON.stringify(this.defaultSymbol), fa = this.uniqueValueInfos.reduce((ha, ba) => ha + ba.getMeshHash(), ""); return `${K}.${S}.${fa}.${`${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}`}.${this.valueExpression}` }; H.clone = function () {
  5846. const K = new J({
  5847. field: this.field, field2: this.field2, field3: this.field3, defaultLabel: this.defaultLabel, defaultSymbol: d.clone(this.defaultSymbol),
  5848. valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle, fieldDelimiter: this.fieldDelimiter, visualVariables: d.clone(this.visualVariables), legendOptions: d.clone(this.legendOptions), authoringInfo: this.authoringInfo && this.authoringInfo.clone(), backgroundFillSymbol: d.clone(this.backgroundFillSymbol)
  5849. }); this._isDefaultSymbolDerived && (K._isDefaultSymbolDerived = !0); K._set("portal", this.portal); const S = d.clone(this.uniqueValueInfos); this.styleOrigin && (K._set("styleOrigin", Object.freeze(d.clone(this.styleOrigin))),
  5850. Object.freeze(S)); K._set("uniqueValueInfos", S); K._updateValueInfoMap(); return K
  5851. }; H.collectRequiredFields = function () { var K = a._asyncToGenerator(function* (S, fa) { S = [this.collectVVRequiredFields(S, fa), this.collectSymbolFields(S, fa)]; yield Promise.all(S) }); return function (S, fa) { return K.apply(this, arguments) } }(); H.collectSymbolFields = function () {
  5852. var K = a._asyncToGenerator(function* (S, fa) {
  5853. const ha = [...this.getSymbols().map(ba => ba.collectRequiredFields(S, fa)), h.collectArcadeFieldNames(S, fa, this.valueExpression)];
  5854. h.collectField(S, fa, this.field); h.collectField(S, fa, this.field2); h.collectField(S, fa, this.field3); yield Promise.all(ha)
  5855. }); return function (S, fa) { return K.apply(this, arguments) }
  5856. }(); H.populateFromStyle = function () {
  5857. return D.fetchStyle(this.styleOrigin, { portal: this.portal }).then(K => {
  5858. const S = []; this._valueInfoMap = {}; K && K.data && Array.isArray(K.data.items) && K.data.items.forEach(fa => {
  5859. var ha = new F({ styleUrl: K.styleUrl, styleName: K.styleName, portal: this.portal, name: fa.name }); this.defaultSymbol || fa.name !== K.data.defaultItem ||
  5860. (this.defaultSymbol = ha, this._isDefaultSymbolDerived = !0); ha = new z({ value: fa.name, symbol: ha }); S.push(ha); this._valueInfoMap[fa.name] = ha
  5861. }); this._set("uniqueValueInfos", Object.freeze(S)); !this.defaultSymbol && this.uniqueValueInfos.length && (this.defaultSymbol = this.uniqueValueInfos[0].symbol, this._isDefaultSymbolDerived = !0); return this
  5862. })
  5863. }; H._updateValueInfoMap = function () { this._valueInfoMap = {}; this.uniqueValueInfos.forEach(K => this._valueInfoMap[K.value + ""] = K) }; H._getUniqueValueInfo = function (K, S) {
  5864. return this.valueExpression ?
  5865. this._getUnqiueValueInfoForExpression(K, S) : this._getUnqiueValueInfoForFields(K)
  5866. }; H._getUnqiueValueInfoForExpression = function (K, S) {
  5867. const { viewingMode: fa, scale: ha, spatialReference: ba, arcade: O } = r.unwrapOr(S, {}); var na = this._cache.compiledFunc; S = r.unwrap(O).arcadeUtils; na || (na = S.createSyntaxTree(this.valueExpression), na = S.createFunction(na), this._cache.compiledFunc = na); K = S.executeFunction(na, S.createExecContext(K, S.getViewInfo({ viewingMode: fa, scale: ha, spatialReference: ba }))); return this._valueInfoMap[K +
  5868. ""]
  5869. }; H._getUnqiueValueInfoForFields = function (K) { const S = this.field, fa = K.attributes; if ("function" !== typeof S && this.field2) { K = this.field2; var ha = this.field3; const ba = []; S && ba.push(fa[S]); K && ba.push(fa[K]); ha && ba.push(fa[ha]); ha = ba.join(this.fieldDelimiter || "") } else "function" === typeof S ? ha = S(K) : S && (ha = fa[S]); return this._valueInfoMap[ha + ""] }; G.fromPortalStyle = function (K, S) {
  5870. const fa = new J(S && S.properties); fa._set("styleOrigin", Object.freeze({ styleName: K })); fa._set("portal", S && S.portal || v.getDefault());
  5871. S = fa.populateFromStyle(); S.catch(ha => { M.error(`#fromPortalStyle('${K}'[, ...])`, "Failed to create unique value renderer from style name", ha) }); return S
  5872. }; G.fromStyleUrl = function (K, S) { S = new J(S && S.properties); S._set("styleOrigin", Object.freeze({ styleUrl: K })); S = S.populateFromStyle(); S.catch(fa => { M.error(`#fromStyleUrl('${K}'[, ...])`, "Failed to create unique value renderer from style URL", fa) }); return S }; a._createClass(G, [{ key: "_cache", get: function () { return { compiledFunc: null } } }, {
  5873. key: "defaultSymbol",
  5874. set: function (K) { this._isDefaultSymbolDerived = !1; this._set("defaultSymbol", K) }
  5875. }, { key: "uniqueValueInfos", set: function (K) { this.styleOrigin ? M.error("#uniqueValueInfos\x3d", "Cannot modify unique value infos of a UniqueValueRenderer created from a web style") : (this._set("uniqueValueInfos", K), this._updateValueInfoMap()) } }, { key: "arcadeRequired", get: function () { return this.arcadeRequiredForVisualVariables || !!this.valueExpression } }]); return G
  5876. }(B.VisualVariablesMixin(y)); b.__decorate([k.property({ readOnly: !0 })],
  5877. l.prototype, "_cache", null); b.__decorate([g.enumeration({ uniqueValue: "unique-value" })], l.prototype, "type", void 0); b.__decorate([k.property(w.rendererBackgroundFillSymbolProperty)], l.prototype, "backgroundFillSymbol", void 0); b.__decorate([k.property({ json: { type: String, read: { source: "field1" }, write: { target: "field1" } } })], l.prototype, "field", void 0); b.__decorate([m.cast("field")], l.prototype, "castField", null); b.__decorate([n.writer("field")], l.prototype, "writeField", null); b.__decorate([k.property({
  5878. type: String,
  5879. json: { write: !0 }
  5880. })], l.prototype, "field2", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "field3", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "valueExpression", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "valueExpressionTitle", void 0); b.__decorate([k.property({ type: x.LegendOptions, json: { write: !0 } })], l.prototype, "legendOptions", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "defaultLabel",
  5881. void 0); b.__decorate([k.property(q.deepMerge({ ...w.rendererSymbolProperty }, { json: { write: { overridePolicy() { return { enabled: !this._isDefaultSymbolDerived } } }, origins: { "web-scene": { write: { overridePolicy() { return { enabled: !this._isDefaultSymbolDerived } } } } } } }))], l.prototype, "defaultSymbol", null); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "fieldDelimiter", void 0); b.__decorate([k.property({ type: v, readOnly: !0 })], l.prototype, "portal", void 0); b.__decorate([p.reader("portal", ["styleName"])],
  5882. l.prototype, "readPortal", null); b.__decorate([k.property({ readOnly: !0, json: { write: { enabled: !1, overridePolicy: () => ({ enabled: !0 }) } } })], l.prototype, "styleOrigin", void 0); b.__decorate([p.reader("styleOrigin", ["styleName", "styleUrl"])], l.prototype, "readStyleOrigin", null); b.__decorate([n.writer("styleOrigin", { styleName: { type: String }, styleUrl: { type: String } })], l.prototype, "writeStyleOrigin", null); b.__decorate([k.property({ type: [z], json: { write: { overridePolicy() { return this.styleOrigin ? { enabled: !1 } : { enabled: !0 } } } } })],
  5883. l.prototype, "uniqueValueInfos", null); return l = J = b.__decorate([t.subclass("esri.renderers.UniqueValueRenderer")], l)
  5884. })
  5885. }, "esri/core/accessorSupport/diffUtils": function () {
  5886. define(["exports", "../Accessor", "../Collection", "../maybe", "./utils"], function (a, b, c, e, d) {
  5887. function l(n) { return n instanceof c ? Object.keys(n.items) : n instanceof b ? d.getProperties(n).keys() : n ? Object.keys(n) : [] } function r(n, u) { return n instanceof c ? n.items[u] : n[u] } function q(n, u) {
  5888. return Array.isArray(n) && Array.isArray(u) ? n.length !== u.length :
  5889. !1
  5890. } function k(n) { return n ? n.declaredClass : null } function m(n, u) {
  5891. const f = n.diff; if (f && "function" === typeof f) return f(n, u); const h = l(n), v = l(u); if (0 !== h.length || 0 !== v.length) {
  5892. if (!h.length || !v.length || q(n, u)) return { type: "complete", oldValue: n, newValue: u }; var y = v.filter(x => !h.includes(x)), B = h.filter(x => !v.includes(x)); B = h.filter(x => v.includes(x) && r(n, x) !== r(u, x)).concat(y, B).sort(); if ((y = k(n)) && t.includes(y) && B.length) return { type: "complete", oldValue: n, newValue: u }; var w; y = n instanceof b && u instanceof b; for (const x of B) {
  5893. B =
  5894. r(n, x); const z = r(u, x); if ((y || "function" !== typeof B && "function" !== typeof z) && B !== z && (null != B || null != z)) { if (f && f[x] && "function" === typeof f[x]) B = f[x](B, z); else if (B instanceof Date && z instanceof Date) { if (B.getTime() === z.getTime()) continue; B = { type: "complete", oldValue: B, newValue: z } } else B = "object" === typeof B && "object" === typeof z && k(B) === k(z) ? m(B, z) : { type: "complete", oldValue: B, newValue: z }; e.isSome(B) && (e.isSome(w) ? w.diff[x] = B : w = { type: "partial", diff: { [x]: B } }) }
  5895. } return w
  5896. }
  5897. } function g(n, u) {
  5898. if (e.isNone(n)) return !1;
  5899. u = u.split("."); for (const f of u) { if ("complete" === n.type) break; if ("partial" === n.type) { if (n = n.diff[f], !n) return !1 } else return !1 } return !0
  5900. } function p(n) { if (e.isNone(n)) return !0; switch (n.type) { case "complete": return !1; case "collection": for (const u of n.added) if (!p(u)) return !1; for (const u of n.removed) if (!p(u)) return !1; for (const u of n.changed) if (!p(u)) return !1; return !0; case "partial": for (const u in n.diff) if (!p(n.diff[u])) return !1; return !0 } } const t = ["esri.Color", "esri.portal.Portal", "esri.symbols.support.Symbol3DAnchorPosition2D",
  5901. "esri.symbols.support.Symbol3DAnchorPosition3D"]; a.diff = function (n, u) { if (!("function" === typeof n || "function" === typeof u || e.isNone(n) && e.isNone(u))) return e.isNone(n) || e.isNone(u) || "object" === typeof n && "object" === typeof u && k(n) !== k(u) ? { type: "complete", oldValue: n, newValue: u } : m(n, u) }; a.hasDiff = g; a.hasDiffAny = function (n, u) { for (const f of u) if (g(n, f)) return !0; return !1 }; a.isEmpty = p; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5902. })
  5903. }, "esri/renderers/support/UniqueValueInfo": function () {
  5904. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),
  5905. function (a, b, c, e, d, l, r, q, k) {
  5906. var m; c = m = function (g) {
  5907. function p(n) { n = g.call(this, n) || this; n.description = null; n.label = null; n.symbol = null; n.value = null; return n } a._inheritsLoose(p, g); var t = p.prototype; t.castValue = function (n) { return null == n || "string" === typeof n || "number" === typeof n ? n : `${n}` }; t.clone = function () { return new m({ value: this.value, description: this.description, label: this.label, symbol: this.symbol ? this.symbol.clone() : null }) }; t.getMeshHash = function () {
  5908. const n = JSON.stringify(this.symbol && this.symbol.toJSON());
  5909. return `${this.value}.${n}`
  5910. }; return p
  5911. }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "description", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "label", void 0); b.__decorate([e.property(k.rendererSymbolProperty)], c.prototype, "symbol", void 0); b.__decorate([e.property({ json: { type: String, write: { writer: (g, p) => { p.value = null == g ? void 0 : g.toString() } } } })], c.prototype, "value", void 0); b.__decorate([r.cast("value")], c.prototype, "castValue",
  5912. null); return c = m = b.__decorate([q.subclass("esri.renderers.support.UniqueValueInfo")], c)
  5913. })
  5914. }, "esri/symbols/support/styleUtils": function () {
  5915. define("exports ../../chunks/_rollupPluginBabelHelpers ../../request ../../core/Error ../../core/maybe ../../core/promiseUtils ../../core/urlUtils ../../portal/Portal ../../portal/PortalQueryParams ../../support/featureFlags".split(" "), function (a, b, c, e, d, l, r, q, k, m) {
  5916. function g(h, v) { return p.apply(this, arguments) } function p() {
  5917. p = b._asyncToGenerator(function* (h, v) {
  5918. try {
  5919. return {
  5920. data: (yield u(h,
  5921. v)).data, baseUrl: r.removeFile(h), styleUrl: h
  5922. }
  5923. } catch (y) { return l.throwIfAbortError(y), null }
  5924. }); return p.apply(this, arguments)
  5925. } function t(h, v, y) { v = d.isSome(v.portal) ? v.portal : q.getDefault(); let B; const w = `${v.url} - ${v.user && v.user.username} - ${h}`; f[w] || (f[w] = n(h, v, y).then(x => { B = x; return x.fetchData() }).then(x => ({ data: x, baseUrl: B.itemUrl, styleName: h }))); return f[w] } function n(h, v, y) {
  5926. return v.load(y).then(() => {
  5927. const B = new k({ disableExtraQuery: !0, query: `owner:${"esri_en"} AND type:${"Style"} AND typekeywords:"${h}"` });
  5928. return v.queryItems(B, y)
  5929. }).then(({ results: B }) => { let w = null; const x = h.toLowerCase(); if (B && Array.isArray(B)) for (const z of B) if (z.typeKeywords.some(C => C.toLowerCase() === x) && "Style" === z.type && "esri_en" === z.owner) { w = z; break } if (!w) throw new e("symbolstyleutils:style-not-found", `The style '${h}' could not be found`, { styleName: h }); return w.load(y) })
  5930. } function u(h, v) { v = { responseType: "json", query: { f: "json" }, ...v }; return c(r.normalize(h), v) } const f = {}; a.Style2DUrlTemplate = "https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f\x3djson";
  5931. a.fetchStyle = function (h, v, y) { return h.styleUrl ? g(h.styleUrl, y) : h.styleName ? t(h.styleName, v, y) : Promise.reject(new e("symbolstyleutils:style-url-and-name-missing", "Either styleUrl or styleName is required to resolve a style")) }; a.makeCIMSymbolRef = function (h) { return null === h || "CIMSymbolReference" === h.type ? h : { type: "CIMSymbolReference", symbol: h } }; a.requestJSON = u; a.styleNameFromItem = function (h) { for (const v of h.typeKeywords) if (/^Esri.*Style$/.test(v) && "Esri Style" !== v) return v }; a.symbolUrlFromStyleItem =
  5932. function (h, v) { if ("cimRef" === v) return h.cimRef; if (h.formatInfos && !m.enableWebStyleForceWOSR()) for (const y of h.formatInfos) if ("gltf" === y.type) return y.href; return h.webRef }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5933. })
  5934. }, "esri/support/featureFlags": function () {
  5935. define(["exports", "../core/has"], function (a, b) {
  5936. a.enableDirect3DObjectFeatureLayerDisplay = () => !!b("enable-feature:direct-3d-object-feature-layer-display"); a.enableWebStyleForceWOSR = () => !!b("enable-feature:force-wosr");
  5937. Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5938. })
  5939. }, "esri/renderers/support/jsonUtils": function () {
  5940. define(["exports", "../../core/Warning", "../../core/accessorSupport/extensions/serializableProperty/reader", "./types"], function (a, b, c, e) {
  5941. function d(r, q, k) {
  5942. return r ? r && (r.styleName || r.styleUrl) && "uniqueValue" !== r.type ? (k && k.messages && k.messages.push(new b("renderer:unsupported", "Only UniqueValueRenderer can be referenced from a web style, but found '" + r.type + "'",
  5943. { definition: r, context: k })), null) : l(r, q, k) : null
  5944. } const l = c.createTypeReader({ types: e.rendererTypes }); a.fromJSON = function (r, q) { return d(r, null, q) }; a.read = d; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5945. })
  5946. }, "esri/renderers/support/types": function () {
  5947. define("exports ../ClassBreaksRenderer ../DictionaryRenderer ../DotDensityRenderer ../HeatmapRenderer ../PieChartRenderer ../Renderer ../SimpleRenderer ../UniqueValueRenderer".split(" "), function (a, b, c, e, d, l, r, q, k) {
  5948. const m =
  5949. { key: "type", base: r, typeMap: { simple: q, "unique-value": k, "class-breaks": b, heatmap: d }, errorContext: "renderer" }; a.rendererTypes = { key: "type", base: r, typeMap: { heatmap: d, simple: q, "unique-value": k, "class-breaks": b, "dot-density": e, dictionary: c, "pie-chart": l }, errorContext: "renderer" }; a.webSceneRendererTypes = m; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5950. })
  5951. }, "esri/core/MultiOriginJSONSupport": function () {
  5952. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./ReadOnlyMultiOriginJSONSupport ./accessorSupport/PropertyOrigin ./accessorSupport/utils ./accessorSupport/write ./accessorSupport/decorators/subclass".split(" "),
  5953. function (a, b, c, e, d, l, r, q, k) {
  5954. const m = p => {
  5955. p = function (t) {
  5956. function n(...f) { return t.call(this, ...f) || this } b._inheritsLoose(n, t); var u = n.prototype; u.clear = function (f, h = "user") { return r.getProperties(this).store.delete(f, l.nameToId(h)) }; u.write = function (f = {}, h) { f = f || {}; q.write(this, f, h); return f }; u.setAtOrigin = function (f, h, v) { r.getProperties(this).setAtOrigin(f, h, l.nameToId(v)) }; u.removeOrigin = function (f) {
  5957. const h = r.getProperties(this).store; f = l.nameToId(f); const v = h.keys(f); for (const y of v) h.originOf(y) ===
  5958. f && h.set(y, h.get(y, f), l.OriginId.USER)
  5959. }; u.updateOrigin = function (f, h) { const v = r.getProperties(this).store; h = l.nameToId(h); const y = this.get(f); for (let B = h + 1; B < l.OriginIdNum; ++B)v.delete(f, B); v.set(f, y, h) }; u.toJSON = function (f) { return this.write({}, f) }; return n
  5960. }(p); p = c.__decorate([k.subclass("esri.core.WriteableMultiOriginJSONSupport")], p); p.prototype.toJSON.isDefaultToJSON = !0; return p
  5961. }, g = p => {
  5962. p = function (t) { function n(...u) { return t.call(this, ...u) || this } b._inheritsLoose(n, t); return n }(m(d.ReadOnlyMultiOriginJSONMixin(p)));
  5963. return p = c.__decorate([k.subclass("esri.core.MultiOriginJSONSupport")], p)
  5964. }; a.MultiOriginJSONSupport = function (p) { function t() { return p.apply(this, arguments) || this } b._inheritsLoose(t, p); return t }(g(e)); a.MultiOriginJSONSupport = c.__decorate([k.subclass("esri.core.MultiOriginJSONSupport")], a.MultiOriginJSONSupport); a.MultiOriginJSONMixin = g; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5965. })
  5966. }, "esri/core/ReadOnlyMultiOriginJSONSupport": function () {
  5967. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./accessorSupport/defaultsStoreUtils ./accessorSupport/MultiOriginStore ./accessorSupport/PropertyOrigin ./accessorSupport/read ./accessorSupport/utils ./accessorSupport/decorators/subclass".split(" "),
  5968. function (a, b, c, e, d, l, r, q, k, m, g) {
  5969. const p = t => {
  5970. t = function (n) {
  5971. function u(...h) { h = n.call(this, ...h) || this; const v = d.assumeNonNull(m.getProperties(b._assertThisInitialized(h))), y = v.store, B = new r; v.store = B; l.setupConstructedDefaults(v, y, B); return h } b._inheritsLoose(u, n); var f = u.prototype; f.read = function (h, v) { k.read(this, h, v) }; f.getAtOrigin = function (h, v) { const y = m.getProperties(this).store, B = q.nameToId(v); if ("string" === typeof h) return y.get(h, B); const w = {}; h.forEach(x => { w[x] = y.get(x, B) }); return w }; f.originOf =
  5972. function (h) { return q.idToName(this.originIdOf(h)) }; f.originIdOf = function (h) { return m.getProperties(this).store.originOf(h) }; f.revert = function (h, v) { const y = m.getProperties(this).store, B = q.nameToId(v), w = m.getProperties(this); ("string" === typeof h ? "*" === h ? y.keys(B) : [h] : h).forEach(x => { w.invalidate(x); y.revert(x, B); w.commit(x) }) }; return u
  5973. }(t); return t = c.__decorate([g.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")], t)
  5974. }; a.ReadOnlyMultiOriginJSONSupport = function (t) {
  5975. function n() {
  5976. return t.apply(this, arguments) ||
  5977. this
  5978. } b._inheritsLoose(n, t); return n
  5979. }(p(e)); a.ReadOnlyMultiOriginJSONSupport = c.__decorate([g.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")], a.ReadOnlyMultiOriginJSONSupport); a.ReadOnlyMultiOriginJSONMixin = p; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  5980. })
  5981. }, "esri/core/accessorSupport/MultiOriginStore": function () {
  5982. define(["../lang", "../maybe", "./PropertyOrigin"], function (a, b, c) {
  5983. return function () {
  5984. function e() {
  5985. this._propertyOriginMap = new Map; this._originStores =
  5986. Array(c.OriginIdNum); this._values = new Map; this.multipleOriginsSupported = !0
  5987. } var d = e.prototype; d.clone = function (l) { const r = new e; var q = this._originStores[c.OriginId.DEFAULTS]; q && q.forEach((k, m) => { r.set(m, a.clone(k), c.OriginId.DEFAULTS) }); for (let k = c.OriginId.SERVICE; k < c.OriginIdNum; k++)(q = this._originStores[k]) && q.forEach((m, g) => { l && l.has(g) || r.set(g, a.clone(m), k) }); return r }; d.get = function (l, r) { return (r = void 0 === r ? this._values : this._originStores[r]) ? r.get(l) : void 0 }; d.keys = function (l) {
  5988. return (l = null ==
  5989. l ? this._values : this._originStores[l]) ? [...l.keys()] : []
  5990. }; d.set = function (l, r, q = c.OriginId.USER) { var k = this._originStores[q]; k || (k = new Map, this._originStores[q] = k); k.set(l, r); return !this._values.has(l) || b.assumeNonNull(this._propertyOriginMap.get(l)) <= q ? (k = this._values.get(l), this._values.set(l, r), this._propertyOriginMap.set(l, q), k !== r) : !1 }; d.delete = function (l, r = c.OriginId.USER) {
  5991. var q = this._originStores[r]; if (q) {
  5992. var k = q.get(l); q.delete(l); if (this._values.has(l) && this._propertyOriginMap.get(l) === r) for (this._values.delete(l),
  5993. --r; 0 <= r; r--)if ((q = this._originStores[r]) && q.has(l)) { this._values.set(l, q.get(l)); this._propertyOriginMap.set(l, r); break } return k
  5994. }
  5995. }; d.has = function (l, r) { return (r = void 0 === r ? this._values : this._originStores[r]) ? r.has(l) : !1 }; d.revert = function (l, r) { for (; 0 < r && !this.has(l, r);)--r; var q = this._originStores[r]; q = q && q.get(l); const k = this._values.get(l); this._values.set(l, q); this._propertyOriginMap.set(l, r); return k !== q }; d.originOf = function (l) { return this._propertyOriginMap.get(l) || c.OriginId.DEFAULTS }; d.forEach =
  5996. function (l) { this._values.forEach(l) }; return e
  5997. }()
  5998. })
  5999. }, "esri/core/sql": function () {
  6000. define(["require", "exports", "../chunks/_rollupPluginBabelHelpers", "./maybe"], function (a, b, c, e) {
  6001. function d() { d = c._asyncToGenerator(function* (l, r) { const { WhereClause: q } = yield new Promise((k, m) => a(["./sql/WhereClause"], k, m)); return q.create(l, r) }); return d.apply(this, arguments) } b.parseWhereClause = function (l, r) { return d.apply(this, arguments) }; b.sqlAnd = function (l, r) { return e.isSome(l) ? e.isSome(r) ? `(${l}) AND (${r})` : l : r }; Object.defineProperties(b,
  6002. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6003. })
  6004. }, "esri/form/FormTemplate": function () {
  6005. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./ExpressionInfo ./elements/GroupElement ./support/elements".split(" "), function (a, b, c, e, d,
  6006. l, r, q, k, m, g, p) {
  6007. var t; const n = p.buildTypeMaps(g); c = t = function (u) {
  6008. function f(v) { v = u.call(this, v) || this; v.description = null; v.elements = null; v.expressionInfos = null; v.title = null; return v } a._inheritsLoose(f, u); var h = f.prototype; h.castElements = function (v) { return p.ensureType(v, n) }; h.readElements = function (v, y) { return p.fromJSON(y.formElements, n) }; h.writeElements = function (v, y) { y.formElements = p.toJSON(v, n) }; h.clone = function () {
  6009. return new t({
  6010. description: this.description, expressionInfos: e.clone(this.expressionInfos),
  6011. elements: e.clone(this.elements), title: this.title
  6012. })
  6013. }; return f
  6014. }(c.JSONSupport); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype, "description", void 0); b.__decorate([d.property({ json: { write: !0 } })], c.prototype, "elements", void 0); b.__decorate([l.cast("elements")], c.prototype, "castElements", null); b.__decorate([r.reader("elements", ["formElements"])], c.prototype, "readElements", null); b.__decorate([k.writer("elements")], c.prototype, "writeElements", null); b.__decorate([d.property({
  6015. type: [m],
  6016. json: { write: !0 }
  6017. })], c.prototype, "expressionInfos", void 0); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype, "title", void 0); return c = t = b.__decorate([q.subclass("esri.form.FormTemplate")], c)
  6018. })
  6019. }, "esri/form/ExpressionInfo": function () {
  6020. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "), function (a,
  6021. b, c, e, d, l, r, q) {
  6022. var k; c = k = function (m) { function g(p) { p = m.call(this, p) || this; p.expression = null; p.name = null; p.returnType = "boolean"; p.title = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ name: this.name, title: this.title, expression: this.expression, returnType: this.returnType }) }; return g }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "expression", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "name", void 0);
  6023. b.__decorate([e.property({ type: ["boolean", "date", "number", "string"], json: { write: !0 } })], c.prototype, "returnType", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "title", void 0); return c = k = b.__decorate([q.subclass("esri.form.ExpressionInfo")], c)
  6024. })
  6025. }, "esri/form/elements/GroupElement": function () {
  6026. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./Element ../support/elements".split(" "),
  6027. function (a, b, c, e, d, l, r, q, k, m) {
  6028. var g; k = g = function (t) {
  6029. function n(f) { f = t.call(this, f) || this; f.elements = null; f.initialState = "expanded"; f.type = "group"; return f } a._inheritsLoose(n, t); var u = n.prototype; u.castElements = function (f) { return m.ensureType(f, p, !1) }; u.readElements = function (f, h) { return m.fromJSON(h.formElements, p, !1) }; u.writeElements = function (f, h) { h.formElements = m.toJSON(f, p, !1) }; u.clone = function () {
  6030. return new g({
  6031. description: this.description, elements: c.clone(this.elements), initialState: this.initialState,
  6032. label: this.label, visibilityExpression: this.visibilityExpression
  6033. })
  6034. }; return n
  6035. }(k); b.__decorate([e.property({ json: { write: !0 } })], k.prototype, "elements", void 0); b.__decorate([d.cast("elements")], k.prototype, "castElements", null); b.__decorate([l.reader("elements", ["formElements"])], k.prototype, "readElements", null); b.__decorate([q.writer("elements")], k.prototype, "writeElements", null); b.__decorate([e.property({ type: ["collapsed", "expanded"], json: { write: !0 } })], k.prototype, "initialState", void 0); b.__decorate([e.property({
  6036. type: String,
  6037. json: { read: !1, write: !0 }
  6038. })], k.prototype, "type", void 0); k = g = b.__decorate([r.subclass("esri.form.elements.GroupElement")], k); const p = m.buildTypeMaps(k); return k
  6039. })
  6040. }, "esri/form/elements/Element": function () {
  6041. define(["../../chunks/_rollupPluginBabelHelpers", "../../chunks/tslib.es6", "../../core/JSONSupport", "../../core/accessorSupport/decorators/property", "../../core/accessorSupport/decorators/subclass"], function (a, b, c, e, d) {
  6042. c = function (l) {
  6043. function r(q) {
  6044. q = l.call(this, q) || this; q.description = null; q.label = null;
  6045. q.type = null; q.visibilityExpression = null; return q
  6046. } a._inheritsLoose(r, l); return r
  6047. }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "description", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "label", void 0); b.__decorate([e.property()], c.prototype, "type", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "visibilityExpression", void 0); return c = b.__decorate([d.subclass("esri.form.elements.Element")], c)
  6048. })
  6049. }, "esri/form/support/elements": function () {
  6050. define("exports ../../core/accessorSupport/ensureType ../elements/AttachmentElement ../elements/Element ../elements/FieldElement ../elements/RelationshipElement".split(" "),
  6051. function (a, b, c, e, d, l) {
  6052. a.buildTypeMaps = function (r) { return { typesWithGroup: { base: e, key: "type", typeMap: { attachment: c, field: d, group: r, relationship: l } }, typesWithoutGroup: { base: e, key: "type", typeMap: { attachment: c, field: d, relationship: l } } } }; a.ensureType = function (r, q, k = !0) { return r ? r.map(m => b.ensureOneOfType(k ? q.typesWithGroup : q.typesWithoutGroup, m)) : null }; a.fromJSON = function (r, q, k = !0) { if (!r) return null; const m = k ? q.typesWithGroup.typeMap : q.typesWithoutGroup.typeMap; return r.filter(g => m[g.type]).map(g => m[g.type].fromJSON(g)) };
  6053. a.toJSON = function (r, q, k = !0) { if (!r) return null; const m = k ? q.typesWithGroup.typeMap : q.typesWithoutGroup.typeMap; return r.filter(g => m[g.type]).map(g => g.toJSON()) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6054. })
  6055. }, "esri/form/elements/AttachmentElement": function () {
  6056. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Element ./inputs/AttachmentInput".split(" "),
  6057. function (a, b, c, e, d, l, r, q, k) {
  6058. var m; e = m = function (g) { function p(t) { t = g.call(this, t) || this; t.attachmentKeyword = null; t.editable = !0; t.input = null; t.type = "attachment"; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ attachmentKeyword: this.attachmentKeyword, description: this.description, editable: this.editable, input: this.input, label: this.label, visibilityExpression: this.visibilityExpression }) }; return p }(q); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "attachmentKeyword",
  6059. void 0); b.__decorate([c.property({ type: Boolean, json: { write: !0 } })], e.prototype, "editable", void 0); b.__decorate([c.property({ type: k, json: { read: { source: "inputType" }, write: { target: "inputType" } } })], e.prototype, "input", void 0); b.__decorate([c.property({ type: ["attachment"], json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = m = b.__decorate([r.subclass("esri.form.elements.AttachmentElement")], e)
  6060. })
  6061. }, "esri/form/elements/inputs/AttachmentInput": function () {
  6062. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
  6063. function (a, b, c, e, d, l, r, q) { var k; c = k = function (m) { function g(p) { p = m.call(this, p) || this; p.type = null; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ type: this.type }) }; return g }(c.JSONSupport); b.__decorate([e.property({ type: "attachment audio document image signature video".split(" "), json: { write: !0 } })], c.prototype, "type", void 0); return c = k = b.__decorate([q.subclass("esri.form.elements.inputs.AttachmentInput")], c) })
  6064. }, "esri/form/elements/FieldElement": function () {
  6065. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Element ./support/inputs ../../layers/support/domains".split(" "),
  6066. function (a, b, c, e, d, l, r, q, k, m) {
  6067. var g; e = g = function (p) {
  6068. function t(n) { n = p.call(this, n) || this; n.domain = null; n.editable = !0; n.editableExpression = null; n.fieldName = null; n.hint = null; n.input = null; n.requiredExpression = null; n.type = "field"; n.valueExpression = null; return n } a._inheritsLoose(t, p); t.prototype.clone = function () {
  6069. return new g({
  6070. description: this.description, domain: this.domain, editable: this.editable, editableExpression: this.editableExpression, fieldName: this.fieldName, hint: this.hint, input: this.input, label: this.label,
  6071. requiredExpression: this.requiredExpression, valueExpression: this.valueExpression, visibilityExpression: this.visibilityExpression
  6072. })
  6073. }; return t
  6074. }(q); b.__decorate([c.property({ types: m.types, json: { read: { reader: m.fromJSON }, write: !0 } })], e.prototype, "domain", void 0); b.__decorate([c.property({ type: Boolean, json: { write: !0 } })], e.prototype, "editable", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "editableExpression", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype,
  6075. "fieldName", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "hint", void 0); b.__decorate([c.property({ types: k.types, json: { read: { source: "inputType" }, write: { target: "inputType" } } })], e.prototype, "input", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "requiredExpression", void 0); b.__decorate([c.property({ type: String, json: { read: !1, write: !0 } })], e.prototype, "type", void 0); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "valueExpression",
  6076. void 0); return e = g = b.__decorate([r.subclass("esri.form.elements.FieldElement")], e)
  6077. })
  6078. }, "esri/form/elements/support/inputs": function () {
  6079. define("exports ../inputs/BarcodeScannerInput ../inputs/ComboBoxInput ../inputs/DateTimePickerInput ../inputs/Input ../inputs/RadioButtonsInput ../inputs/SwitchInput ../inputs/TextAreaInput ../inputs/TextBoxInput".split(" "), function (a, b, c, e, d, l, r, q, k) {
  6080. a.types = {
  6081. base: d, key: "type", typeMap: {
  6082. "barcode-scanner": b, "combo-box": c, "datetime-picker": e, "radio-buttons": l, switch: r,
  6083. "text-area": q, "text-box": k
  6084. }
  6085. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6086. })
  6087. }, "esri/form/elements/inputs/BarcodeScannerInput": function () {
  6088. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "), function (a, b, c, e, d, l, r, q) {
  6089. var k; e = k = function (m) {
  6090. function g(p) {
  6091. p =
  6092. m.call(this, p) || this; p.type = "barcode-scanner"; return p
  6093. } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ maxLength: this.maxLength, minLength: this.minLength }) }; return g
  6094. }(q); b.__decorate([c.property({ type: ["barcode-scanner"], json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.form.elements.inputs.BarcodeScannerInput")], e)
  6095. })
  6096. }, "esri/form/elements/inputs/TextInput": function () {
  6097. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
  6098. function (a, b, c, e, d, l, r, q) { e = function (k) { function m(g) { g = k.call(this, g) || this; g.maxLength = null; g.minLength = 0; return g } a._inheritsLoose(m, k); return m }(q); b.__decorate([c.property({ type: Number, json: { write: !0 } })], e.prototype, "maxLength", void 0); b.__decorate([c.property({ type: Number, json: { write: !0 } })], e.prototype, "minLength", void 0); return e = b.__decorate([r.subclass("esri.form.elements.inputs.TextInput")], e) })
  6099. }, "esri/form/elements/inputs/Input": function () {
  6100. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
  6101. function (a, b, c, e, d, l, r, q) { c = function (k) { function m(g) { g = k.call(this, g) || this; g.type = null; return g } a._inheritsLoose(m, k); return m }(c.JSONSupport); b.__decorate([e.property()], c.prototype, "type", void 0); return c = b.__decorate([q.subclass("esri.form.elements.inputs.Input")], c) })
  6102. }, "esri/form/elements/inputs/ComboBoxInput": function () {
  6103. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
  6104. function (a, b, c, e, d, l, r, q) {
  6105. var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.noValueOptionLabel = null; p.showNoValueOption = !1; p.type = "combo-box"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ showNoValueOption: this.showNoValueOption, noValueOptionLabel: this.noValueOptionLabel }) }; return g }(q); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "noValueOptionLabel", void 0); b.__decorate([c.property({ type: Boolean, json: { write: !0 } })], e.prototype, "showNoValueOption",
  6106. void 0); b.__decorate([c.property({ type: ["combo-box"], json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.form.elements.inputs.ComboBoxInput")], e)
  6107. })
  6108. }, "esri/form/elements/inputs/DateTimePickerInput": function () {
  6109. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ./Input".split(" "),
  6110. function (a, b, c, e, d, l, r, q, k, m) {
  6111. function g(t) { return null != t ? new Date(t) : null } var p; e = p = function (t) {
  6112. function n(f) { f = t.call(this, f) || this; f.includeTime = !1; f.max = null; f.min = null; f.type = "datetime-picker"; return f } a._inheritsLoose(n, t); var u = n.prototype; u.readMax = function (f, h) { return g(h.max) }; u.writeMax = function (f, h) { h.max = f ? f.getTime() : null }; u.readMin = function (f, h) { return g(h.min) }; u.writeMin = function (f, h) { h.min = f ? f.getTime() : null }; u.clone = function () {
  6113. return new p({
  6114. includeTime: this.includeTime, max: this.max,
  6115. min: this.min, type: this.type
  6116. })
  6117. }; return n
  6118. }(m); b.__decorate([c.property({ type: Boolean, json: { write: !0 } })], e.prototype, "includeTime", void 0); b.__decorate([c.property({ type: Date, json: { type: Number, write: !0 } })], e.prototype, "max", void 0); b.__decorate([r.reader("max")], e.prototype, "readMax", null); b.__decorate([k.writer("max")], e.prototype, "writeMax", null); b.__decorate([c.property({ type: Date, json: { type: Number, write: !0 } })], e.prototype, "min", void 0); b.__decorate([r.reader("min")], e.prototype, "readMin", null); b.__decorate([k.writer("min")],
  6119. e.prototype, "writeMin", null); b.__decorate([c.property({ type: ["datetime-picker"], json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = p = b.__decorate([q.subclass("esri.form.elements.inputs.DateTimePickerInput")], e)
  6120. })
  6121. }, "esri/form/elements/inputs/RadioButtonsInput": function () {
  6122. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
  6123. function (a, b, c, e, d, l, r, q) {
  6124. var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.noValueOptionLabel = null; p.showNoValueOption = !1; p.type = "radio-buttons"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ noValueOptionLabel: this.noValueOptionLabel, showNoValueOption: this.showNoValueOption }) }; return g }(q); b.__decorate([c.property({ type: String, json: { write: !0 } })], e.prototype, "noValueOptionLabel", void 0); b.__decorate([c.property({ type: Boolean, json: { write: !0 } })], e.prototype, "showNoValueOption",
  6125. void 0); b.__decorate([c.property({ type: ["radio-buttons"], json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.form.elements.inputs.RadioButtonsInput")], e)
  6126. })
  6127. }, "esri/form/elements/inputs/SwitchInput": function () {
  6128. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
  6129. function (a, b, c, e, d, l, r, q) {
  6130. var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.offValue = null; p.onValue = null; p.type = "switch"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ offValue: this.offValue, onValue: this.onValue }) }; return g }(q); b.__decorate([c.property({ type: [String, Number], json: { write: !0 } })], e.prototype, "offValue", void 0); b.__decorate([c.property({ type: [String, Number], json: { write: !0 } })], e.prototype, "onValue", void 0); b.__decorate([c.property({
  6131. type: ["switch"],
  6132. json: { read: !1, write: !0 }
  6133. })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.form.elements.inputs.SwitchInput")], e)
  6134. })
  6135. }, "esri/form/elements/inputs/TextAreaInput": function () {
  6136. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "), function (a, b, c, e, d, l, r, q) {
  6137. var k;
  6138. e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.type = "text-area"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ maxLength: this.maxLength, minLength: this.minLength }) }; return g }(q); b.__decorate([c.property({ type: ["text-area"], json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.form.elements.inputs.TextAreaInput")], e)
  6139. })
  6140. }, "esri/form/elements/inputs/TextBoxInput": function () {
  6141. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),
  6142. function (a, b, c, e, d, l, r, q) { var k; e = k = function (m) { function g(p) { p = m.call(this, p) || this; p.type = "text-box"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ maxLength: this.maxLength, minLength: this.minLength }) }; return g }(q); b.__decorate([c.property({ type: ["text-box"], json: { read: !1, write: !0 } })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.form.elements.inputs.TextBoxInput")], e) })
  6143. }, "esri/layers/support/domains": function () {
  6144. define("exports ../../core/has ./CodedValueDomain ./Domain ./InheritedDomain ./RangeDomain".split(" "),
  6145. function (a, b, c, e, d, l) { b = { key: "type", base: e, typeMap: { range: l, "coded-value": c, inherited: d } }; a.CodedValueDomain = c; a.DomainBase = e; a.InheritedDomain = d; a.RangeDomain = l; a.fromJSON = function (r) { if (!r || !r.type) return null; switch (r.type) { case "range": return l.fromJSON(r); case "codedValue": return c.fromJSON(r); case "inherited": return d.fromJSON(r) }return null }; a.types = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  6146. }, "esri/layers/support/CodedValueDomain": function () {
  6147. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./CodedValue ./Domain".split(" "),
  6148. function (a, b, c, e, d, l, r, q, k) {
  6149. var m; d = m = function (g) { function p(n) { n = g.call(this, n) || this; n.codedValues = null; n.type = "coded-value"; return n } a._inheritsLoose(p, g); var t = p.prototype; t.getName = function (n) { let u = null; if (this.codedValues) { const f = String(n); this.codedValues.some(h => { String(h.code) === f && (u = h.name); return !!u }) } return u }; t.clone = function () { return new m({ codedValues: c.clone(this.codedValues), name: this.name }) }; return p }(k); b.__decorate([e.property({ type: [q.CodedValue], json: { write: !0 } })], d.prototype,
  6150. "codedValues", void 0); b.__decorate([l.enumeration({ codedValue: "coded-value" })], d.prototype, "type", void 0); return d = m = b.__decorate([r.subclass("esri.layers.support.CodedValueDomain")], d)
  6151. })
  6152. }, "esri/layers/support/CodedValue": function () {
  6153. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  6154. function (a, b, c, e, d, l, r, q, k) {
  6155. var m; a.CodedValue = m = function (g) { function p(t) { t = g.call(this, t) || this; t.name = null; t.code = null; return t } b._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ name: this.name, code: this.code }) }; return p }(e.JSONSupport); c.__decorate([d.property({ type: String, json: { write: !0 } })], a.CodedValue.prototype, "name", void 0); c.__decorate([d.property({ type: [String, Number], json: { write: !0 } })], a.CodedValue.prototype, "code", void 0); a.CodedValue = m = c.__decorate([k.subclass("esri.layers.support.CodedValue")],
  6156. a.CodedValue); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6157. })
  6158. }, "esri/layers/support/Domain": function () {
  6159. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b,
  6160. c, e, d, l, r, q, k, m) { c = new c.JSONMap({ inherited: "inherited", codedValue: "coded-value", range: "range" }); e = function (g) { function p(t) { t = g.call(this, t) || this; t.name = null; t.type = null; return t } a._inheritsLoose(p, g); return p }(e.JSONSupport); b.__decorate([d.property({ type: String, json: { write: !0 } })], e.prototype, "name", void 0); b.__decorate([k.enumeration(c)], e.prototype, "type", void 0); return e = b.__decorate([m.subclass("esri.layers.support.Domain")], e) })
  6161. }, "esri/layers/support/InheritedDomain": function () {
  6162. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/has ../../core/accessorSupport/set ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
  6163. function (a, b, c, e, d, l, r, q, k, m) { var g; c = g = function (p) { function t(n) { n = p.call(this, n) || this; n.type = "inherited"; return n } a._inheritsLoose(t, p); t.prototype.clone = function () { return new g }; return t }(m); b.__decorate([q.enumeration({ inherited: "inherited" })], c.prototype, "type", void 0); return c = g = b.__decorate([k.subclass("esri.layers.support.InheritedDomain")], c) })
  6164. }, "esri/layers/support/RangeDomain": function () {
  6165. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
  6166. function (a, b, c, e, d, l, r, q, k) {
  6167. var m; e = m = function (g) { function p(t) { t = g.call(this, t) || this; t.maxValue = null; t.minValue = null; t.type = "range"; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ maxValue: this.maxValue, minValue: this.minValue, name: this.name }) }; return p }(k); b.__decorate([c.property({
  6168. type: Number, json: {
  6169. type: [Number], read: { source: "range", reader(g, p) { return p.range && p.range[1] } }, write: {
  6170. enabled: !1, overridePolicy() { return { enabled: null != this.maxValue && null == this.minValue } }, target: "range",
  6171. writer(g, p, t) { p[t] = [this.minValue || 0, g] }
  6172. }
  6173. }
  6174. })], e.prototype, "maxValue", void 0); b.__decorate([c.property({ type: Number, json: { type: [Number], read: { source: "range", reader(g, p) { return p.range && p.range[0] } }, write: { target: "range", writer(g, p, t) { p[t] = [g, this.maxValue || 0] } } } })], e.prototype, "minValue", void 0); b.__decorate([r.enumeration({ range: "range" })], e.prototype, "type", void 0); return e = m = b.__decorate([q.subclass("esri.layers.support.RangeDomain")], e)
  6175. })
  6176. }, "esri/form/elements/RelationshipElement": function () {
  6177. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Element ../../popup/support/RelatedRecordsInfoFieldOrder".split(" "),
  6178. function (a, b, c, e, d, l, r, q) {
  6179. var k; d = k = function (m) {
  6180. function g(p) { p = m.call(this, p) || this; p.displayCount = null; p.displayType = "list"; p.editable = !0; p.orderByFields = null; p.relationshipId = null; p.type = "relationship"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ description: this.description, displayCount: this.displayCount, displayType: this.displayType, editable: this.editable, label: this.label, orderByFields: c.clone(this.orderByFields), relationshipId: this.relationshipId, visibilityExpression: this.visibilityExpression }) };
  6181. return g
  6182. }(r); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "displayCount", void 0); b.__decorate([e.property({ type: ["list"], json: { write: !0 } })], d.prototype, "displayType", void 0); b.__decorate([e.property({ type: Boolean, json: { write: !0 } })], d.prototype, "editable", void 0); b.__decorate([e.property({ type: [q], json: { write: !0 } })], d.prototype, "orderByFields", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], d.prototype, "relationshipId", void 0); b.__decorate([e.property({
  6183. type: ["relationship"],
  6184. json: { read: !1, write: !0 }
  6185. })], d.prototype, "type", void 0); return d = k = b.__decorate([l.subclass("esri.form.elements.RelationshipElement")], d)
  6186. })
  6187. }, "esri/geometry/HeightModelInfo": function () {
  6188. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/arrayUtils ../core/jsonMap ../core/JSONSupport ../core/unitUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
  6189. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  6190. function n(y, B) { return new r("height-unit:unsupported", `Height unit of value '${y}' is not supported`, B) } function u(y, B) { return new r("height-model:unsupported", `Height model of value '${y}' is not supported`, B) } var f; const h = e.strict()({ orthometric: "gravity-related-height", gravity_related_height: "gravity-related-height", ellipsoidal: "ellipsoidal" }); k = h.jsonValues.slice(); c.removeUnordered(k, "orthometric"); const v = e.strict()({
  6191. meter: "meters", foot: "feet", "us-foot": "us-feet",
  6192. "clarke-foot": "clarke-feet", "clarke-yard": "clarke-yards", "clarke-link": "clarke-links", "sears-yard": "sears-yards", "sears-foot": "sears-feet", "sears-chain": "sears-chains", "benoit-1895-b-chain": "benoit-1895-b-chains", "indian-yard": "indian-yards", "indian-1937-yard": "indian-1937-yards", "gold-coast-foot": "gold-coast-feet", "sears-1922-truncated-chain": "sears-1922-truncated-chains", "50-kilometers": "50-kilometers", "150-kilometers": "150-kilometers"
  6193. }); c = f = function (y) {
  6194. function B(x) {
  6195. x = y.call(this, x) || this; x.heightModel =
  6196. "gravity-related-height"; x.heightUnit = "meters"; x.vertCRS = null; return x
  6197. } a._inheritsLoose(B, y); var w = B.prototype; w.writeHeightModel = function (x, z, C) { return h.write(x, z, C) }; w.readHeightModel = function (x, z, C) { if (z = h.read(x)) return z; C && C.messages && C.messages.push(u(x, { context: C })); return null }; w.readHeightUnit = function (x, z, C) { if (z = v.read(x)) return z; C && C.messages && C.messages.push(n(x, { context: C })); return null }; w.readHeightUnitService = function (x, z, C) {
  6198. if (z = l.unitFromRESTJSON(x) || v.read(x)) return z; C && C.messages &&
  6199. C.messages.push(n(x, { context: C })); return null
  6200. }; w.readVertCRS = function (x, z) { return z.vertCRS || z.ellipsoid || z.geoid }; w.clone = function () { return new f({ heightModel: this.heightModel, heightUnit: this.heightUnit, vertCRS: this.vertCRS }) }; w.equals = function (x) { return x ? this === x ? !0 : this.heightModel === x.heightModel && this.heightUnit === x.heightUnit && this.vertCRS === x.vertCRS : !1 }; B.deriveUnitFromSR = function (x, z) { z = l.getVerticalUnitStringForSR(z); return new f({ heightModel: x.heightModel, heightUnit: z, vertCRS: x.vertCRS }) };
  6201. w.write = function (x, z) { z = { origin: "web-scene", ...z }; return y.prototype.write.call(this, x, z) }; B.fromJSON = function (x) { if (!x) return null; const z = new f; z.read(x, { origin: "web-scene" }); return z }; return B
  6202. }(d.JSONSupport); b.__decorate([q.property({ type: h.apiValues, constructOnly: !0, json: { origins: { "web-scene": { type: k, default: "ellipsoidal" } } } })], c.prototype, "heightModel", void 0); b.__decorate([t.writer("web-scene", "heightModel")], c.prototype, "writeHeightModel", null); b.__decorate([g.reader(["web-scene", "service"],
  6203. "heightModel")], c.prototype, "readHeightModel", null); b.__decorate([q.property({ type: v.apiValues, constructOnly: !0, json: { origins: { "web-scene": { type: v.jsonValues, write: v.write } } } })], c.prototype, "heightUnit", void 0); b.__decorate([g.reader("web-scene", "heightUnit")], c.prototype, "readHeightUnit", null); b.__decorate([g.reader("service", "heightUnit")], c.prototype, "readHeightUnitService", null); b.__decorate([q.property({ type: String, constructOnly: !0, json: { origins: { "web-scene": { write: !0 } } } })], c.prototype, "vertCRS",
  6204. void 0); b.__decorate([g.reader("service", "vertCRS", ["vertCRS", "ellipsoid", "geoid"])], c.prototype, "readVertCRS", null); return c = f = b.__decorate([p.subclass("esri.geometry.HeightModelInfo")], c)
  6205. })
  6206. }, "esri/layers/graphics/sources/MemorySource": function () {
  6207. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../Graphic ../../../core/Collection ../../../core/Error ../../../core/HandleOwner ../../../core/has ../../../core/Loadable ../../../core/Logger ../../../core/maybe ../../../core/Promise ../../../core/workers/workers ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/shared ../../../core/accessorSupport/decorators/subclass ../../../rest/query/operations/editsZScale ../../../rest/query/operations/queryZScale ../../../rest/support/FeatureSet ../../../geometry/Extent ../../../geometry/Polygon ../../../geometry/support/typeUtils".split(" "),
  6208. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A) {
  6209. let D = 0; const F = g.getLogger("esri.layers.graphics.sources.MemorySource"); a.MemorySource = function (J) {
  6210. function M(E) { E = J.call(this, E) || this; E._idToClientGraphic = null; E.type = "memory"; return E } b._inheritsLoose(M, J); var N = M.prototype; N.load = function (E) { E = p.isSome(E) ? E.signal : null; this.addResolvingPromise(this._startWorker(E)); return Promise.resolve(this) }; N.destroy = function () { var E; null == (E = this._connection) ? void 0 : E.close(); this._connection = null };
  6211. N.applyEdits = function (E) { return this.load().then(() => this._applyEdits(E)) }; N.openPorts = function () { return this.load().then(() => this._connection.openPorts()) }; N.queryFeatures = function () {
  6212. var E = b._asyncToGenerator(function* (G, H = {}) {
  6213. yield this.load(H); H = yield this._connection.invoke("queryFeatures", G ? G.toJSON() : null, H); w.applyFeatureSetZUnitScaling(G, this.layer.spatialReference, H); G = x.fromJSON(H); if (!this._requiresClientGraphicMapping()) return G; H = this.layer.objectIdField; for (const K of G.features) {
  6214. const S =
  6215. this._idToClientGraphic.get(K.attributes[H]); S && (K.geometry = S.geometry)
  6216. } G.geometryType = this.layer.geometryType; return G
  6217. }); return function (G) { return E.apply(this, arguments) }
  6218. }(); N.queryFeaturesJSON = function () {
  6219. var E = b._asyncToGenerator(function* (G, H = {}) {
  6220. if (this._requiresClientGraphicMapping()) throw new r("query-features-json:unsupported", "Cannot query in JSON format for client only geometry types (mesh and extent)"); yield this.load(H); H = yield this._connection.invoke("queryFeatures", G ? G.toJSON() : null,
  6221. H); w.applyFeatureSetZUnitScaling(G, this.layer.spatialReference, H); return H
  6222. }); return function (G) { return E.apply(this, arguments) }
  6223. }(); N.queryFeatureCount = function (E, G = {}) { return this.load(G).then(() => this._connection.invoke("queryFeatureCount", E ? E.toJSON() : null, G)) }; N.queryObjectIds = function (E, G = {}) { return this.load(G).then(() => this._connection.invoke("queryObjectIds", E ? E.toJSON() : null, G)) }; N.queryExtent = function (E, G = {}) {
  6224. return this.load(G).then(() => this._connection.invoke("queryExtent", E ? E.toJSON() :
  6225. null, G)).then(H => ({ count: H.count, extent: z.fromJSON(H.extent) }))
  6226. }; N.querySnapping = function (E, G = {}) { return this.load(G).then(() => this._connection.invoke("querySnapping", E, G)) }; N._applyEdits = function () {
  6227. var E = b._asyncToGenerator(function* (G) {
  6228. if (!this._connection) throw new r("feature-layer-source:edit-failure", "Memory source not loaded"); const H = this.layer.objectIdField; let K = null; const S = [], fa = []; yield Promise.all([this._prepareClientMapping(G.addFeatures, null), this._prepareClientMapping(G.updateFeatures,
  6229. null)]); const ha = ra => "objectId" in ra && null != ra.objectId ? ra.objectId : "attributes" in ra && null != ra.attributes[H] ? ra.attributes[H] : null; G.addFeatures && (K = this._prepareAddFeatures(G.addFeatures)); if (G.deleteFeatures) for (var ba of G.deleteFeatures) { const ra = ha(ba); null != ra && S.push(ra) } ba = G.updateFeatures && this._idToClientGraphic ? new Map : null; if (G.updateFeatures) for (const ra of G.updateFeatures) fa.push(this._serializeFeature(ra)), ba && (G = ha(ra), null != G && ba.set(G, ra)); B.unapplyEditsZUnitScaling(K ? K.features :
  6230. null, fa, this.layer.spatialReference); const { fullExtent: O, featureEditResults: na } = yield this._connection.invoke("applyEdits", { adds: K ? K.features : [], updates: fa, deletes: S }); this.fullExtent = O; K && K.finish(na.uidToObjectId); this._updateClientGraphicIds(ba, na); return this._createEditsResult(na)
  6231. }); return function (G) { return E.apply(this, arguments) }
  6232. }(); N._prepareClientMapping = function () {
  6233. var E = b._asyncToGenerator(function* (G, H) {
  6234. if ("mesh" === this.layerOrSourceGeometryType && !p.isNone(G)) {
  6235. var K = []; for (const { geometry: S } of G) !p.isSome(S) ||
  6236. "mesh" !== S.type || S.hasExtent || S.loaded || K.push(S.load({ signal: H })); K.length && (yield Promise.all(K))
  6237. }
  6238. }); return function (G, H) { return E.apply(this, arguments) }
  6239. }(); N._updateClientGraphicIds = function (E, G) { if (this._idToClientGraphic) { if (E) for (const H of G.updateResults) { if (!H.success) continue; const K = E.get(H.objectId); null != K && this._addIdToClientGraphic(K) } for (const H of G.deleteResults) H.success && this._idToClientGraphic.delete(H.objectId) } }; N._createEditsResult = function (E) {
  6240. return {
  6241. addFeatureResults: E.addResults ?
  6242. E.addResults.map(this._createFeatureEditResult, this) : [], updateFeatureResults: E.updateResults ? E.updateResults.map(this._createFeatureEditResult, this) : [], deleteFeatureResults: E.deleteResults ? E.deleteResults.map(this._createFeatureEditResult, this) : [], addAttachmentResults: [], updateAttachmentResults: [], deleteAttachmentResults: []
  6243. }
  6244. }; N._createFeatureEditResult = function (E) {
  6245. const G = !0 === E.success ? null : E.error || { code: void 0, description: void 0 }; return {
  6246. objectId: E.objectId, globalId: E.globalId, error: G ? new r("feature-layer-source:edit-failure",
  6247. G.description, { code: G.code }) : null
  6248. }
  6249. }; N._prepareAddFeatures = function (E) {
  6250. const G = new Map, H = Array(E.length); let K = null; for (let fa = 0; fa < E.length; fa++) { const ha = E[fa], ba = this._serializeFeature(ha); !K && p.isSome(ha.geometry) && (K = ha.geometry.type); H[fa] = ba; G.set(`${ba.uid}`, ha) } const S = this; return {
  6251. features: H, inferredGeometryType: K, finish(fa) {
  6252. const ha = S.sourceJSON.objectIdField; for (const ba in fa) {
  6253. const O = fa[ba], na = G.get(ba); na && (na.attributes || (na.attributes = {}), -1 === O ? delete na.attributes[ha] : na.attributes[ha] =
  6254. O, S._addIdToClientGraphic(na))
  6255. }
  6256. }
  6257. }
  6258. }; N._addIdToClientGraphic = function (E) { if (this._idToClientGraphic) { var G = this.sourceJSON.objectIdField; G = E.attributes && E.attributes[G]; null != G && this._idToClientGraphic.set(G, E) } }; N._requiresClientGraphicMapping = function () { return this._geometryTypeRequiresClientGraphicMapping(this.layerOrSourceGeometryType) }; N._geometryRequiresClientGraphicMapping = function (E) { return this._geometryTypeRequiresClientGraphicMapping(E.type) }; N._geometryTypeRequiresClientGraphicMapping = function (E) {
  6259. return "mesh" ===
  6260. E || "multipatch" === E || "extent" === E
  6261. }; N._serializeFeature = function (E) { const { attributes: G } = E; E = this._geometryForSerialization(E); const H = (D++).toString(); return E ? { uid: H, geometry: E.toJSON(), attributes: G } : { uid: H, attributes: G } }; N._geometryForSerialization = function (E) { ({ geometry: E } = E); return p.isNone(E) ? null : this._geometryRequiresClientGraphicMapping(E) ? E.extent ? C.fromExtent(E.extent) : null : E }; N._startWorker = function () {
  6262. var E = b._asyncToGenerator(function* (G) {
  6263. this._connection = yield n.open("MemorySourceWorker",
  6264. { strategy: k("feature-layers-workers") ? "dedicated" : "local", signal: G }); const { fields: H, spatialReference: K, objectIdField: S, hasM: fa, hasZ: ha, timeInfo: ba } = this.layer; var O = "defaults" === this.layer.originOf("spatialReference"); yield this._prepareClientMapping(this.items, G); const na = this._prepareAddFeatures(this.items); this.handles.add(this.on("before-changes", Da => { F.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"); Da.preventDefault() })); O = {
  6265. features: na.features,
  6266. fields: H && H.map(Da => Da.toJSON()), geometryType: A.typeKebabDictionary.toJSON(this.workerGeometryType), hasM: "mesh" === this.layerOrSourceGeometryType ? !1 : fa, hasZ: "mesh" === this.layerOrSourceGeometryType ? !0 : ha, objectIdField: S, spatialReference: O ? null : K && K.toJSON(), timeInfo: ba ? ba.toJSON() : null
  6267. }; G = yield this._connection.invoke("load", O, { signal: G }); for (var ra of G.warnings) F.warn(ra.message, { layer: this.layer, warning: ra }); G.featureErrors.length && F.warn(`Encountered ${G.featureErrors.length} validation errors while loading features`,
  6268. G.featureErrors); ra = G.layerDefinition; this._geometryTypeRequiresClientGraphicMapping(na.inferredGeometryType) && (ra.geometryType = A.typeKebabDictionary.toJSON(na.inferredGeometryType)); this.sourceJSON = ra; this._requiresClientGraphicMapping() && (this._idToClientGraphic = new Map); na.finish(G.assignedObjectIds)
  6269. }); return function (G) { return E.apply(this, arguments) }
  6270. }(); b._createClass(M, [{
  6271. key: "workerGeometryType", get: function () {
  6272. var E; const G = null == (E = this.layer) ? void 0 : E.geometryType; return G ? this._geometryTypeRequiresClientGraphicMapping(G) ?
  6273. "polygon" : G : null
  6274. }
  6275. }, { key: "layerOrSourceGeometryType", get: function () { var E, G, H; return null != (E = null == (G = this.layer) ? void 0 : G.geometryType) ? E : null == (H = this.sourceJSON) ? void 0 : H.geometryType } }]); return M
  6276. }(m.LoadableMixin(t.EsriPromiseMixin(q.HandleOwnerMixin(l)))); c.__decorate([v.shared({ Type: d, ensureType: h.ensureType(d) })], a.MemorySource.prototype, "itemType", void 0); c.__decorate([u.property()], a.MemorySource.prototype, "type", void 0); c.__decorate([u.property({ constructOnly: !0 })], a.MemorySource.prototype,
  6277. "layer", void 0); c.__decorate([u.property({ readOnly: !0 })], a.MemorySource.prototype, "workerGeometryType", null); c.__decorate([u.property()], a.MemorySource.prototype, "sourceJSON", void 0); a.MemorySource = c.__decorate([y.subclass("esri.layers.graphics.sources.MemorySource")], a.MemorySource); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6278. })
  6279. }, "esri/core/workers/workers": function () {
  6280. define("require exports ../../chunks/_rollupPluginBabelHelpers ../Error ../has ../promiseUtils ./Connection ./RemoteClient ./WorkerOwner".split(" "),
  6281. function (a, b, c, e, d, l, r, q, k) {
  6282. function m(w) { if (w && w.__esModule) return w; const x = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } }); if (w) for (const z in w) if ("default" !== z) { const C = Object.getOwnPropertyDescriptor(w, z); Object.defineProperty(x, z, C.get ? C : { enumerable: !0, get: () => w[z] }) } x.default = w; return Object.freeze(x) } function g(w, x) { return p.apply(this, arguments) } function p() { p = c._asyncToGenerator(function* (w, x) { const z = new r; yield z.open(w, x); return z }); return p.apply(this, arguments) } function t() {
  6283. t =
  6284. c._asyncToGenerator(function* (w, x = {}) {
  6285. if ("string" !== typeof w) throw new e("workers:undefined-module", "modulePath is missing"); var z = x.strategy || "distributed"; d("host-webworker") && !d("esri-workers") && (z = "local"); if ("local" === z) { var C = yield q.loadWorker(w); C || (C = yield new Promise((A, D) => a([w], F => A(m(F)), D))); l.throwIfAborted(x.signal); z = x.client || C; C = q.connect(C); return g([C], { ...x, client: z }) } yield n(); l.throwIfAborted(x.signal); if ("dedicated" === z) return z = h++ % f, z = yield v[z].open(w, x), g([z], x); if (x.maxNumWorkers &&
  6286. 0 < x.maxNumWorkers && (z = Math.min(x.maxNumWorkers, f), z < f)) { C = Array(z); for (let A = 0; A < z; ++A) { const D = h++ % f; C[A] = v[D].open(w, x) } return g(C, x) } z = v.map(A => A.open(w, x)); return g(z, x)
  6287. }); return t.apply(this, arguments)
  6288. } function n() { return u.apply(this, arguments) } function u() { u = c._asyncToGenerator(function* () { if (y) return y; B = new AbortController; const w = []; for (let x = 0; x < f; x++) { const z = k.create(x).then(C => v[x] = C); w.push(z) } return y = Promise.all(w) }); return u.apply(this, arguments) } let f = d("esri-workers-debug") ? 1 :
  6289. d("host-browser") ? navigator.hardwareConcurrency - 1 : 0; f || (f = d("safari") && d("mac") || d("trident") ? 7 : 2); let h = 0; const v = []; let y = null, B; b.Connection = r; b.RemoteClient = q; b.initialize = function () { n() }; b.open = function (w) { return t.apply(this, arguments) }; b.openWithPorts = function (w, x) { return g(w, { client: x }) }; b.terminate = function () { y && (B.abort(), y = null); for (let w = 0; w < v.length; w++)v[w] && v[w].terminate(); v.length = 0 }; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6290. })
  6291. }, "esri/core/workers/Connection": function () {
  6292. define("../../chunks/_rollupPluginBabelHelpers ../handleUtils ../Logger ../promiseUtils ../Queue ./RemoteClient".split(" "),
  6293. function (a, b, c, e, d, l) {
  6294. const r = c.getLogger("esri.core.workers.Connection"); return function () {
  6295. function q() { this._inUseClients = []; this._clients = []; this._clientPromises = []; this._ongoingJobsQueue = new d } var k = q.prototype; k.destroy = function () { this.close() }; k.open = function (m, g) {
  6296. return new Promise((p, t) => {
  6297. let n = !0; const u = f => { e.throwIfAborted(g.signal); n && (n = !1, f()) }; this._clients.length = m.length; this._clientPromises.length = m.length; this._inUseClients.length = m.length; for (let f = 0; f < m.length; ++f) {
  6298. const h = m[f];
  6299. e.isPromiseLike(h) ? this._clientPromises[f] = h.then(v => { this._clients[f] = new l(v, g, () => this._ongoingJobsQueue.pop()); u(p); return this._clients[f] }, () => { u(t); return null }) : (this._clients[f] = new l(h, g, () => this._ongoingJobsQueue.pop()), this._clientPromises[f] = Promise.resolve(this._clients[f]), u(p))
  6300. }
  6301. })
  6302. }; k.broadcast = function (m, g, p) { const t = Array(this._clientPromises.length); for (let n = 0; n < this._clientPromises.length; ++n)t[n] = this._clientPromises[n].then(u => u.invoke(m, g, p)); return t }; k.close = function () {
  6303. let m;
  6304. for (; m = this._ongoingJobsQueue.pop();)m.deferred.reject(e.createAbortError(`Worker closing, aborting job calling '${m.methodName}'`)); for (const g of this._clientPromises) g.then(p => p.close()); this._clients.length = 0; this._clientPromises.length = 0
  6305. }; k.invoke = function (m, g, p) {
  6306. let t = null; Array.isArray(p) ? (r.warn("invoke()", "The transferList parameter is deprecated, use the options object instead"), t = { transferList: p }) : t = p; p = e.createDeferred(); this._ongoingJobsQueue.push({
  6307. methodName: m, data: g, invokeOptions: t,
  6308. deferred: p
  6309. }); for (m = 0; m < this._clientPromises.length; m++)(g = this._clients[m]) ? g.jobAdded() : this._clientPromises[m].then(n => n.jobAdded()); return p.promise
  6310. }; k.on = function (m, g) { return Promise.all(this._clientPromises).then(() => b.handlesGroup(this._clients.map(p => p.on(m, g)))) }; k.openPorts = function () { return new Promise(m => { const g = Array(this._clientPromises.length); let p = g.length; for (let t = 0; t < this._clientPromises.length; ++t)this._clientPromises[t].then(n => { g[t] = n.openPort(); 0 === --p && m(g) }) }) }; a._createClass(q,
  6311. [{ key: "closed", get: function () { return !this._clients || !this._clients.length } }, { key: "test", get: function () { return { numClients: this._clients.length } } }]); return q
  6312. }()
  6313. })
  6314. }, "esri/core/Queue": function () {
  6315. define(["../chunks/_rollupPluginBabelHelpers", "./maybe"], function (a, b) {
  6316. return function () {
  6317. function c(d = l => l.values().next().value) { this._peeker = d; this._items = new Set } var e = c.prototype; e.clear = function () { this._items.clear() }; e.last = function () { if (0 !== this._items.size) { for (var d of this._items); return d } }; e.peek =
  6318. function () { if (0 !== this._items.size) return this._peeker(this._items) }; e.push = function (d) { this.contains(d) || this._items.add(d) }; e.contains = function (d) { return this._items.has(d) }; e.pop = function () { if (0 !== this.length) { var d = this.peek(); this._items.delete(b.assumeNonNull(d)); return d } }; e.popLast = function () { if (0 !== this.length) { var d = this.last(); this._items.delete(b.assumeNonNull(d)); return d } }; e.remove = function (d) { this._items.delete(d) }; e.filter = function (d) {
  6319. this._items.forEach(l => { d(l) || this._items.delete(l) });
  6320. return this
  6321. }; a._createClass(c, [{ key: "length", get: function () { return this._items.size } }]); return c
  6322. }()
  6323. })
  6324. }, "esri/core/workers/RemoteClient": function () {
  6325. define("require ../../kernel ../Error ../events ../maybe ../promiseUtils ./utils ../../support/revision".split(" "), function (a, b, c, e, d, l, r, q) {
  6326. const k = y => Object.freeze(Object.defineProperty({ __proto__: null, default: y }, Symbol.toStringTag, { value: "Module" })), m = {
  6327. statsWorker: () => new Promise((y, B) => a(["../../smartMapping/statistics/support/statsWorker"], y, B)),
  6328. geometryEngineWorker: () => new Promise((y, B) => a(["../../geometry/geometryEngineWorker"], y, B)), CSVSourceWorker: () => new Promise((y, B) => a(["../../layers/graphics/sources/support/CSVSourceWorker"], w => y(k(w)), B)), EdgeProcessingWorker: () => new Promise((y, B) => a(["../../views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker"], y, B)), ElevationSamplerWorker: () => new Promise((y, B) => a(["../../geometry/support/meshUtils/ElevationSamplerWorker"], w => y(k(w)), B)), FeatureServiceSnappingSourceWorker: () => new Promise((y,
  6329. B) => a(["../../views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker"], y, B)), GeoJSONSourceWorker: () => new Promise((y, B) => a(["../../layers/graphics/sources/geojson/GeoJSONSourceWorker"], w => y(k(w)), B)), LercWorker: () => new Promise((y, B) => a(["../../layers/support/LercWorker"], w => y(k(w)), B)), MemorySourceWorker: () => new Promise((y, B) => a(["../../layers/graphics/sources/support/MemorySourceWorker"], w => y(k(w)), B)), PBFDecoderWorker: () => new Promise((y, B) => a(["../../views/3d/support/PBFDecoderWorker"],
  6330. w => y(k(w)), B)), Pipeline: () => new Promise((y, B) => a(["../../views/2d/layers/features/Pipeline"], w => y(k(w)), B)), PointCloudWorker: () => new Promise((y, B) => a(["../../views/3d/layers/PointCloudWorker"], w => y(k(w)), B)), RasterWorker: () => new Promise((y, B) => a(["../../layers/support/RasterWorker"], w => y(k(w)), B)), SceneLayerSnappingSourceWorker: () => new Promise((y, B) => a(["../../views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker"], y, B)), SceneLayerWorker: () => new Promise((y, B) =>
  6331. a(["../../views/3d/layers/SceneLayerWorker"], y, B)), WFSSourceWorker: () => new Promise((y, B) => a(["../../layers/graphics/sources/WFSSourceWorker"], w => y(k(w)), B)), WorkerTileHandler: () => new Promise((y, B) => a(["../../views/2d/engine/vectorTiles/WorkerTileHandler"], w => y(k(w)), B))
  6332. }, { CLOSE: g, ABORT: p, INVOKE: t, RESPONSE: n, OPEN_PORT: u, ON: f } = r.MessageType; let h = function () {
  6333. function y(w) { this._timer = null; this._cancelledJobIds = new Set; this._invokeMessages = []; this._invoke = w; this._timer = null; this._process = this._process.bind(this) }
  6334. var B = y.prototype; B.push = function (w) { w.type === r.MessageType.ABORT ? this._cancelledJobIds.add(w.jobId) : (this._invokeMessages.push(w), null === this._timer && (this._timer = setTimeout(this._process, 0))) }; B.clear = function () { this._invokeMessages.length = 0; this._cancelledJobIds.clear(); this._timer = null }; B._process = function () { this._timer = null; for (const w of this._invokeMessages) this._cancelledJobIds.has(w.jobId) || this._invoke(w); this._cancelledJobIds.clear(); this._invokeMessages.length = 0 }; return y
  6335. }(), v = function () {
  6336. function y(w,
  6337. x, z) { this._port = w; this._getNextJob = z; this._outJobs = new Map; this._inJobs = new Map; this._invokeQueue = new h(C => this._onInvokeMessage(C)); this._client = x.client; this._onMessage = this._onMessage.bind(this); this._channel = x.channel; this._schedule = x.schedule; this._port.addEventListener("message", this._onMessage); this._port.start() } y.connect = function (w) {
  6338. const x = new MessageChannel; w = "function" === typeof w ? new w : "default" in w && "function" === typeof w.default ? new w.default : w; const z = new y(x.port1, { channel: x, client: w },
  6339. () => null); "object" === typeof w && "remoteClient" in w && (w.remoteClient = z); y.clients.set(z, w); return x.port2
  6340. }; y.loadWorker = function (w) { return (w = m[w]) ? w() : Promise.resolve(null) }; var B = y.prototype; B.close = function () { this._post({ type: g }); this._close() }; B.isBusy = function () { return 0 < this._outJobs.size }; B.invoke = function (w, x, z) {
  6341. const C = z && z.signal, A = z && z.transferList; if (!this._port) return Promise.reject(new c("worker:port-closed", `Cannot call invoke('${w}'), port is closed`, { methodName: w, data: x })); const D = r.newJobId();
  6342. return new Promise((F, J) => { if (l.isAborted(C)) this._processWork(), J(l.createAbortError()); else { var M = l.onAbort(C, () => { const N = this._outJobs.get(D); N && (this._outJobs.delete(D), this._processWork(), d.removeMaybe(N.abortHandle), this._post({ type: p, jobId: D }), J(l.createAbortError())) }); this._outJobs.set(D, { resolve: F, reject: J, abortHandle: M, debugInfo: w }); this._post({ type: t, jobId: D, methodName: w, abortable: null != C }, x, A) } })
  6343. }; B.on = function (w, x) {
  6344. function z(A) { x(A.data) } const C = new MessageChannel; this._port.postMessage({
  6345. type: r.MessageType.ON,
  6346. eventType: w, port: C.port2
  6347. }, [C.port2]); C.port1.addEventListener("message", z); C.port1.start(); return { remove() { C.port1.postMessage({ type: r.MessageType.CLOSE }); C.port1.close(); C.port1.removeEventListener("message", z) } }
  6348. }; B.jobAdded = function () { this._processWork() }; B.openPort = function () { const w = new MessageChannel; this._post({ type: u, port: w.port2 }); return w.port1 }; B._processWork = function () {
  6349. if (!(2 <= this._outJobs.size)) {
  6350. var w = this._getNextJob(); if (w) {
  6351. var { methodName: x, data: z, invokeOptions: C, deferred: A } = w; this.invoke(x,
  6352. z, C).then(D => A.resolve(D)).catch(D => A.reject(D))
  6353. }
  6354. }
  6355. }; B._close = function () { this._channel && (this._channel = null); this._port.removeEventListener("message", this._onMessage); this._port.close(); this._outJobs.forEach(w => { d.removeMaybe(w.abortHandle); w.reject(l.createAbortError(`Worker closing, aborting job calling '${w.debugInfo}'`)) }); this._inJobs.clear(); this._outJobs.clear(); this._invokeQueue.clear(); this._port = this._client = this._schedule = null }; B._onMessage = function (w) {
  6356. d.isSome(this._schedule) ? this._schedule(() =>
  6357. this._processMessage(w)) : this._processMessage(w)
  6358. }; B._processMessage = function (w) { if (w = r.receiveMessage(w)) switch (w.type) { case n: this._onResponseMessage(w); break; case t: this._invokeQueue.push(w); break; case p: this._onAbortMessage(w); break; case g: this._onCloseMessage(); break; case u: this._onOpenPortMessage(w); break; case f: this._onOnMessage(w) } }; B._onAbortMessage = function (w) { const x = this._inJobs, z = w.jobId, C = x.get(z); this._invokeQueue.push(w); C && (C.controller && C.controller.abort(), x.delete(z)) }; B._onCloseMessage =
  6359. function () { const w = this._client; this._close(); w && "destroy" in w && y.clients.get(this) === w && w.destroy(); y.clients.delete(this); w && w.remoteClient && (w.remoteClient = null) }; B._onInvokeMessage = function (w) {
  6360. const { methodName: x, jobId: z, data: C, abortable: A } = w; w = A ? new AbortController : null; const D = this._inJobs; let F = this._client, J = F[x], M; try {
  6361. if (!J && x && x.includes(".")) { const N = x.split("."); for (let E = 0; E < N.length - 1; E++)F = F[N[E]], J = F[N[E + 1]] } if ("function" !== typeof J) throw new TypeError(`${x} is not a function`); M =
  6362. J.call(F, C, { client: this, signal: w ? w.signal : null })
  6363. } catch (N) { this._post({ type: n, jobId: z, error: r.toInvokeError(N) }); return } l.isPromiseLike(M) ? (D.set(z, { controller: w, promise: M }), M.then(N => { D.has(z) && (D.delete(z), this._post({ type: n, jobId: z }, N)) }, N => { D.has(z) && (D.delete(z), l.isAbortError(N) || this._post({ type: n, jobId: z, error: r.toInvokeError(N || { message: `Error encountered at method ${x}` }) })) })) : this._post({ type: n, jobId: z }, M)
  6364. }; B._onOpenPortMessage = function (w) { new y(w.port, { client: this._client }, () => null) };
  6365. B._onOnMessage = function (w) { const { port: x } = w, z = this._client.on(w.eventType, A => { x.postMessage(A) }), C = e.on(w.port, "message", A => { r.receiveMessage(A).type === r.MessageType.CLOSE && (C.remove(), z.remove(), x.close()) }) }; B._onResponseMessage = function (w) { const { jobId: x, error: z, data: C } = w; w = this._outJobs; if (w.has(x)) { var A = w.get(x); this._processWork(); w.delete(x); d.removeMaybe(A.abortHandle); z ? A.reject(c.fromJSON(JSON.parse(z))) : A.resolve(C) } }; B._post = function (w, x, z) { return r.postMessage(this._port, w, x, z) }; return y
  6366. }();
  6367. v.kernelInfo = { revision: q.commitHash, version: b.version, buildDate: q.buildDate }; v.clients = new Map; return v
  6368. })
  6369. }, "esri/core/workers/utils": function () {
  6370. define(["exports", "../has"], function (a, b) {
  6371. function c(l) { return l && "object" === typeof l && ("result" in l || "transferList" in l) } function e(l) { if (!l || !l.length) return null; if (b("esri-workers-arraybuffer-transfer")) return l; l = l.filter(r => !(r instanceof ArrayBuffer || r && r.constructor && "ArrayBuffer" === r.constructor.name)); return l.length ? l : null } a.MessageType = void 0;
  6372. (function (l) { l[l.HANDSHAKE = 0] = "HANDSHAKE"; l[l.OPEN = 1] = "OPEN"; l[l.OPENED = 2] = "OPENED"; l[l.RESPONSE = 3] = "RESPONSE"; l[l.INVOKE = 4] = "INVOKE"; l[l.ABORT = 5] = "ABORT"; l[l.CLOSE = 6] = "CLOSE"; l[l.OPEN_PORT = 7] = "OPEN_PORT"; l[l.ON = 8] = "ON" })(a.MessageType || (a.MessageType = {})); let d = 0; a.isTranferableResult = c; a.newJobId = function () { return d++ }; a.postMessage = function (l, r, q, k) {
  6373. r.type === a.MessageType.OPEN_PORT ? l.postMessage(r, [r.port]) : r.type !== a.MessageType.INVOKE && r.type !== a.MessageType.RESPONSE ? l.postMessage(r) : (c(q) ? (k =
  6374. e(q.transferList), r.data = q.result) : (k = e(k), r.data = q), k ? l.postMessage(r, k) : l.postMessage(r))
  6375. }; a.receiveMessage = function (l) { return l ? (l = l.data) ? "string" === typeof l ? JSON.parse(l) : l : null : null }; a.toInvokeError = function (l) { return l ? "string" === typeof l ? JSON.stringify({ name: "message", message: l }) : l.toJSON ? JSON.stringify(l) : JSON.stringify({ name: l.name, message: l.message, details: l.details || { stack: l.stack } }) : null }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6376. })
  6377. }, "esri/core/workers/WorkerOwner": function () {
  6378. define("../../chunks/_rollupPluginBabelHelpers ../../kernel ../Error ../Logger ../maybe ../promiseUtils ./utils ./workerFactory".split(" "),
  6379. function (a, b, c, e, d, l, r, q) {
  6380. const k = e.getLogger("esri.core.workers"), { ABORT: m, INVOKE: g, OPEN: p, OPENED: t, RESPONSE: n } = r.MessageType; return function () {
  6381. function u(h, v) { this._outJobs = new Map; this._inJobs = new Map; this.worker = h; this.id = v; h.addEventListener("message", this._onMessage.bind(this)); h.addEventListener("error", y => { y.preventDefault(); k.error(y) }) } u.create = function () { var h = a._asyncToGenerator(function* (v) { const y = yield q.createWorker(); return new u(y, v) }); return function (v) { return h.apply(this, arguments) } }();
  6382. var f = u.prototype; f.terminate = function () { this.worker.terminate() }; f.open = function () { var h = a._asyncToGenerator(function* (v, y = {}) { const { signal: B } = y, w = r.newJobId(); return new Promise((x, z) => { const C = l.onAbortOrThrow(B, () => { this._outJobs.delete(w); this._post({ type: m, jobId: w }) }); this._outJobs.set(w, { resolve: x, reject: z, abortHandle: C }); this._post({ type: p, jobId: w, modulePath: v }) }) }); return function (v) { return h.apply(this, arguments) } }(); f._onMessage = function (h) {
  6383. if (h = r.receiveMessage(h)) switch (h.type) {
  6384. case t: this._onOpenedMessage(h);
  6385. break; case n: this._onResponseMessage(h); break; case m: this._onAbortMessage(h); break; case g: this._onInvokeMessage(h)
  6386. }
  6387. }; f._onAbortMessage = function (h) { const v = this._inJobs; h = h.jobId; const y = v.get(h); y && (y.controller && y.controller.abort(), v.delete(h)) }; f._onInvokeMessage = function (h) {
  6388. const { methodName: v, jobId: y, data: B, abortable: w } = h; h = w ? new AbortController : null; const x = this._inJobs, z = b.workerMessages[v]; let C; try {
  6389. if ("function" !== typeof z) throw new TypeError(`${v} is not a function`); C = z.call(null, B, {
  6390. signal: h ?
  6391. h.signal : null
  6392. })
  6393. } catch (A) { this._post({ type: n, jobId: y, error: r.toInvokeError(A) }); return } l.isPromiseLike(C) ? (x.set(y, { controller: h, promise: C }), C.then(A => { x.has(y) && (x.delete(y), this._post({ type: n, jobId: y }, A)) }, A => { x.has(y) && (x.delete(y), A || (A = { message: "Error encountered at method" + v }), l.isAbortError(A) || this._post({ type: n, jobId: y, error: r.toInvokeError(A || { message: `Error encountered at method ${v}` }) })) })) : this._post({ type: n, jobId: y }, C)
  6394. }; f._onOpenedMessage = function (h) {
  6395. const { jobId: v, data: y } = h; if (h = this._outJobs.get(v)) this._outJobs.delete(v),
  6396. d.removeMaybe(h.abortHandle), h.resolve(y)
  6397. }; f._onResponseMessage = function (h) { const { jobId: v, error: y, data: B } = h; if (h = this._outJobs.get(v)) this._outJobs.delete(v), d.removeMaybe(h.abortHandle), y ? h.reject(c.fromJSON(JSON.parse(y))) : h.resolve(B) }; f._post = function (h, v, y) { return r.postMessage(this.worker, h, v, y) }; return u
  6398. }()
  6399. })
  6400. }, "esri/core/workers/workerFactory": function () {
  6401. define("exports ../../chunks/_rollupPluginBabelHelpers ../../assets ../../config ../../intl ../../kernel ../has ../Logger ../urlUtils ./loaderConfig ./utils ./WorkerFallback ../../intl/locale ../../support/revision".split(" "),
  6402. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  6403. function u() {
  6404. u = b._asyncToGenerator(function* () {
  6405. if (!r("esri-workers") || (r("mozilla"), 0)) return f(new p); if (!w && !x) try {
  6406. const A = 'let globalId\x3d0;const outgoing\x3dnew Map,configuration\x3dJSON.parse("{CONFIGURATION}");self.esriConfig\x3dconfiguration.esriConfig;const workerPath\x3dself.esriConfig.workers.workerPath,HANDSHAKE\x3d0,OPEN\x3d1,OPENED\x3d2,RESPONSE\x3d3,INVOKE\x3d4,ABORT\x3d5;function createAbortError(){const e\x3dnew Error("Aborted");return e.name\x3d"AbortError",e}function receiveMessage(e){return e\x26\x26e.data?"string"\x3d\x3dtypeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t\x3dr\x26\x26r.signal,n\x3dglobalId++;return new Promise(((r,i)\x3d\x3e{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()\x3d\x3e{outgoing.get(n)\x26\x26(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!\x3dt,data:o})}))}let workerRevisionChecked\x3d!1;function checkWorkerRevision(e){if(!workerRevisionChecked\x26\x26e.kernelInfo){workerRevisionChecked\x3d!0;const{revision:o,buildDate:r,version:t}\x3dconfiguration.kernelInfo,{revision:n,buildDate:i,version:s}\x3de.kernelInfo;o!\x3d\x3dn\x26\x26console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o\x3dreceiveMessage(e);if(!o)return;const r\x3do.jobId;switch(o.type){case 1:let e;function t(o){const t\x3de.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"\x3d\x3dtypeof define\x26\x26define.amd?require([workerPath],(r\x3d\x3e{e\x3dr.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e\x3d\x3ee||new Promise((e\x3d\x3e{require([o.modulePath],e)})))).then(t)})):"System"in self\x26\x26"function"\x3d\x3dtypeof System.import?System.import(workerPath).then((r\x3d\x3e(e\x3dr.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e\x3d\x3ee||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r\x3d\x3e{e\x3dr.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e\x3d\x3ee||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e\x3dself.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e\x3doutgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig\x3dconfiguration.loaderConfig,esriConfig.workers.loaderUrl\x26\x26(self.importScripts(esriConfig.workers.loaderUrl),"function"\x3d\x3dtypeof require\x26\x26"function"\x3d\x3dtypeof require.config\x26\x26require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',
  6407. `'${v()}'`); w = URL.createObjectURL(new Blob([A], { type: "text/javascript" }))
  6408. } catch (A) { x = A || {} } let C; if (w) try { C = new Worker(w, { name: `esri-worker-${z++}` }) } catch (A) { y.warn("Failed to create Worker. Fallback to execute module in main thread", x), C = new p } else y.warn("Failed to create Worker. Fallback to execute module in main thread", x), C = new p; return f(C)
  6409. }); return u.apply(this, arguments)
  6410. } function f(C) { return h.apply(this, arguments) } function h() {
  6411. h = b._asyncToGenerator(function* (C) {
  6412. return new Promise(A => {
  6413. function D(J) {
  6414. (J =
  6415. g.receiveMessage(J)) && J.type === B && (C.removeEventListener("message", D), C.removeEventListener("error", F), A(C))
  6416. } function F(J) { J.preventDefault(); C.removeEventListener("message", D); C.removeEventListener("error", F); y.warn("Failed to create Worker. Fallback to execute module in main thread", J); C = new p; C.addEventListener("message", D); C.addEventListener("error", F) } C.addEventListener("message", D); C.addEventListener("error", F)
  6417. })
  6418. }); return h.apply(this, arguments)
  6419. } function v() {
  6420. if (null != e["default"]) {
  6421. var C = { ...e };
  6422. delete C["default"]; C = JSON.parse(JSON.stringify(C))
  6423. } else C = JSON.parse(JSON.stringify(e)); C.assetsPath = k.makeAbsolute(C.assetsPath); C.request.interceptors = []; C.log.interceptors = []; C.locale = t.getLocale(); C.has = {
  6424. "esri-csp-restrictions": r("esri-csp-restrictions"), "esri-2d-debug": !1, "esri-2d-update-debug": r("esri-2d-update-debug"), "esri-2d-query-centroid-enabled": r("esri-2d-query-centroid-enabled"), "featurelayer-pbf": r("featurelayer-pbf"), "featurelayer-simplify-thresholds": r("featurelayer-simplify-thresholds"),
  6425. "featurelayer-simplify-payload-size-factors": r("featurelayer-simplify-payload-size-factors"), "featurelayer-simplify-mobile-factor": r("featurelayer-simplify-mobile-factor"), "esri-atomics": r("esri-atomics"), "esri-shared-array-buffer": r("esri-shared-array-buffer"), "esri-tiles-debug": r("esri-tiles-debug"), "esri-workers-arraybuffer-transfer": r("esri-workers-arraybuffer-transfer"), "feature-polyline-generalization-factor": r("feature-polyline-generalization-factor"), "host-webworker": 1
  6426. }; C.workers.loaderUrl ?
  6427. C.workers.loaderUrl = k.makeAbsolute(C.workers.loaderUrl) : m.DEFAULT_LOADER_URL && (C.workers.loaderUrl = m.DEFAULT_LOADER_URL); C.workers.workerPath = C.workers.workerPath ? k.makeAbsolute(C.workers.workerPath) : "esri/core/workers/RemoteClient"; C.workers.useDynamicImport = !1; var A = e.workers.loaderConfig; A = m.loaderConfig({
  6428. baseUrl: null == A ? void 0 : A.baseUrl, locale: t.getLocale(), has: { "csp-restrictions": 1, "dojo-test-sniff": 0, "host-webworker": 1, ...null == A ? void 0 : A.has }, map: { ...null == A ? void 0 : A.map }, paths: {
  6429. ...null == A ?
  6430. void 0 : A.paths
  6431. }, packages: (null == A ? void 0 : A.packages) || []
  6432. }); return JSON.stringify({ esriConfig: C, loaderConfig: A, kernelInfo: { version: l.version, buildDate: n.buildDate, revision: n.commitHash } })
  6433. } const y = q.getLogger("esri.core.workers"), { HANDSHAKE: B } = g.MessageType; let w, x, z = 0; a.createWorker = function () { return u.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6434. })
  6435. }, "esri/intl": function () {
  6436. define("exports ./intl/date ./intl/number ./intl/substitute ./intl/locale ./intl/messages ./intl/t9n ./assets".split(" "),
  6437. function (a, b, c, e, d, l, r, q) {
  6438. l.registerMessageBundleLoader(r.createJSONLoader({ pattern: "esri/", location: q.getAssetUrl })); a.convertDateFormatToIntlOptions = b.convertDateFormatToIntlOptions; a.formatDate = b.formatDate; a.convertNumberFormatToIntlOptions = c.convertNumberFormatToIntlOptions; a.formatNumber = c.formatNumber; a.substitute = e.substitute; a.getLocale = d.getLocale; a.onLocaleChange = d.onLocaleChange; a.prefersRTL = d.prefersRTL; a.setLocale = d.setLocale; a.fetchMessageBundle = l.fetchMessageBundle; a.normalizeMessageBundleLocale =
  6439. l.normalizeMessageBundleLocale; a.registerMessageBundleLoader = l.registerMessageBundleLoader; a.createJSONLoader = r.createJSONLoader; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6440. })
  6441. }, "esri/intl/substitute": function () {
  6442. define("exports ../core/Logger ../core/object ../core/string ./date ./number".split(" "), function (a, b, c, e, d, l) {
  6443. function r(k) {
  6444. switch (typeof k) {
  6445. case "string": return k; case "number": return l.formatNumber(k); case "boolean": return "" + k; default: return k instanceof
  6446. Date ? d.formatDate(k) : ""
  6447. }
  6448. } const q = b.getLogger("esri.intl"); a.substitute = function (k, m, g = {}) {
  6449. const { format: p = {} } = g; return e.replace(k, t => {
  6450. {
  6451. const f = t.indexOf(":"); if (-1 === f) var n = t.trim(); else { n = t.slice(0, f).trim(); var u = t.slice(f + 1).trim() } if (n) if (t = c.getDeepValue(n, m), null == t) u = ""; else if (n = p[u] || p[n]) b: switch (n.type) { case "date": u = d.formatDate(t, n.intlOptions); break b; case "number": u = l.formatNumber(t, n.intlOptions); break b; default: q.warn("missing format descriptor for key {key}"), u = r(t) } else if (u) b: switch (u.toLowerCase()) {
  6452. case "dateformat": u =
  6453. d.formatDate(t); break b; case "numberformat": u = l.formatNumber(t); break b; default: q.warn(`inline format is unsupported since 4.12: ${u}`), u = /^(dateformat|datestring)/i.test(u) ? d.formatDate(t) : /^numberformat/i.test(u) ? l.formatNumber(t) : r(t)
  6454. } else u = r(t); else u = ""
  6455. } return u
  6456. })
  6457. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6458. })
  6459. }, "esri/intl/t9n": function () {
  6460. define("exports ../chunks/_rollupPluginBabelHelpers ../request ../core/Error ../core/maybe ./messages".split(" "),
  6461. function (a, b, c, e, d, l) {
  6462. function r(t, n, u, f) { return q.apply(this, arguments) } function q() {
  6463. q = b._asyncToGenerator(function* (t, n, u, f) {
  6464. var h = n.exec(u); if (!h) throw new e("esri-intl:invalid-bundle", `Bundle id "${u}" is not compatible with the pattern "${n}"`); n = h[1] ? `${h[1]}/` : ""; h = h[2]; const v = l.normalizeMessageBundleLocale(f); f = `${n}${h}.json`; n = v ? `${n}${h}_${v}.json` : f; let y; try { y = yield k(t(n)) } catch (B) {
  6465. if (n === f) throw new e("intl:unknown-bundle", `Bundle "${u}" cannot be loaded`, { error: B }); try { y = yield k(t(f)) } catch (w) {
  6466. throw new e("intl:unknown-bundle",
  6467. `Bundle "${u}" cannot be loaded`, { error: w });
  6468. }
  6469. } return y
  6470. }); return q.apply(this, arguments)
  6471. } function k(t) { return m.apply(this, arguments) } function m() { m = b._asyncToGenerator(function* (t) { if (d.isSome(p.fetchBundleAsset)) return p.fetchBundleAsset(t); t = yield c(t, { responseType: "text" }); return JSON.parse(t.data) }); return m.apply(this, arguments) } let g = function () {
  6472. function t({ base: n = "", pattern: u, location: f = new URL(window.location.href) }) {
  6473. let h; h = "string" === typeof f ? v => (new URL(v, new URL(f, window.location.href))).href :
  6474. f instanceof URL ? v => (new URL(v, f)).href : f; this.pattern = "string" === typeof u ? new RegExp(`^${u}`) : u; this.getAssetUrl = h; n = n ? n.endsWith("/") ? n : n + "/" : ""; this.matcher = new RegExp(`^${n}(?:(.*)/)?(.*)$`)
  6475. } t.prototype.fetchMessageBundle = function (n, u) { return r(this.getAssetUrl, this.matcher, n, u) }; return t
  6476. }(); const p = {}; a.JSONLoader = g; a.createJSONLoader = function (t) { return new g(t) }; a.test = p; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6477. })
  6478. }, "esri/core/workers/loaderConfig": function () {
  6479. define(["exports",
  6480. "../../assets", "../has", "../urlUtils"], function (a, b, c, e) {
  6481. a.DEFAULT_LOADER_URL = null; a.DEFAULT_LOADER_URL = e.makeAbsolute(b.getAssetUrl("esri/core/workers/init.js")); var d = e.makeAbsolute(b.getAssetUrl("dojo/")); var l = [{ name: "esri", location: "../esri" }]; a.loaderConfig = function (r) {
  6482. const q = { async: r.async, isDebug: r.isDebug, locale: r.locale, baseUrl: r.baseUrl, has: { ...r.has }, map: { ...r.map }, packages: r.packages && r.packages.concat() || [], paths: { ...r.paths } }; r.hasOwnProperty("async") || (q.async = !0); r.hasOwnProperty("isDebug") ||
  6483. (q.isDebug = !1); r.baseUrl || (q.baseUrl = d); null == l ? void 0 : l.forEach(k => { a: { var m = q.packages; for (const g of m) if (g.name === k.name) break a; m.push(k) } }); return q
  6484. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6485. })
  6486. }, "esri/core/workers/WorkerFallback": function () {
  6487. define(["require", "../../chunks/_rollupPluginBabelHelpers", "../nextTick", "./RemoteClient", "./utils"], function (a, b, c, e, d) {
  6488. function l(q) {
  6489. if (q && q.__esModule) return q; const k = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
  6490. if (q) for (const m in q) if ("default" !== m) { const g = Object.getOwnPropertyDescriptor(q, m); Object.defineProperty(k, m, g.get ? g : { enumerable: !0, get: () => q[m] }) } k.default = q; return Object.freeze(k)
  6491. } let r = function () { const q = document.createDocumentFragment();["addEventListener", "dispatchEvent", "removeEventListener"].forEach(k => { this[k] = (...m) => q[k](...m) }) }; return function () {
  6492. function q() { this._dispatcher = new r; this._workerPostMessage({ type: d.MessageType.HANDSHAKE }) } var k = q.prototype; k.terminate = function () { }; k.postMessage =
  6493. function (m) { c.nextTick(() => { this._workerMessageHandler(new MessageEvent("message", { data: m })) }) }; k.dispatchEvent = function (m) { return this._dispatcher.dispatchEvent(m) }; k.addEventListener = function (m, g, p) { this._dispatcher.addEventListener(m, g, p) }; k.removeEventListener = function (m, g, p) { this._dispatcher.removeEventListener(m, g, p) }; k._workerPostMessage = function (m) { c.nextTick(() => { this.dispatchEvent(new MessageEvent("message", { data: m })) }) }; k._workerMessageHandler = function () {
  6494. var m = b._asyncToGenerator(function* (g) {
  6495. if ((g =
  6496. d.receiveMessage(g)) && g.type === d.MessageType.OPEN) { const { modulePath: p, jobId: t } = g; (g = yield e.loadWorker(p)) || (g = yield new Promise((n, u) => a([p], f => n(l(f)), u))); g = e.connect(g); this._workerPostMessage({ type: d.MessageType.OPENED, jobId: t, data: g }) }
  6497. }); return function (g) { return m.apply(this, arguments) }
  6498. }(); b._createClass(q, [{
  6499. key: "onmessage", get: function () { return this._onmessageHandler }, set: function (m) {
  6500. this._onmessageHandler && this.removeEventListener("message", this._onmessageHandler); (this._onmessageHandler =
  6501. m) && this.addEventListener("message", m)
  6502. }
  6503. }, { key: "onmessageerror", get: function () { return this._onmessageerrorHandler }, set: function (m) { this._onmessageerrorHandler && this.removeEventListener("messageerror", this._onmessageerrorHandler); (this._onmessageerrorHandler = m) && this.addEventListener("messageerror", m) } }, {
  6504. key: "onerror", get: function () { return this._onerrorHandler }, set: function (m) {
  6505. this._onerrorHandler && this.removeEventListener("error", this._onerrorHandler); (this._onerrorHandler = m) && this.addEventListener("error",
  6506. m)
  6507. }
  6508. }]); return q
  6509. }()
  6510. })
  6511. }, "esri/rest/query/operations/editsZScale": function () {
  6512. define(["exports", "../../../core/maybe", "../../../core/unitUtils", "../../../geometry/support/spatialReferenceUtils"], function (a, b, c, e) {
  6513. function d(r, q, k) { if (null == r.hasM || r.hasZ) for (const m of q) for (const g of m) 2 < g.length && (g[2] *= k) } function l(r, q, k) {
  6514. if (r) for (const p of r) {
  6515. r = p.geometry; var m = q, g = k; if (!b.isNone(r) && r.spatialReference && !e.equals(r.spatialReference, m) && (m = c.getMetersPerVerticalUnitForSR(r.spatialReference) / g, 1 !==
  6516. m)) if ("x" in r) null != r.z && (r.z *= m); else if ("rings" in r) d(r, r.rings, m); else if ("paths" in r) d(r, r.paths, m); else if ("points" in r && (null == r.hasM || r.hasZ)) for (const t of r.points) 2 < t.length && (t[2] *= m)
  6517. }
  6518. } a.unapplyEditsZUnitScaling = function (r, q, k) { if ((r || q) && k) { var m = c.getMetersPerVerticalUnitForSR(k); l(r, k, m); l(q, k, m) } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6519. })
  6520. }, "esri/rest/query/operations/queryZScale": function () {
  6521. define(["exports", "../../../core/maybe", "../../../geometry/support/zscale"],
  6522. function (a, b, c) { a.applyFeatureSetZUnitScaling = function (e, d, l) { if (l && l.features && l.hasZ && (e = c.getGeometryZScaler(l.geometryType, d, e.outSpatialReference), !b.isNone(e))) for (const r of l.features) e(r.geometry) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  6523. }, "esri/rest/support/FeatureSet": function () {
  6524. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../Graphic ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/SpatialReference ../../geometry/support/jsonUtils ../../layers/support/Field".split(" "),
  6525. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f) {
  6526. var h; const v = new d.JSONMap({ esriGeometryPoint: "point", esriGeometryMultipoint: "multipoint", esriGeometryPolyline: "polyline", esriGeometryPolygon: "polygon", esriGeometryEnvelope: "extent", mesh: "mesh", "": null }); d = h = function (y) {
  6527. function B(x) { x = y.call(this, x) || this; x.displayFieldName = null; x.exceededTransferLimit = !1; x.features = []; x.fields = null; x.geometryType = null; x.hasM = !1; x.hasZ = !1; x.queryGeometry = null; x.spatialReference = null; return x } a._inheritsLoose(B, y); var w =
  6528. B.prototype; w.readFeatures = function (x, z) { z = n.fromJSON(z.spatialReference); const C = []; for (let J = 0; J < x.length; J++) { var A = x[J]; const M = e.fromJSON(A); var D = A.geometry && A.geometry.spatialReference; q.isSome(M.geometry) && !D && (M.geometry.spatialReference = z); A = A.aggregateGeometries; D = M.aggregateGeometries; if (A && q.isSome(D)) for (const N in D) { const E = D[N]; var F = A[N]; F = null == F ? void 0 : F.spatialReference; q.isSome(E) && !F && (E.spatialReference = z) } C.push(M) } return C }; w.writeGeometryType = function (x, z, C, A) {
  6529. if (x) v.write(x,
  6530. z, C, A); else if ({ features: x } = this, x) for (const D of x) if (D && q.isSome(D.geometry)) { v.write(D.geometry.type, z, C, A); break }
  6531. }; w.readQueryGeometry = function (x, z) { if (!x) return null; const C = !!x.spatialReference; x = u.fromJSON(x); !C && z.spatialReference && (x.spatialReference = n.fromJSON(z.spatialReference)); return x }; w.writeSpatialReference = function (x, z) {
  6532. if (x) z.spatialReference = x.toJSON(); else if ({ features: x } = this, x) for (const C of x) if (C && q.isSome(C.geometry) && C.geometry.spatialReference) {
  6533. z.spatialReference = C.geometry.spatialReference.toJSON();
  6534. break
  6535. }
  6536. }; w.clone = function () { return new h(this.cloneProperties()) }; w.cloneProperties = function () { return r.clone({ displayFieldName: this.displayFieldName, exceededTransferLimit: this.exceededTransferLimit, features: this.features, fields: this.fields, geometryType: this.geometryType, hasM: this.hasM, hasZ: this.hasZ, queryGeometry: this.queryGeometry, spatialReference: this.spatialReference, transform: this.transform }) }; w.toJSON = function (x) {
  6537. const z = this.write(); if (z.features && Array.isArray(x) && 0 < x.length) for (let C = 0; C <
  6538. z.features.length; C++) { const A = z.features[C]; if (A.geometry) { const D = x && x[C]; A.geometry = D && D.toJSON() || A.geometry } } return z
  6539. }; w.quantize = function (x) { const { scale: [z, C], translate: [A, D] } = x, F = this.features, J = this._getQuantizationFunction(this.geometryType, M => Math.round((M - A) / z), M => Math.round((D - M) / C)); for (let M = 0, N = F.length; M < N; M++)J(q.unwrap(F[M].geometry)) || (F.splice(M, 1), M--, N--); this.transform = x; return this }; w.unquantize = function () {
  6540. const { geometryType: x, features: z, transform: C } = this; if (!C) return this;
  6541. const { translate: [A, D], scale: [F, J] } = C, M = this._getHydrationFunction(x, N => N * F + A, N => D - N * J); for (const { geometry: N } of z) q.isSome(N) && M(N); this.transform = null; return this
  6542. }; w._quantizePoints = function (x, z, C) { let A, D; const F = []; for (let M = 0, N = x.length; M < N; M++) { var J = x[M]; if (0 < M) { const E = z(J[0]); J = C(J[1]); if (E !== A || J !== D) F.push([E - A, J - D]), A = E, D = J } else A = z(J[0]), D = C(J[1]), F.push([A, D]) } return 0 < F.length ? F : null }; w._getQuantizationFunction = function (x, z, C) {
  6543. return "point" === x ? A => { A.x = z(A.x); A.y = C(A.y); return A } : "polyline" ===
  6544. x || "polygon" === x ? A => { const D = u.isPolygon(A) ? A.rings : A.paths, F = []; for (let J = 0, M = D.length; J < M; J++) { const N = this._quantizePoints(D[J], z, C); N && F.push(N) } return 0 < F.length ? (u.isPolygon(A) ? A.rings = F : A.paths = F, A) : null } : "multipoint" === x ? A => { const D = this._quantizePoints(A.points, z, C); return 0 < D.length ? (A.points = D, A) : null } : "extent" === x ? A => A : null
  6545. }; w._getHydrationFunction = function (x, z, C) {
  6546. if ("point" === x) return A => { A.x = z(A.x); A.y = C(A.y) }; if ("polyline" === x || "polygon" === x) return A => {
  6547. A = u.isPolygon(A) ? A.rings : A.paths;
  6548. let D, F; for (let J = 0, M = A.length; J < M; J++) { const N = A[J]; for (let E = 0, G = N.length; E < G; E++) { const H = N[E]; 0 < E ? (D += H[0], F += H[1]) : (D = H[0], F = H[1]); H[0] = z(D); H[1] = C(F) } }
  6549. }; if ("extent" === x) return A => { A.xmin = z(A.xmin); A.ymin = C(A.ymin); A.xmax = z(A.xmax); A.ymax = C(A.ymax) }; if ("multipoint" === x) return A => { A = A.points; let D, F; for (let J = 0, M = A.length; J < M; J++) { const N = A[J]; 0 < J ? (D += N[0], F += N[1]) : (D = N[0], F = N[1]); N[0] = z(D); N[1] = C(F) } }
  6550. }; return B
  6551. }(l.JSONSupport); b.__decorate([k.property({ type: String, json: { write: !0 } })], d.prototype,
  6552. "displayFieldName", void 0); b.__decorate([k.property({ type: Boolean, json: { write: { overridePolicy(y) { return { enabled: y } } } } })], d.prototype, "exceededTransferLimit", void 0); b.__decorate([k.property({ type: [e], json: { write: !0 } })], d.prototype, "features", void 0); b.__decorate([g.reader("features")], d.prototype, "readFeatures", null); b.__decorate([k.property({ type: [f], json: { write: !0 } })], d.prototype, "fields", void 0); b.__decorate([k.property({ type: "point multipoint polyline polygon extent mesh".split(" "), json: { read: { reader: v.read } } })],
  6553. d.prototype, "geometryType", void 0); b.__decorate([t.writer("geometryType")], d.prototype, "writeGeometryType", null); b.__decorate([k.property({ type: Boolean, json: { write: { overridePolicy(y) { return { enabled: y } } } } })], d.prototype, "hasM", void 0); b.__decorate([k.property({ type: Boolean, json: { write: { overridePolicy(y) { return { enabled: y } } } } })], d.prototype, "hasZ", void 0); b.__decorate([k.property({ types: c.geometryTypes, json: { write: !0 } })], d.prototype, "queryGeometry", void 0); b.__decorate([g.reader("queryGeometry")], d.prototype,
  6554. "readQueryGeometry", null); b.__decorate([k.property({ type: n, json: { write: !0 } })], d.prototype, "spatialReference", void 0); b.__decorate([t.writer("spatialReference")], d.prototype, "writeSpatialReference", null); b.__decorate([k.property({ json: { write: !0 } })], d.prototype, "transform", void 0); d = h = b.__decorate([p.subclass("esri.rest.support.FeatureSet")], d); d.prototype.toJSON.isDefaultToJSON = !0; return d
  6555. })
  6556. }, "esri/layers/support/Field": function () {
  6557. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ./domains ./fieldType".split(" "),
  6558. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  6559. var n; const u = new c.JSONMap({ binary: "binary", coordinate: "coordinate", countOrAmount: "count-or-amount", dateAndTime: "date-and-time", description: "description", locationOrPlaceName: "location-or-place-name", measurement: "measurement", nameOrTitle: "name-or-title", none: "none", orderedOrRanked: "ordered-or-ranked", percentageOrRatio: "percentage-or-ratio", typeOrCategory: "type-or-category", uniqueIdentifier: "unique-identifier" }); c = n = function (f) {
  6560. function h(y) {
  6561. y = f.call(this, y) || this;
  6562. y.alias = null; y.defaultValue = void 0; y.description = null; y.domain = null; y.editable = !0; y.length = -1; y.name = null; y.nullable = !0; y.type = null; y.valueType = null; return y
  6563. } a._inheritsLoose(h, f); var v = h.prototype; v.readDescription = function (y, { description: B }) { let w; try { w = JSON.parse(B) } catch (x) { } return w ? w.value : null }; v.readValueType = function (y, { description: B }) { let w; try { w = JSON.parse(B) } catch (x) { } return w ? u.fromJSON(w.fieldValueType) : null }; v.clone = function () {
  6564. return new n({
  6565. alias: this.alias, defaultValue: this.defaultValue,
  6566. description: this.description, domain: this.domain && this.domain.clone() || null, editable: this.editable, length: this.length, name: this.name, nullable: this.nullable, type: this.type, valueType: this.valueType
  6567. })
  6568. }; return h
  6569. }(e.JSONSupport); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype, "alias", void 0); b.__decorate([d.property({ type: [String, Number], json: { write: { allowNull: !0 } } })], c.prototype, "defaultValue", void 0); b.__decorate([d.property()], c.prototype, "description", void 0); b.__decorate([m.reader("description")],
  6570. c.prototype, "readDescription", null); b.__decorate([d.property({ types: p.types, json: { read: { reader: p.fromJSON }, write: !0 } })], c.prototype, "domain", void 0); b.__decorate([d.property({ type: Boolean, json: { write: !0 } })], c.prototype, "editable", void 0); b.__decorate([d.property({ type: q.Integer, json: { write: !0 } })], c.prototype, "length", void 0); b.__decorate([d.property({ type: String, json: { write: !0 } })], c.prototype, "name", void 0); b.__decorate([d.property({ type: Boolean, json: { write: !0 } })], c.prototype, "nullable", void 0); b.__decorate([k.enumeration(t.kebabDict)],
  6571. c.prototype, "type", void 0); b.__decorate([d.property()], c.prototype, "valueType", void 0); b.__decorate([m.reader("valueType", ["description"])], c.prototype, "readValueType", null); return c = n = b.__decorate([g.subclass("esri.layers.support.Field")], c)
  6572. })
  6573. }, "esri/layers/support/fieldType": function () {
  6574. define(["exports", "../../core/jsonMap"], function (a, b) {
  6575. b = new b.JSONMap({
  6576. esriFieldTypeSmallInteger: "small-integer", esriFieldTypeInteger: "integer", esriFieldTypeSingle: "single", esriFieldTypeDouble: "double", esriFieldTypeLong: "long",
  6577. esriFieldTypeString: "string", esriFieldTypeDate: "date", esriFieldTypeOID: "oid", esriFieldTypeGeometry: "geometry", esriFieldTypeBlob: "blob", esriFieldTypeRaster: "raster", esriFieldTypeGUID: "guid", esriFieldTypeGlobalID: "global-id", esriFieldTypeXML: "xml"
  6578. }); a.kebabDict = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6579. })
  6580. }, "esri/layers/mixins/APIKeyMixin": function () {
  6581. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  6582. function (a, b, c, e, d, l, r, q) {
  6583. a.APIKeyMixin = k => {
  6584. k = function (m) { function g() { return m.apply(this, arguments) || this } b._inheritsLoose(g, m); b._createClass(g, [{ key: "apiKey", get: function () { var p; return this._isOverridden("apiKey") ? this._get("apiKey") : "portalItem" in this ? null == (p = this.portalItem) ? void 0 : p.apiKey : null }, set: function (p) { null != p ? this._override("apiKey", p) : (this._clearOverride("apiKey"), this.clear("apiKey", "user")) } }]); return g }(k); c.__decorate([e.property({ type: String })], k.prototype, "apiKey", null);
  6585. return k = c.__decorate([q.subclass("esri.layers.mixins.APIKeyMixin")], k)
  6586. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6587. })
  6588. }, "esri/layers/mixins/ArcGISService": function () {
  6589. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/arcgisLayerUrl".split(" "),
  6590. function (a, b, c, e, d, l, r, q, k, m, g) {
  6591. a.ArcGISService = p => {
  6592. p = function (t) {
  6593. function n() { return t.apply(this, arguments) || this } b._inheritsLoose(n, t); b._createClass(n, [{ key: "title", get: function () { if (this._get("title") && "defaults" !== this.originOf("title")) return this._get("title"); if (this.url) { const u = g.parse(this.url); if (d.isSome(u) && u.title) return u.title } return this._get("title") || "" }, set: function (u) { this._set("title", u) } }, { key: "url", set: function (u) { this._set("url", g.sanitizeUrl(u, e.getLogger(this.declaredClass))) } }]);
  6594. return n
  6595. }(p); c.__decorate([l.property()], p.prototype, "title", null); c.__decorate([l.property({ type: String })], p.prototype, "url", null); return p = c.__decorate([m.subclass("esri.layers.mixins.ArcGISService")], p)
  6596. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6597. })
  6598. }, "esri/layers/support/arcgisLayerUrl": function () {
  6599. define(["exports", "../../core/maybe", "../../core/urlUtils", "../../chunks/persistableUrlUtils"], function (a, b, c, e) {
  6600. function d(t) {
  6601. if (b.isNone(t)) return null;
  6602. t = c.urlToObject(t); t = t.path.match(m) || t.path.match(g); if (!t) return null; const [, n, u, f, h] = t; t = u.indexOf("/"); return { title: r(-1 !== t ? u.slice(t + 1) : u), serverType: q[f.toLowerCase()], sublayer: null != h && "" !== h ? parseInt(h, 10) : null, url: { path: n } }
  6603. } function l(t) { return (t = c.urlToObject(t).path.match(p)) ? { serviceUrl: t[1], sublayerId: Number(t[2]) } : null } function r(t) { t = t.replace(/\s*[/_]+\s*/g, " "); return t[0].toUpperCase() + t.slice(1) } const q = {
  6604. mapserver: "MapServer", imageserver: "ImageServer", featureserver: "FeatureServer",
  6605. sceneserver: "SceneServer", streamserver: "StreamServer", vectortileserver: "VectorTileServer"
  6606. }, k = Object.values(q), m = new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${k.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`, "i"), g = new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${k.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`, "i"), p = /(.*?)\/(?:layers\/)?(\d+)\/?$/i; a.cleanTitle = r; a.isAGOLUrl = function (t) { return t ? (new c.Url(c.makeAbsolute(t))).authority.toLowerCase().includes("arcgis.com") : !1 };
  6607. a.isArcGISUrl = function (t) { return !!m.test(t) }; a.isHostedAgolService = function (t) { if (!t) return !1; t = t.toLowerCase(); const n = t.includes(".arcgis.com/"); t = t.includes("//services") || t.includes("//tiles") || t.includes("//features"); return n && t }; a.isHostedSecuredProxyService = function (t, n) { return n && t && t.toLowerCase().includes(n.toLowerCase()) }; a.isServerOrServicesAGOLUrl = function (t) {
  6608. if (!t) return !1; t = (new c.Url(c.makeAbsolute(t))).authority.toLowerCase(); return "server.arcgisonline.com" === t || "services.arcgisonline.com" ===
  6609. t
  6610. }; a.isWmsServer = function (t) { if (!t) return !1; var n = t.toLowerCase(); t = n.includes("/services/"); const u = n.includes("/mapserver/wmsserver"), f = n.includes("/imageserver/wmsserver"); n = n.includes("/wmsserver"); return t && (u || f || n) }; a.parse = d; a.parseNonStandardSublayerUrl = l; a.sanitizeUrl = function (t, n) { return t ? c.removeTrailingSlash(c.removeQueryParameters(t, n)) : t }; a.sanitizeUrlWithLayerId = function (t) {
  6611. let { url: n } = t; if (!n) return { url: n }; n = c.removeQueryParameters(n, t.logger); const u = c.urlToObject(n), f = d(u.path);
  6612. let h; b.isSome(f) ? (null != f.sublayer && null == t.layer.layerId && (h = f.sublayer), n = f.url.path) : t.nonStandardUrlAllowed && (t = l(u.path), b.isSome(t) && (n = t.serviceUrl, h = t.sublayerId)); return { url: c.removeTrailingSlash(n), layerId: h }
  6613. }; a.serverTypes = k; a.titleFromUrlAndName = function (t, n) { const u = []; t && (t = d(t), b.isSome(t) && t.title && u.push(t.title)); n && (n = r(n), u.push(n)); if (2 === u.length) { if (u[0].toLowerCase().includes(u[1].toLowerCase())) return u[0]; if (u[1].toLowerCase().includes(u[0].toLowerCase())) return u[1] } return u.join(" - ") };
  6614. a.writeUrlWithLayerId = function (t, n, u, f, h) { e.write(n, f, "url", h); f.url && null != t.layerId && (f.url = c.join(f.url, u, t.layerId.toString())) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6615. })
  6616. }, "esri/layers/mixins/BlendLayer": function () {
  6617. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../effects/jsonUtils".split(" "),
  6618. function (a, b, c, e, d, l, r, q, k) {
  6619. const m = { read: { reader: k.read }, write: { allowNull: !0, writer: k.write } }; a.BlendLayer = g => {
  6620. g = function (p) { function t() { var n = p.apply(this, arguments) || this; n.blendMode = "normal"; n.effect = null; return n } b._inheritsLoose(t, p); return t }(g); c.__decorate([e.property({
  6621. type: "average color-burn color-dodge color darken destination-atop destination-in destination-out destination-over difference exclusion hard-light hue invert lighten lighter luminosity minus multiply normal overlay plus reflect saturation screen soft-light source-atop source-in source-out vivid-light xor".split(" "),
  6622. nonNullable: !0, json: { read: !1, write: !1, origins: { "web-map": { read: !0, write: !0 }, "portal-item": { read: !0, write: !0 } } }
  6623. })], g.prototype, "blendMode", void 0); c.__decorate([e.property({ json: { read: !1, write: !1, origins: { "web-map": m, "portal-item": m } } })], g.prototype, "effect", void 0); return g = c.__decorate([q.subclass("esri.layers.mixins.BlendLayer")], g)
  6624. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6625. })
  6626. }, "esri/layers/effects/jsonUtils": function () {
  6627. define(["exports", "../../core/Error",
  6628. "../../core/object", "./parser", "./utils"], function (a, b, c, e, d) {
  6629. function l(m) { return (m = e.parse(m)) ? d.isEffectFunctions(m) ? m.map(g => g.toJSON()) : m.map(({ scale: g, effects: p }) => ({ scale: g, value: p.map(t => t.toJSON()) })) : null } function r(m) { if (!m || 0 === m.length) return null; var g = (g = m[0]) ? "scale" in g : !1; if (g) { g = []; for (const p of m) g.push({ scale: p.scale, value: q(p.value) }); return g } return q(m) } function q(m) {
  6630. if (!m || !m.length) return ""; const g = []; for (const u of m) {
  6631. m = []; switch (u.type) {
  6632. case "grayscale": case "sepia": case "saturate": case "invert": case "brightness": case "contrast": case "opacity": m =
  6633. [k(u, "amount")]; break; case "blur": m = [k(u, "radius", "pt")]; break; case "hue-rotate": m = [k(u, "angle", "deg")]; break; case "drop-shadow": m = k(u, "xoffset", "pt"); var p = k(u, "yoffset", "pt"), t = k(u, "blurRadius", "pt"); var n = u; if (null == n.color) throw new b("effect:missing-parameter", `Missing parameter '${"color"}' in ${n.type} effect`, { effect: n }); n = n.color; n = `rgba(${n[0] || 0}, ${n[1] || 0}, ${n[2] || 0}, ${n[3] / 255 || 0})`; m = [m, p, t, n]; break; case "bloom": m = [k(u, "strength"), k(u, "radius", "pt"), k(u, "threshold")]
  6634. }m = `${u.type}(${m.filter(Boolean).join(" ")})`;
  6635. e.parse(m); g.push(m)
  6636. } return g.join(" ")
  6637. } function k(m, g, p) { if (null == m[g]) throw new b("effect:missing-parameter", `Missing parameter '${g}' in ${m.type} effect`, { effect: m }); return p ? m[g] + p : "" + m[g] } a.effectFunctionsFromJSON = q; a.fromJSON = r; a.read = function (m, g, p) { try { return r(m) } catch (n) { var t; null == p ? void 0 : null == (t = p.messages) ? void 0 : t.push(n) } return null }; a.toJSON = l; a.write = function (m, g, p, t) { try { const n = l(m); c.setDeepValue(p, n, g) } catch (n) { t.messages && t.messages.push(n) } }; Object.defineProperties(a, {
  6638. __esModule: { value: !0 },
  6639. [Symbol.toStringTag]: { value: "Module" }
  6640. })
  6641. })
  6642. }, "esri/layers/effects/parser": function () {
  6643. define("exports ../../colorUtils ../../core/Error ./effects ../../chunks/_commonjsHelpers ./utils".split(" "), function (a, b, c, e, d, l) {
  6644. function r(w) { let x; if (!w) return []; try { x = f.exports.parse(w) } catch (z) { throw new c("effect:invalid-syntax", "Invalid effect syntax", { value: w, error: z }); } return x.map(z => q(z)) } function q(w) {
  6645. try {
  6646. switch (w.name) {
  6647. case "grayscale": case "sepia": case "saturate": case "invert": case "brightness": case "contrast": var x,
  6648. z = 1; k(w.parameters, 1); 1 === w.parameters.length && (z = p(w.parameters[0])); return x = new e.ColorMatrixEffect(w.name, z); case "opacity": var C; z = 1; k(w.parameters, 1); 1 === w.parameters.length && (z = p(w.parameters[0])); return C = new e.OpacityEffect(z); case "hue-rotate": var A; z = 0; k(w.parameters, 1); if (1 === w.parameters.length) {
  6649. var D = w.parameters[0]; if ("quantity" !== D.type || !(0 === D.value && null === D.unit || D.unit && null != h[D.unit])) throw new c("effect:type-error", `Expected <angle>, Actual: ${m(D)}`, { term: D }); z = D.value * h[D.unit] ||
  6650. 0
  6651. } return A = new e.HueRotateEffect(z); case "blur": var F; z = 0; k(w.parameters, 1); 1 === w.parameters.length && (z = n(w.parameters[0]), g(z, w.parameters[0])); return F = new e.BlurEffect(z); case "drop-shadow": C = []; A = null; for (var J of w.parameters) if ("color" === J.type) {
  6652. C.length && Object.freeze(C); if (A) throw new c("effect:type-error", "Accepts only one color", {}); a: {
  6653. var M = void 0; x = J; switch (x.colorType) {
  6654. case "hex": A = b.hex2rgba(x.value); break a; case "named": A = u(x.value); break a; case "function": var N = x.value; k(N.parameters,
  6655. 4); if (y.test(N.name)) M = [p(N.parameters[0]), p(N.parameters[1]), p(N.parameters[2]), N.parameters[3] ? p(N.parameters[3]) : 1]; else if (B.test(N.name)) M = b.hsla2rgba(t(N.parameters[0]), p(N.parameters[1]), p(N.parameters[2]), N.parameters[3] ? p(N.parameters[3]) : 1); else throw new c("effect:syntax-error", `Invalid color function '${N.name}'`, { colorFunction: N }); A = M; break a
  6656. }A = void 0
  6657. }
  6658. } else {
  6659. const E = n(J); if (Object.isFrozen(C)) throw new c("effect:type-error", "\x3clength\x3e parameters not consecutive", { lengths: C }); C.push(E);
  6660. 3 === C.length && g(E, J)
  6661. } if (2 > C.length || 3 < C.length) throw new c("effect:type-error", `Expected <length>{2,3}, Actual: <length>{${C.length}}`, { lengths: C }); return z = new e.DropShadowEffect(C[0], C[1], C[2] || 0, A || u("black")); case "bloom": return z = 1, J = N = 0, k(w.parameters, 3), w.parameters[0] && (z = p(w.parameters[0])), w.parameters[1] && (N = n(w.parameters[1]), g(N, w.parameters[1])), w.parameters[2] && (J = p(w.parameters[2])), M = new e.BloomEffect(z, N, J)
  6662. }
  6663. } catch (E) { throw E.details.filter = w, E; } throw new c("effect:unknown-effect",
  6664. `Effect '${w.name}' is not supported`, { effect: w });
  6665. } function k(w, x) { if (w.length > x) throw new c("effect:type-error", `Function supports up to ${x} parameters, Actual: ${w.length}`, { parameters: w }); } function m(w) { if ("color" === w.type) return "\x3ccolor\x3e"; if (w.unit) { if (v[w.unit]) return "\x3clength\x3e"; if (h[w.unit]) return "\x3cangle\x3e"; if ("%" === w.unit) return "\x3cpercentage\x3e" } return "\x3cdouble\x3e" } function g(w, x) {
  6666. if (0 > w) throw new c("effect:type-error", `Negative values are not allowed, Actual: ${w}`, { term: x });
  6667. } function p(w) { if ("quantity" !== w.type || null !== w.unit && "%" !== w.unit) throw new c("effect:type-error", `Expected <double> or <percentage>, Actual: ${m(w)}`, { term: w }); const x = w.value; g(x, w); return "%" === w.unit ? .01 * x : x } function t(w) { if ("quantity" !== w.type || null !== w.unit) throw new c("effect:type-error", `Expected <double>, Actual: ${m(w)}`, { term: w }); g(w.value, w); return w.value } function n(w) {
  6668. if ("quantity" !== w.type || !(0 === w.value && null === w.unit || w.unit && null != v[w.unit])) throw new c("effect:type-error", `Expected <length>, Actual: ${m(w)}`,
  6669. { term: w }); return w.value * v[w.unit] || 0
  6670. } function u(w) { if (!b.isNamedColor(w)) throw new c("effect:unknown-color", `color '${w}' isn't valid`, { namedColor: w }); return b.getNamedColorCopy(w) } var f = { exports: {} }; (function (w) {
  6671. (function (x, z) { w.exports && (w.exports = z()) })(d.commonjsGlobal, function () {
  6672. function x(C, A, D, F) { C = Error.call(this, C); Object.setPrototypeOf && Object.setPrototypeOf(C, x.prototype); C.expected = A; C.found = D; C.location = F; C.name = "SyntaxError"; return C } function z(C, A, D) {
  6673. D = D || " "; if (C.length > A) return C;
  6674. A -= C.length; D += D.repeat(A); return C + D.slice(0, A)
  6675. } (function (C, A) { function D() { this.constructor = C } D.prototype = A.prototype; C.prototype = new D })(x, Error); x.prototype.format = function (C) {
  6676. var A = "Error: " + this.message; if (this.location) {
  6677. var D = null, F; for (F = 0; F < C.length; F++)if (C[F].source === this.location.source) { D = C[F].text.split(/\r\n|\n|\r/g); break } C = this.location.start; F = this.location.source + ":" + C.line + ":" + C.column; if (D) {
  6678. var J = this.location.end, M = z("", C.line.toString().length); D = D[C.line - 1]; J = C.line === J.line ?
  6679. J.column : D.length + 1; A += "\n --\x3e " + F + "\n" + M + " |\n" + C.line + " | " + D + "\n" + M + " | " + z("", C.column - 1) + z("", J - C.column, "^")
  6680. } else A += "\n at " + F
  6681. } return A
  6682. }; x.buildMessage = function (C, A) {
  6683. function D(E) { return E.charCodeAt(0).toString(16).toUpperCase() } function F(E) { return E.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function (G) { return "\\x0" + D(G) }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (G) { return "\\x" + D(G) }) }
  6684. function J(E) { return E.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function (G) { return "\\x0" + D(G) }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (G) { return "\\x" + D(G) }) } function M(E) { return N[E.type](E) } var N = {
  6685. literal: function (E) { return '"' + F(E.text) + '"' }, class: function (E) {
  6686. var G = E.parts.map(function (H) { return Array.isArray(H) ? J(H[0]) + "-" + J(H[1]) : J(H) }); return "[" +
  6687. (E.inverted ? "^" : "") + G + "]"
  6688. }, any: function () { return "any character" }, end: function () { return "end of input" }, other: function (E) { return E.description }
  6689. }; return "Expected " + function (E) { E = E.map(M); var G, H; E.sort(); if (0 < E.length) { for (H = G = 1; G < E.length; G++)E[G - 1] !== E[G] && (E[H] = E[G], H++); E.length = H } switch (E.length) { case 1: return E[0]; case 2: return E[0] + " or " + E[1]; default: return E.slice(0, -1).join(", ") + ", or " + E[E.length - 1] } }(C) + " but " + (A ? '"' + F(A) + '"' : "end of input") + " found."
  6690. }; return {
  6691. SyntaxError: x, parse: function (C,
  6692. A) {
  6693. function D(Pa, va) { return { type: "literal", text: Pa, ignoreCase: va } } function F(Pa, va, Ma) { return { type: "class", parts: Pa, inverted: va, ignoreCase: Ma } } function J(Pa) { return { type: "other", description: Pa } } function M(Pa) { var va = ia[Pa], Ma; if (!va) { for (Ma = Pa - 1; !ia[Ma];)Ma--; va = ia[Ma]; for (va = { line: va.line, column: va.column }; Ma < Pa;)10 === C.charCodeAt(Ma) ? (va.line++, va.column = 1) : va.column++, Ma++; ia[Pa] = va } return va } function N(Pa, va) {
  6694. var Ma = M(Pa), Va = M(va); return {
  6695. source: na, start: { offset: Pa, line: Ma.line, column: Ma.column },
  6696. end: { offset: va, line: Va.line, column: Va.column }
  6697. }
  6698. } function E(Pa) { T < Aa || (T > Aa && (Aa = T, Sa = []), Sa.push(Pa)) } function G() { Fa++; var Pa = T; S(); if (C.substr(T, 4) === Ka) { var va = Ka; T += 4 } else va = O, 0 === Fa && E(wa); va !== O ? (S(), ka = Pa, Pa = []) : (T = Pa, Pa = O); Fa--; Pa === O && 0 === Fa && E(ja); if (Pa === O) if (Pa = [], va = H(), va !== O) for (; va !== O;)Pa.push(va), va = H(); else Pa = O; return Pa } function H() {
  6699. var Pa = T; S(); Fa++; var va = T; var Ma = fa(); if (Ma !== O) { if (40 === C.charCodeAt(T)) { var Va = oa; T++ } else Va = O, 0 === Fa && E(Ba); Va !== O ? (ka = va, va = Ma) : (T = va, va = O) } else T =
  6700. va, va = O; Fa--; va === O && (Ma = O, 0 === Fa && E(ma)); if (va !== O) {
  6701. S(); Ma = T; Va = K(); if (Va !== O) { var ab = []; var bb = T; var ib = S(); if (44 === C.charCodeAt(T)) { var kb = W; T++ } else kb = O, 0 === Fa && E(Ga); kb === O && (kb = null); var mb = S(); var lb = K(); lb !== O ? bb = ib = [ib, kb, mb, lb] : (T = bb, bb = O); for (; bb !== O;)ab.push(bb), bb = T, ib = S(), 44 === C.charCodeAt(T) ? (kb = W, T++) : (kb = O, 0 === Fa && E(Ga)), kb === O && (kb = null), mb = S(), lb = K(), lb !== O ? bb = ib = [ib, kb, mb, lb] : (T = bb, bb = O); ka = Ma; Ma = 0 < ab.length ? [Va].concat(ba(ab, 3)) : [Va] } else T = Ma, Ma = O; Ma === O && (Ma = null); S(); 41 ===
  6702. C.charCodeAt(T) ? (Va = sa, T++) : (Va = O, 0 === Fa && E(za)); Va !== O ? (S(), ka = Pa, Pa = { type: "function", name: va, parameters: Ma || [] }) : (T = Pa, Pa = O)
  6703. } else T = Pa, Pa = O; return Pa
  6704. } function K() {
  6705. var Pa = T; Fa++; var va = T; S(); var Ma = ha(); if (Ma !== O) { if (37 === C.charCodeAt(T)) { var Va = ya; T++ } else Va = O, 0 === Fa && E(Ia); Va !== O ? (ka = va, va = { value: Ma, unit: "%" }) : (T = va, va = O) } else T = va, va = O; Fa--; va === O && 0 === Fa && E(Oa); va === O && (Fa++, va = T, S(), Ma = ha(), Ma !== O ? (C.substr(T, 2) === I ? (Va = I, T += 2) : (Va = O, 0 === Fa && E(Qa)), Va !== O ? (ka = va, va = { value: Ma, unit: "px" }) : (T =
  6706. va, va = O)) : (T = va, va = O), va === O && (va = T, S(), Ma = ha(), Ma !== O ? (C.substr(T, 2) === P ? (Va = P, T += 2) : (Va = O, 0 === Fa && E(Za)), Va !== O ? (ka = va, va = { value: Ma, unit: "cm" }) : (T = va, va = O)) : (T = va, va = O), va === O && (va = T, S(), Ma = ha(), Ma !== O ? (C.substr(T, 2) === Z ? (Va = Z, T += 2) : (Va = O, 0 === Fa && E($a)), Va !== O ? (ka = va, va = { value: Ma, unit: "mm" }) : (T = va, va = O)) : (T = va, va = O), va === O && (va = T, S(), Ma = ha(), Ma !== O ? (C.substr(T, 2) === Q ? (Va = Q, T += 2) : (Va = O, 0 === Fa && E(cb)), Va !== O ? (ka = va, va = { value: Ma, unit: "in" }) : (T = va, va = O)) : (T = va, va = O), va === O && (va = T, S(), Ma = ha(), Ma !== O ?
  6707. (C.substr(T, 2) === V ? (Va = V, T += 2) : (Va = O, 0 === Fa && E(qa)), Va !== O ? (ka = va, va = { value: Ma, unit: "pt" }) : (T = va, va = O)) : (T = va, va = O), va === O && (va = T, S(), Ma = ha(), Ma !== O ? (C.substr(T, 2) === da ? (Va = da, T += 2) : (Va = O, 0 === Fa && E(fb)), Va !== O ? (ka = va, va = { value: Ma, unit: "pc" }) : (T = va, va = O)) : (T = va, va = O)))))), Fa--, va === O && 0 === Fa && E(Ta), va === O && (Fa++, va = T, Ma = ha(), Ma !== O ? (C.substr(T, 3) === ea ? (Va = ea, T += 3) : (Va = O, 0 === Fa && E(gb)), Va !== O ? (ka = va, va = { value: Ma, unit: "deg" }) : (T = va, va = O)) : (T = va, va = O), va === O && (va = T, Ma = ha(), Ma !== O ? (C.substr(T, 3) === pa ?
  6708. (Va = pa, T += 3) : (Va = O, 0 === Fa && E(jb)), Va !== O ? (ka = va, va = { value: Ma, unit: "rad" }) : (T = va, va = O)) : (T = va, va = O), va === O && (va = T, Ma = ha(), Ma !== O ? (C.substr(T, 4) === la ? (Va = la, T += 4) : (Va = O, 0 === Fa && E(Ya)), Va !== O ? (ka = va, va = { value: Ma, unit: "grad" }) : (T = va, va = O)) : (T = va, va = O), va === O && (va = T, Ma = ha(), Ma !== O ? (C.substr(T, 4) === L ? (Va = L, T += 4) : (Va = O, 0 === Fa && E(db)), Va !== O ? (ka = va, va = { value: Ma, unit: "turn" }) : (T = va, va = O)) : (T = va, va = O)))), Fa--, va === O && (Ma = O, 0 === Fa && E(hb)), va === O && (Fa++, va = T, S(), Ma = ha(), Ma !== O ? (ka = va, va = { value: Ma, unit: null }) :
  6709. (T = va, va = O), Fa--, va === O && 0 === Fa && E(aa)))); va !== O && (ka = Pa, va = { type: "quantity", value: va.value, unit: va.unit }); Pa = va; if (Pa === O) {
  6710. Pa = T; Fa++; va = T; 35 === C.charCodeAt(T) ? (Ma = R, T++) : (Ma = O, 0 === Fa && E(Y)); if (Ma !== O) { Ma = []; Ra.test(C.charAt(T)) ? (Va = C.charAt(T), T++) : (Va = O, 0 === Fa && E(ua)); if (Va !== O) for (; Va !== O;)Ma.push(Va), Ra.test(C.charAt(T)) ? (Va = C.charAt(T), T++) : (Va = O, 0 === Fa && E(ua)); else Ma = O; Ma !== O ? (ka = va, va = { type: "hex", value: C.substring(ka, T) }) : (T = va, va = O) } else T = va, va = O; va === O && (va = T, Ma = H(), Ma !== O && (ka = va, Ma = {
  6711. type: "function",
  6712. value: Ma
  6713. }), va = Ma, va === O && (va = T, Ma = fa(), Ma !== O && (ka = va, Ma = { type: "named", value: C.substring(ka, T) }), va = Ma)); Fa--; va === O && (Ma = O, 0 === Fa && E(U)); va !== O && (ka = Pa, va = { type: "color", colorType: va.type, value: va.value }); Pa = va
  6714. } return Pa
  6715. } function S() { Fa++; var Pa = []; if (Ca.test(C.charAt(T))) { var va = C.charAt(T); T++ } else va = O, 0 === Fa && E(ca); for (; va !== O;)Pa.push(va), Ca.test(C.charAt(T)) ? (va = C.charAt(T), T++) : (va = O, 0 === Fa && E(ca)); Fa--; va = O; 0 === Fa && E(Na); return Pa } function fa() {
  6716. Fa++; var Pa = T; var va = []; if (Ha.test(C.charAt(T))) {
  6717. var Ma =
  6718. C.charAt(T); T++
  6719. } else Ma = O, 0 === Fa && E(Ea); if (Ma !== O) for (; Ma !== O;)va.push(Ma), Ha.test(C.charAt(T)) ? (Ma = C.charAt(T), T++) : (Ma = O, 0 === Fa && E(Ea)); else va = O; va !== O && (ka = Pa, va = C.substring(ka, T)); Pa = va; Fa--; Pa === O && (va = O, 0 === Fa && E(xa)); return Pa
  6720. } function ha() {
  6721. var Pa = T; Ua.test(C.charAt(T)) ? (C.charAt(T), T++) : 0 === Fa && E(Ja); var va = T; var Ma = []; if (Xa.test(C.charAt(T))) { var Va = C.charAt(T); T++ } else Va = O, 0 === Fa && E(La); for (; Va !== O;)Ma.push(Va), Xa.test(C.charAt(T)) ? (Va = C.charAt(T), T++) : (Va = O, 0 === Fa && E(La)); 46 === C.charCodeAt(T) ?
  6722. (Va = X, T++) : (Va = O, 0 === Fa && E(Wa)); if (Va !== O) { var ab = []; if (Xa.test(C.charAt(T))) { var bb = C.charAt(T); T++ } else bb = O, 0 === Fa && E(La); if (bb !== O) for (; bb !== O;)ab.push(bb), Xa.test(C.charAt(T)) ? (bb = C.charAt(T), T++) : (bb = O, 0 === Fa && E(La)); else ab = O; ab !== O ? va = Ma = [Ma, Va, ab] : (T = va, va = O) } else T = va, va = O; if (va === O) if (va = [], Xa.test(C.charAt(T)) ? (Ma = C.charAt(T), T++) : (Ma = O, 0 === Fa && E(La)), Ma !== O) for (; Ma !== O;)va.push(Ma), Xa.test(C.charAt(T)) ? (Ma = C.charAt(T), T++) : (Ma = O, 0 === Fa && E(La)); else va = O; if (va !== O) {
  6723. Ma = T; 101 === C.charCodeAt(T) ?
  6724. (Va = ta, T++) : (Va = O, 0 === Fa && E(eb)); if (Va !== O) { Ua.test(C.charAt(T)) ? (ab = C.charAt(T), T++) : (ab = O, 0 === Fa && E(Ja)); ab === O && (ab = null); bb = []; Xa.test(C.charAt(T)) ? (va = C.charAt(T), T++) : (va = O, 0 === Fa && E(La)); if (va !== O) for (; va !== O;)bb.push(va), Xa.test(C.charAt(T)) ? (va = C.charAt(T), T++) : (va = O, 0 === Fa && E(La)); else bb = O; bb !== O ? Ma = Va = [Va, ab, bb] : (T = Ma, Ma = O) } else T = Ma, Ma = O; Ma === O && (Ma = null); ka = Pa; Pa = parseFloat(C.substring(ka, T))
  6725. } else T = Pa, Pa = O; return Pa
  6726. } function ba(Pa, va) { return Pa.map(function (Ma) { return Ma[va] }) } A = void 0 !==
  6727. A ? A : {}; var O = {}, na = A.grammarSource, ra = { start: G }, Da = G, Ka = "none", sa = ")", W = ",", oa = "(", ya = "%", I = "px", P = "cm", Z = "mm", Q = "in", V = "pt", da = "pc", ea = "deg", pa = "rad", la = "grad", L = "turn", R = "#", X = ".", ta = "e", Ca = /^[ \t\n\r]/, Ha = /^[a-z\-]/, Ra = /^[0-9a-fA-F]/, Ua = /^[+\-]/, Xa = /^[0-9]/, ja = J("none"), wa = D("none", !1), za = D(")", !1), Ga = D(",", !1), Na = J("whitespace"), ca = F([" ", "\t", "\n", "\r"], !1, !1), ma = J("function"), Ba = D("(", !1), xa = J("identifier"), Ea = F([["a", "z"], "-"], !1, !1), Oa = J("percentage"), Ia = D("%", !1), Ta = J("length"), Qa = D("px",
  6728. !1), Za = D("cm", !1), $a = D("mm", !1), cb = D("in", !1), qa = D("pt", !1), fb = D("pc", !1), hb = J("angle"), gb = D("deg", !1), jb = D("rad", !1), Ya = D("grad", !1), db = D("turn", !1), aa = J("number"), U = J("color"), Y = D("#", !1), ua = F([["0", "9"], ["a", "f"], ["A", "F"]], !1, !1), Ja = F(["+", "-"], !1, !1), La = F([["0", "9"]], !1, !1), Wa = D(".", !1), eb = D("e", !1), T = 0, ka = 0, ia = [{ line: 1, column: 1 }], Aa = 0, Sa = [], Fa = 0; if ("startRule" in A) { if (!(A.startRule in ra)) throw Error("Can't start parsing from rule \"" + A.startRule + '".'); Da = ra[A.startRule] } A = Da(); if (A !== O && T ===
  6729. C.length) return A; A !== O && T < C.length && E({ type: "end" }); throw function (Pa, va, Ma) { return new x(x.buildMessage(Pa, va), Pa, va, Ma) }(Sa, Aa < C.length ? C.charAt(Aa) : null, Aa < C.length ? N(Aa, Aa + 1) : N(Aa, Aa));
  6730. }
  6731. }
  6732. })
  6733. })(f); const h = { deg: 1, grad: .9, rad: 180 / Math.PI, turn: 360 }, v = { px: 1, cm: 96 / 2.54, mm: 96 / 2.54 / 10, in: 96, pc: 16, pt: 96 / 72 }, y = /^rgba?/i, B = /^hsla?/i; a.parse = function (w) {
  6734. if (!w || 0 === w.length) return null; if ("string" === typeof w) return (w = r(w)) && 0 !== w.length ? w : null; w = w.map(x => {
  6735. if (!Number.isFinite(x.scale) || 0 >= x.scale) throw new c("effect:invalid-scale",
  6736. "scale must be finite and greater than 0", { stop: x }); return { scale: x.scale, effects: r(x.value) }
  6737. }); w.sort((x, z) => z.effects.length - x.effects.length); for (let x = 0; x < w.length - 1; x++) { if (!l.canInterpolateEffects(w[x].effects, w[x + 1].effects)) throw new c("effect:interpolation-impossible", "Cannot interpolate by scale between 2 lists of mixed effects", { a: w[x].effects, b: w[x + 1].effects }); l.normalizeEffects(w[x].effects, w[x + 1].effects) } w.sort((x, z) => z.scale - x.scale); return w
  6738. }; Object.defineProperties(a, {
  6739. __esModule: { value: !0 },
  6740. [Symbol.toStringTag]: { value: "Module" }
  6741. })
  6742. })
  6743. }, "esri/layers/effects/effects": function () {
  6744. define("exports ../../chunks/_rollupPluginBabelHelpers ../../colorUtils ../../core/screenUtils ../../chunks/mat4f32 ./colorMatrixFunctions".split(" "), function (a, b, c, e, d, l) {
  6745. function r(u, f, h) { return u + (f - u) * h } function q(u) { return Math.round(1E3 * e.px2pt(u)) / 1E3 } let k = function () {
  6746. function u(h, v, y) { this.strength = h; this.radius = v; this.threshold = y; this.type = "bloom" } var f = u.prototype; f.interpolate = function (h, v, y) {
  6747. this.strength =
  6748. r(h.strength, v.strength, y); this.radius = r(h.radius, v.radius, y); this.threshold = r(h.threshold, v.threshold, y)
  6749. }; f.clone = function () { return new u(this.strength, this.radius, this.threshold) }; f.toJSON = function () { return { type: "bloom", radius: q(this.radius), strength: this.strength, threshold: this.threshold } }; return u
  6750. }(), m = function () {
  6751. function u(h) { this.radius = h; this.type = "blur" } var f = u.prototype; f.interpolate = function (h, v, y) { this.radius = Math.round(r(h.radius, v.radius, y)) }; f.clone = function () { return new u(this.radius) };
  6752. f.toJSON = function () { return { type: "blur", radius: q(this.radius) } }; return u
  6753. }(), g = function () {
  6754. function u(h, v) { this.type = h; this.amount = v; if ("invert" === this.type || "grayscale" === this.type || "sepia" === this.type) this.amount = Math.min(this.amount, 1) } var f = u.prototype; f.interpolate = function (h, v, y) { this.amount = r(h.amount, v.amount, y); this._updateMatrix() }; f.clone = function () { return new u(this.type, this.amount) }; f.toJSON = function () { return { type: this.type, amount: this.amount } }; f._updateMatrix = function () {
  6755. const h = this._colorMatrix ||
  6756. d.create(); switch (this.type) { case "brightness": this._colorMatrix = l.brightness(h, this.amount); break; case "contrast": this._colorMatrix = l.contrast(h, this.amount); break; case "grayscale": this._colorMatrix = l.grayscale(h, this.amount); break; case "invert": this._colorMatrix = l.invert(h, this.amount); break; case "saturate": this._colorMatrix = l.saturate(h, this.amount); break; case "sepia": this._colorMatrix = l.sepia(h, this.amount) }
  6757. }; b._createClass(u, [{
  6758. key: "colorMatrix", get: function () {
  6759. this._colorMatrix || this._updateMatrix();
  6760. return this._colorMatrix
  6761. }
  6762. }]); return u
  6763. }(), p = function () {
  6764. function u(h, v, y, B) { this.offsetX = h; this.offsetY = v; this.blurRadius = y; this.color = B; this.type = "drop-shadow" } var f = u.prototype; f.interpolate = function (h, v, y) {
  6765. this.offsetX = r(h.offsetX, v.offsetX, y); this.offsetY = r(h.offsetY, v.offsetY, y); this.blurRadius = r(h.blurRadius, v.blurRadius, y); this.color[0] = Math.round(r(h.color[0], v.color[0], y)); this.color[1] = Math.round(r(h.color[1], v.color[1], y)); this.color[2] = Math.round(r(h.color[2], v.color[2], y)); this.color[3] =
  6766. r(h.color[3], v.color[3], y)
  6767. }; f.clone = function () { return new u(this.offsetX, this.offsetY, this.blurRadius, [...this.color]) }; f.toJSON = function () { const h = [...this.color]; h[3] *= 255; return { type: "drop-shadow", xoffset: q(this.offsetX), yoffset: q(this.offsetY), blurRadius: q(this.blurRadius), color: h } }; return u
  6768. }(), t = function () {
  6769. function u(h) { this.angle = h; this.type = "hue-rotate" } var f = u.prototype; f.interpolate = function (h, v, y) { this.angle = r(h.angle, v.angle, y); this._updateMatrix() }; f.clone = function () { return new u(this.angle) };
  6770. f.toJSON = function () { return { type: "hue-rotate", angle: this.angle } }; f._updateMatrix = function () { const h = this._colorMatrix || d.create(); this._colorMatrix = l.rotateHue(h, this.angle) }; b._createClass(u, [{ key: "colorMatrix", get: function () { this._colorMatrix || this._updateMatrix(); return this._colorMatrix } }]); return u
  6771. }(), n = function () {
  6772. function u(h) { this.amount = h; this.type = "opacity"; this.amount = Math.min(this.amount, 1) } var f = u.prototype; f.interpolate = function (h, v, y) { this.amount = r(h.amount, v.amount, y) }; f.clone = function () { return new u(this.amount) };
  6773. f.toJSON = function () { return { type: "opacity", amount: this.amount } }; return u
  6774. }(); a.BloomEffect = k; a.BlurEffect = m; a.ColorMatrixEffect = g; a.DropShadowEffect = p; a.HueRotateEffect = t; a.OpacityEffect = n; a.createEffectWithInitialValues = function (u) {
  6775. switch (u.type) {
  6776. case "grayscale": case "sepia": case "invert": return new g(u.type, 0); case "saturate": case "brightness": case "contrast": return new g(u.type, 1); case "opacity": return new n(1); case "hue-rotate": return new t(0); case "blur": return new m(0); case "drop-shadow": return new p(0,
  6777. 0, 0, [...c.getNamedColor("transparent")]); case "bloom": return new k(0, 0, 1)
  6778. }
  6779. }; a.isColorMatrixEffect = function (u) { return "colorMatrix" in u }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6780. })
  6781. }, "esri/chunks/mat4f32": function () {
  6782. define(["exports"], function (a) {
  6783. function b() { const q = new Float32Array(16); q[0] = 1; q[5] = 1; q[10] = 1; q[15] = 1; return q } function c(q) {
  6784. const k = new Float32Array(16); k[0] = q[0]; k[1] = q[1]; k[2] = q[2]; k[3] = q[3]; k[4] = q[4]; k[5] = q[5]; k[6] = q[6]; k[7] = q[7]; k[8] = q[8];
  6785. k[9] = q[9]; k[10] = q[10]; k[11] = q[11]; k[12] = q[12]; k[13] = q[13]; k[14] = q[14]; k[15] = q[15]; return k
  6786. } function e(q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z) { const C = new Float32Array(16); C[0] = q; C[1] = k; C[2] = m; C[3] = g; C[4] = p; C[5] = t; C[6] = n; C[7] = u; C[8] = f; C[9] = h; C[10] = v; C[11] = y; C[12] = B; C[13] = w; C[14] = x; C[15] = z; return C } function d(q, k) { return new Float32Array(q, k, 16) } const l = b(), r = Object.freeze(Object.defineProperty({ __proto__: null, create: b, clone: c, fromValues: e, createView: d, IDENTITY: l }, Symbol.toStringTag, { value: "Module" })); a.IDENTITY =
  6787. l; a.clone = c; a.create = b; a.createView = d; a.fromValues = e; a.mat4f32 = r
  6788. })
  6789. }, "esri/layers/effects/colorMatrixFunctions": function () {
  6790. define(["exports", "../../chunks/mat4"], function (a, b) {
  6791. a.brightness = (c, e) => { c = b.set(c, e, 0, 0, 0, 0, e, 0, 0, 0, 0, e, 0, 0, 0, 0, 1); return b.transpose(c, c) }; a.contrast = (c, e) => { c = b.set(c, e, 0, 0, .5 - .5 * e, 0, e, 0, .5 - .5 * e, 0, 0, e, .5 - .5 * e, 0, 0, 0, 1); return b.transpose(c, c) }; a.grayscale = (c, e) => {
  6792. e = 1 - e; c = b.set(c, .2126 + .7874 * e, .7152 - .7152 * e, .0722 - .0722 * e, 0, .2126 - .2126 * e, .7152 + .2848 * e, .0722 - .0722 * e, 0, .2126 - .2126 *
  6793. e, .7152 - .7152 * e, .0722 + .9278 * e, 0, 0, 0, 0, 1); return b.transpose(c, c)
  6794. }; a.invert = (c, e) => { const d = 1 - 2 * e; c = b.set(c, d, 0, 0, e, 0, d, 0, e, 0, 0, d, e, 0, 0, 0, 1); return b.transpose(c, c) }; a.rotateHue = (c, e) => { const d = Math.sin(e * Math.PI / 180); e = Math.cos(e * Math.PI / 180); c = b.set(c, .213 + .787 * e - .213 * d, .715 - .715 * e - .715 * d, .072 - .072 * e + .928 * d, 0, .213 - .213 * e + .143 * d, .715 + .285 * e + .14 * d, .072 - .072 * e - .283 * d, 0, .213 - .213 * e - .787 * d, .715 - .715 * e + .715 * d, .072 + .928 * e + .072 * d, 0, 0, 0, 0, 1); return b.transpose(c, c) }; a.saturate = (c, e) => {
  6795. c = b.set(c, .213 + .787 *
  6796. e, .715 - .715 * e, .072 - .072 * e, 0, .213 - .213 * e, .715 + .285 * e, .072 - .072 * e, 0, .213 - .213 * e, .715 - .715 * e, .072 + .928 * e, 0, 0, 0, 0, 1); return b.transpose(c, c)
  6797. }; a.sepia = (c, e) => { e = 1 - e; c = b.set(c, .393 + .607 * e, .769 - .769 * e, .189 - .189 * e, 0, .349 - .349 * e, .686 + .314 * e, .168 - .168 * e, 0, .272 - .272 * e, .534 - .534 * e, .131 + .869 * e, 0, 0, 0, 0, 1); return b.transpose(c, c) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6798. })
  6799. }, "esri/chunks/_commonjsHelpers": function () {
  6800. define(["exports"], function (a) {
  6801. a.commonjsGlobal = "undefined" !==
  6802. typeof globalThis ? globalThis : "undefined" !== typeof window ? window : "undefined" !== typeof global ? global : "undefined" !== typeof self ? self : {}; a.commonjsRequire = function (b) { throw Error('Could not dynamically require "' + b + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); }; a.getDefaultExportFromCjs = function (b) { return b && b.__esModule && Object.prototype.hasOwnProperty.call(b, "default") ? b["default"] : b }
  6803. })
  6804. },
  6805. "esri/layers/effects/utils": function () { define(["exports", "./effects"], function (a, b) { a.canInterpolateEffects = function (c, e) { const d = c.length > e.length ? c : e; return (c.length > e.length ? e : c).every((l, r) => l.type === d[r].type) }; a.isEffectFunctions = function (c) { return (c = c[0]) ? "type" in c : !1 }; a.normalizeEffects = function (c, e) { const d = c.length > e.length ? c : e; c = c.length > e.length ? e : c; for (e = c.length; e < d.length; e++)c.push(b.createEffectWithInitialValues(d[e])) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) },
  6806. "esri/layers/mixins/CustomParametersMixin": function () {
  6807. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  6808. a.CustomParametersMixin = k => {
  6809. k = function (m) { function g() { var p = m.apply(this, arguments) || this; p.customParameters = null; return p } b._inheritsLoose(g, m); return g }(k); c.__decorate([e.property({
  6810. type: Object,
  6811. json: { write: { overridePolicy(m) { return { enabled: !!(m && 0 < Object.keys(m).length) } } } }
  6812. })], k.prototype, "customParameters", void 0); return k = c.__decorate([q.subclass("esri.layers.mixins.CustomParametersMixin")], k)
  6813. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6814. })
  6815. }, "esri/layers/mixins/FeatureEffectLayer": function () {
  6816. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/FeatureEffect".split(" "),
  6817. function (a, b, c, e, d, l, r, q, k) { const m = { write: { allowNull: !0 } }; a.FeatureEffectLayer = g => { g = function (p) { function t() { var n = p.apply(this, arguments) || this; n.featureEffect = null; return n } b._inheritsLoose(t, p); return t }(g); c.__decorate([e.property({ type: k, json: { origins: { "web-map": m, "portal-item": m } } })], g.prototype, "featureEffect", void 0); return g = c.__decorate([q.subclass("esri.layers.mixins.FeatureEffectLayer")], g) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  6818. },
  6819. "esri/layers/support/FeatureEffect": function () {
  6820. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/JSONSupport ../../core/maybe ../../core/object ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../effects/jsonUtils ./FeatureFilter".split(" "), function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  6821. var n; q = {
  6822. read: { reader: p.read }, write: {
  6823. writer: p.write, overridePolicy() {
  6824. return {
  6825. allowNull: null !=
  6826. this.excludedEffect, isRequired: null == this.excludedEffect
  6827. }
  6828. }
  6829. }
  6830. }; p = { read: { reader: p.read }, write: { writer: p.write, overridePolicy() { return { allowNull: null != this.includedEffect, isRequired: null == this.includedEffect } } } }; k = { name: "showExcludedLabels", default: !0 }; e = n = function (u) {
  6831. function f(v) { v = u.call(this, v) || this; v.filter = null; v.includedEffect = null; v.excludedEffect = null; v.excludedLabelsVisible = !1; return v } a._inheritsLoose(f, u); var h = f.prototype; h.write = function (v, y) {
  6832. v = u.prototype.write.call(this, v, y); if (null !=
  6833. y && y.origin) {
  6834. if (v.filter) { const x = Object.keys(v.filter); if (1 < x.length || "where" !== x[0]) { var B; null == (B = y.messages) ? void 0 : B.push(new c("web-document-write:unsupported-feature-effect", "Invalid feature effect 'filter'. A filter can only contain a 'where' property", { layer: y.layer, effect: this })); return null } } if ("showExcludedLabels" in v) {
  6835. var w; null == (w = y.messages) ? void 0 : w.push(new c("web-document-write:unsupported-feature-effect", "Invalid value for property 'excludedLabelsVisible' which should always be 'true'",
  6836. { layer: y.layer, effect: this })); return null
  6837. }
  6838. } return v
  6839. }; h.clone = function () { return new n({ filter: d.isSome(this.filter) && this.filter.clone(), includedEffect: this.includedEffect, excludedEffect: this.excludedEffect, excludedLabelsVisible: this.excludedLabelsVisible }) }; return f
  6840. }(e.JSONSupport); b.__decorate([r.property({ type: t, json: { write: { allowNull: !0, writer(u, f, h, v) { (u = null == u ? void 0 : u.write({}, v)) && 0 !== Object.keys(u).length ? l.setDeepValue(h, u, f) : l.setDeepValue(h, null, f) } } } })], e.prototype, "filter", void 0); b.__decorate([r.property({
  6841. json: {
  6842. write: !0,
  6843. origins: { "web-map": q, "portal-item": q }
  6844. }
  6845. })], e.prototype, "includedEffect", void 0); b.__decorate([r.property({ json: { write: !0, origins: { "web-map": p, "portal-item": p } } })], e.prototype, "excludedEffect", void 0); b.__decorate([r.property({ type: Boolean, json: { write: !0, name: "showExcludedLabels", origins: { "web-map": k, "portal-item": k } } })], e.prototype, "excludedLabelsVisible", void 0); return e = n = b.__decorate([g.subclass("esri.layers.support.FeatureEffect")], e)
  6846. })
  6847. }, "esri/layers/support/FeatureFilter": function () {
  6848. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../rest/support/Query".split(" "),
  6849. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  6850. var t; m = new d.JSONMap({ esriSpatialRelIntersects: "intersects", esriSpatialRelContains: "contains", esriSpatialRelCrosses: "crosses", esriSpatialRelDisjoint: "disjoint", esriSpatialRelEnvelopeIntersects: "envelope-intersects", esriSpatialRelIndexIntersects: "index-intersects", esriSpatialRelOverlaps: "overlaps", esriSpatialRelTouches: "touches", esriSpatialRelWithin: "within", esriSpatialRelRelation: "relation" }); d = new d.JSONMap({
  6851. esriSRUnit_Meter: "meters", esriSRUnit_Kilometer: "kilometers",
  6852. esriSRUnit_Foot: "feet", esriSRUnit_StatuteMile: "miles", esriSRUnit_NauticalMile: "nautical-miles", esriSRUnit_USNauticalMile: "us-nautical-miles"
  6853. }); l = t = function (n) {
  6854. function u(h) { h = n.call(this, h) || this; h.where = null; h.geometry = null; h.spatialRelationship = "intersects"; h.distance = void 0; h.objectIds = null; h.units = null; h.timeExtent = null; return h } a._inheritsLoose(u, n); var f = u.prototype; f.createQuery = function (h = {}) {
  6855. const { where: v, geometry: y, spatialRelationship: B, timeExtent: w, objectIds: x, units: z, distance: C } = this;
  6856. return new p({ geometry: r.clone(y), objectIds: r.clone(x), spatialRelationship: B, timeExtent: r.clone(w), where: v, units: z, distance: C, ...h })
  6857. }; f.clone = function () { const { where: h, geometry: v, spatialRelationship: y, timeExtent: B, objectIds: w, units: x, distance: z } = this; return new t({ geometry: r.clone(v), objectIds: r.clone(w), spatialRelationship: y, timeExtent: r.clone(B), where: h, units: x, distance: z }) }; return u
  6858. }(l.JSONSupport); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "where", void 0); b.__decorate([k.property({
  6859. types: c.geometryTypes,
  6860. json: { write: !0 }
  6861. })], l.prototype, "geometry", void 0); b.__decorate([k.property({ type: m.apiValues, json: { name: "spatialRel", read: { reader: m.read }, write: { allowNull: !1, writer: m.write, overridePolicy() { return { enabled: q.isSome(this.geometry) } } } } })], l.prototype, "spatialRelationship", void 0); b.__decorate([k.property({ type: Number, json: { write: { overridePolicy(n) { return { enabled: null != n && null != this.geometry } } } } })], l.prototype, "distance", void 0); b.__decorate([k.property({ type: [Number], json: { write: !0 } })], l.prototype, "objectIds",
  6862. void 0); b.__decorate([k.property({ type: d.apiValues, json: { read: d.read, write: { writer: d.write, overridePolicy(n) { return { enabled: null != n && null != this.geometry } } } } })], l.prototype, "units", void 0); b.__decorate([k.property({ type: e, json: { write: !0 } })], l.prototype, "timeExtent", void 0); return l = t = b.__decorate([g.subclass("esri.layers.support.FeatureFilter")], l)
  6863. })
  6864. }, "esri/rest/support/Query": function () {
  6865. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/ensureType ../../geometry/support/jsonUtils ../../layers/support/source/DataLayerSource ./QuantizationParameters ./StatisticDefinition ../../geometry/SpatialReference ../../geometry/Point".split(" "),
  6866. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B) {
  6867. var w; const x = new d.JSONMap({ esriSpatialRelIntersects: "intersects", esriSpatialRelContains: "contains", esriSpatialRelCrosses: "crosses", esriSpatialRelDisjoint: "disjoint", esriSpatialRelEnvelopeIntersects: "envelope-intersects", esriSpatialRelIndexIntersects: "index-intersects", esriSpatialRelOverlaps: "overlaps", esriSpatialRelTouches: "touches", esriSpatialRelWithin: "within", esriSpatialRelRelation: "relation" }); d = new d.JSONMap({
  6868. esriSRUnit_Meter: "meters", esriSRUnit_Kilometer: "kilometers",
  6869. esriSRUnit_Foot: "feet", esriSRUnit_StatuteMile: "miles", esriSRUnit_NauticalMile: "nautical-miles", esriSRUnit_USNauticalMile: "us-nautical-miles"
  6870. }); l = w = function (z) {
  6871. function C(D) {
  6872. D = z.call(this, D) || this; D.aggregateIds = null; D.cacheHint = void 0; D.compactGeometryEnabled = !1; D.datumTransformation = null; D.defaultSpatialReferenceEnabled = !1; D.distance = void 0; D.dynamicDataSource = void 0; D.formatOf3DObjects = null; D.gdbVersion = null; D.geometry = null; D.geometryPrecision = void 0; D.groupByFieldsForStatistics = null; D.having = null;
  6873. D.historicMoment = null; D.maxAllowableOffset = void 0; D.maxRecordCountFactor = 1; D.multipatchOption = null; D.num = void 0; D.objectIds = null; D.orderByFields = null; D.outFields = null; D.outSpatialReference = null; D.outStatistics = null; D.parameterValues = null; D.pixelSize = null; D.quantizationParameters = null; D.rangeValues = null; D.relationParameter = null; D.resultType = null; D.returnCentroid = !1; D.returnDistinctValues = !1; D.returnExceededLimitFeatures = !0; D.returnGeometry = !1; D.returnQueryGeometry = !1; D.returnM = void 0; D.returnZ = void 0;
  6874. D.sourceSpatialReference = null; D.spatialRelationship = "intersects"; D.start = void 0; D.sqlFormat = null; D.text = null; D.timeExtent = null; D.timeReferenceUnknownClient = !1; D.units = null; D.where = null; return D
  6875. } a._inheritsLoose(C, z); C.from = function (D) { return n.ensureClass(w, D) }; var A = C.prototype; A.castDatumTransformation = function (D) { return "number" === typeof D || "object" === typeof D ? D : null }; A.writeHistoricMoment = function (D, F) { F.historicMoment = D && D.getTime() }; A.writeParameterValues = function (D, F) {
  6876. if (D) {
  6877. const J = {}; for (const M in D) {
  6878. const N =
  6879. D[M]; Array.isArray(N) ? J[M] = N.map(E => E instanceof Date ? E.getTime() : E) : J[M] = N instanceof Date ? N.getTime() : N
  6880. } F.parameterValues = J
  6881. }
  6882. }; A.writeStart = function (D, F) { F.resultOffset = this.start; F.resultRecordCount = this.num || 10; F.where = "1\x3d1" }; A.writeWhere = function (D, F) { F.where = D || "1\x3d1" }; A.clone = function () {
  6883. return new w(r.clone({
  6884. aggregateIds: this.aggregateIds, cacheHint: this.cacheHint, compactGeometryEnabled: this.compactGeometryEnabled, datumTransformation: this.datumTransformation, defaultSpatialReferenceEnabled: this.defaultSpatialReferenceEnabled,
  6885. distance: this.distance, gdbVersion: this.gdbVersion, geometry: this.geometry, geometryPrecision: this.geometryPrecision, groupByFieldsForStatistics: this.groupByFieldsForStatistics, having: this.having, historicMoment: q.isSome(this.historicMoment) ? new Date(this.historicMoment.getTime()) : null, maxAllowableOffset: this.maxAllowableOffset, maxRecordCountFactor: this.maxRecordCountFactor, multipatchOption: this.multipatchOption, num: this.num, objectIds: this.objectIds, orderByFields: this.orderByFields, outFields: this.outFields,
  6886. outSpatialReference: this.outSpatialReference, outStatistics: this.outStatistics, parameterValues: this.parameterValues, pixelSize: this.pixelSize, quantizationParameters: this.quantizationParameters, rangeValues: this.rangeValues, relationParameter: this.relationParameter, resultType: this.resultType, returnDistinctValues: this.returnDistinctValues, returnGeometry: this.returnGeometry, returnCentroid: this.returnCentroid, returnExceededLimitFeatures: this.returnExceededLimitFeatures, returnQueryGeometry: this.returnQueryGeometry,
  6887. returnM: this.returnM, returnZ: this.returnZ, dynamicDataSource: this.dynamicDataSource, sourceSpatialReference: this.sourceSpatialReference, spatialRelationship: this.spatialRelationship, start: this.start, sqlFormat: this.sqlFormat, text: this.text, timeExtent: this.timeExtent, timeReferenceUnknownClient: this.timeReferenceUnknownClient, units: this.units, where: this.where
  6888. }))
  6889. }; return C
  6890. }(l.JSONSupport); l.MAX_MAX_RECORD_COUNT_FACTOR = 5; b.__decorate([k.property({ json: { write: !0 } })], l.prototype, "aggregateIds", void 0); b.__decorate([k.property({
  6891. type: Boolean,
  6892. json: { write: !0 }
  6893. })], l.prototype, "cacheHint", void 0); b.__decorate([k.property({ type: Boolean, json: { default: !1, write: !0 } })], l.prototype, "compactGeometryEnabled", void 0); b.__decorate([k.property({ json: { write: !0 } })], l.prototype, "datumTransformation", void 0); b.__decorate([m.cast("datumTransformation")], l.prototype, "castDatumTransformation", null); b.__decorate([k.property({ type: Boolean, json: { default: !1, write: !0 } })], l.prototype, "defaultSpatialReferenceEnabled", void 0); b.__decorate([k.property({
  6894. type: Number,
  6895. json: { write: { overridePolicy(z) { return { enabled: 0 < z } } } }
  6896. })], l.prototype, "distance", void 0); b.__decorate([k.property({ type: f.DataLayerSource, json: { write: !0 } })], l.prototype, "dynamicDataSource", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "formatOf3DObjects", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "gdbVersion", void 0); b.__decorate([k.property({ types: c.geometryTypes, json: { read: u.fromJSON, write: !0 } })], l.prototype, "geometry", void 0); b.__decorate([k.property({
  6897. type: Number,
  6898. json: { write: !0 }
  6899. })], l.prototype, "geometryPrecision", void 0); b.__decorate([k.property({ type: [String], json: { write: !0 } })], l.prototype, "groupByFieldsForStatistics", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "having", void 0); b.__decorate([k.property({ type: Date })], l.prototype, "historicMoment", void 0); b.__decorate([t.writer("historicMoment")], l.prototype, "writeHistoricMoment", null); b.__decorate([k.property({ type: Number, json: { write: !0 } })], l.prototype, "maxAllowableOffset",
  6900. void 0); b.__decorate([k.property({ type: Number, cast(z) { return 1 > z ? 1 : z > w.MAX_MAX_RECORD_COUNT_FACTOR ? w.MAX_MAX_RECORD_COUNT_FACTOR : z }, json: { write: { overridePolicy(z) { return { enabled: 1 < z } } } } })], l.prototype, "maxRecordCountFactor", void 0); b.__decorate([k.property({ type: ["xyFootprint"], json: { write: !0 } })], l.prototype, "multipatchOption", void 0); b.__decorate([k.property({ type: Number, json: { read: { source: "resultRecordCount" } } })], l.prototype, "num", void 0); b.__decorate([k.property({ json: { write: !0 } })], l.prototype,
  6901. "objectIds", void 0); b.__decorate([k.property({ type: [String], json: { write: !0 } })], l.prototype, "orderByFields", void 0); b.__decorate([k.property({ type: [String], json: { write: !0 } })], l.prototype, "outFields", void 0); b.__decorate([k.property({ type: y, json: { name: "outSR", write: !0 } })], l.prototype, "outSpatialReference", void 0); b.__decorate([k.property({ type: [v], json: { write: { enabled: !0, overridePolicy() { return { enabled: q.isSome(this.outStatistics) && 0 < this.outStatistics.length } } } } })], l.prototype, "outStatistics", void 0);
  6902. b.__decorate([k.property({ json: { write: !0 } })], l.prototype, "parameterValues", void 0); b.__decorate([t.writer("parameterValues")], l.prototype, "writeParameterValues", null); b.__decorate([k.property({ type: B, json: { write: !0 } })], l.prototype, "pixelSize", void 0); b.__decorate([k.property({ type: h, json: { write: !0 } })], l.prototype, "quantizationParameters", void 0); b.__decorate([k.property({ type: [Object], json: { write: !0 } })], l.prototype, "rangeValues", void 0); b.__decorate([k.property({
  6903. type: String, json: {
  6904. read: { source: "relationParam" },
  6905. write: { target: "relationParam", overridePolicy() { return { enabled: "relation" === this.spatialRelationship } } }
  6906. }
  6907. })], l.prototype, "relationParameter", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "resultType", void 0); b.__decorate([k.property({ type: Boolean, json: { default: !1, write: !0 } })], l.prototype, "returnCentroid", void 0); b.__decorate([k.property({ type: Boolean, json: { default: !1, write: !0 } })], l.prototype, "returnDistinctValues", void 0); b.__decorate([k.property({
  6908. type: Boolean, json: {
  6909. default: !0,
  6910. write: !0
  6911. }
  6912. })], l.prototype, "returnExceededLimitFeatures", void 0); b.__decorate([k.property({ type: Boolean, json: { write: !0 } })], l.prototype, "returnGeometry", void 0); b.__decorate([k.property({ type: Boolean, json: { default: !1, write: !0 } })], l.prototype, "returnQueryGeometry", void 0); b.__decorate([k.property({ type: Boolean, json: { default: !1, write: !0 } })], l.prototype, "returnM", void 0); b.__decorate([k.property({ type: Boolean, json: { write: { overridePolicy(z) { return { enabled: z } } } } })], l.prototype, "returnZ", void 0); b.__decorate([k.property({
  6913. type: y,
  6914. json: { write: !0 }
  6915. })], l.prototype, "sourceSpatialReference", void 0); b.__decorate([g.enumeration(x, { ignoreUnknown: !1, name: "spatialRel" })], l.prototype, "spatialRelationship", void 0); b.__decorate([k.property({ type: Number, json: { read: { source: "resultOffset" } } })], l.prototype, "start", void 0); b.__decorate([t.writer("start"), t.writer("num")], l.prototype, "writeStart", null); b.__decorate([k.property({ type: String, json: { write: !0 } })], l.prototype, "sqlFormat", void 0); b.__decorate([k.property({ type: String, json: { write: !0 } })],
  6916. l.prototype, "text", void 0); b.__decorate([k.property({ type: e, json: { write: !0 } })], l.prototype, "timeExtent", void 0); b.__decorate([k.property({ type: Boolean, json: { default: !1, write: !0 } })], l.prototype, "timeReferenceUnknownClient", void 0); b.__decorate([g.enumeration(d, { ignoreUnknown: !1 }), k.property({ json: { write: { overridePolicy(z) { return { enabled: z && 0 < this.distance } } } } })], l.prototype, "units", void 0); b.__decorate([k.property({ type: String, json: { write: { overridePolicy(z) { return { enabled: null != z || 0 < this.start } } } } })],
  6917. l.prototype, "where", void 0); b.__decorate([t.writer("where")], l.prototype, "writeWhere", null); return l = w = b.__decorate([p.subclass("esri.rest.support.Query")], l)
  6918. })
  6919. }, "esri/layers/support/source/DataLayerSource": function () {
  6920. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/jsonMap ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/decorators/cast ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/extensions/serializableProperty/reader ../Field ./MapLayerSource ./QueryTableDataSource ./RasterDataSource ./TableDataSource".split(" "),
  6921. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y) {
  6922. function B() { C || (C = n.createTypeReader({ types: w() })); return C } function w() { A || (A = { key: "type", base: null, typeMap: { "data-layer": a.DataLayerSource, "map-layer": f.MapLayerSource } }); return A } var x, z; e = e.strict()({ esriLeftInnerJoin: "left-inner-join", esriLeftOuterJoin: "left-outer-join" }); a.JoinTableDataSource = x = function (D) {
  6923. function F(M) { M = D.call(this, M) || this; M.type = "join-table"; return M } b._inheritsLoose(F, D); var J = F.prototype; J.readLeftTableSource = function (M,
  6924. N, E) { return B()(M, N, E) }; J.castLeftTableSource = function (M) { return t.ensureOneOfType(w(), M) }; J.readRightTableSource = function (M, N, E) { return B()(M, N, E) }; J.castRightTableSource = function (M) { return t.ensureOneOfType(w(), M) }; J.clone = function () {
  6925. var M, N; const { leftTableKey: E, rightTableKey: G, leftTableSource: H, rightTableSource: K, joinType: S } = this, fa = { leftTableKey: E, rightTableKey: G, leftTableSource: null != (M = null == H ? void 0 : H.clone()) ? M : void 0, rightTableSource: null != (N = null == K ? void 0 : K.clone()) ? N : void 0, joinType: S };
  6926. return new x(fa)
  6927. }; return F
  6928. }(d.JSONSupport); c.__decorate([m.enumeration({ joinTable: "join-table" })], a.JoinTableDataSource.prototype, "type", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.JoinTableDataSource.prototype, "leftTableKey", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.JoinTableDataSource.prototype, "rightTableKey", void 0); c.__decorate([l.property({ json: { write: !0 } })], a.JoinTableDataSource.prototype, "leftTableSource", void 0); c.__decorate([g.reader("leftTableSource")],
  6929. a.JoinTableDataSource.prototype, "readLeftTableSource", null); c.__decorate([k.cast("leftTableSource")], a.JoinTableDataSource.prototype, "castLeftTableSource", null); c.__decorate([l.property({ json: { write: !0 } })], a.JoinTableDataSource.prototype, "rightTableSource", void 0); c.__decorate([g.reader("rightTableSource")], a.JoinTableDataSource.prototype, "readRightTableSource", null); c.__decorate([k.cast("rightTableSource")], a.JoinTableDataSource.prototype, "castRightTableSource", null); c.__decorate([m.enumeration(e)],
  6930. a.JoinTableDataSource.prototype, "joinType", void 0); a.JoinTableDataSource = x = c.__decorate([p.subclass("esri.layers.support.source.JoinTableDataSource")], a.JoinTableDataSource); let C = null, A = null; k = { key: "type", base: null, typeMap: { "join-table": a.JoinTableDataSource, "query-table": h.QueryTableDataSource, raster: v.RasterDataSource, table: y.TableDataSource } }; a.DataLayerSource = z = function (D) {
  6931. function F(J) { J = D.call(this, J) || this; J.type = "data-layer"; return J } b._inheritsLoose(F, D); F.prototype.clone = function () {
  6932. const { fields: J,
  6933. dataSource: M } = this; return new z({ fields: J, dataSource: M })
  6934. }; return F
  6935. }(d.JSONSupport); c.__decorate([m.enumeration({ dataLayer: "data-layer" })], a.DataLayerSource.prototype, "type", void 0); c.__decorate([l.property({ type: [u], json: { write: !0 } })], a.DataLayerSource.prototype, "fields", void 0); c.__decorate([l.property({ types: k, json: { write: !0 } })], a.DataLayerSource.prototype, "dataSource", void 0); a.DataLayerSource = z = c.__decorate([p.subclass("esri.layers.support.source.DataLayerSource")], a.DataLayerSource); a.DataLayerSource.from =
  6936. t.ensureType(a.DataLayerSource); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6937. })
  6938. }, "esri/layers/support/source/MapLayerSource": function () {
  6939. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),
  6940. function (a, b, c, e, d, l, r, q, k, m) {
  6941. var g; a.MapLayerSource = g = function (p) { function t(n) { n = p.call(this, n) || this; n.type = "map-layer"; return n } b._inheritsLoose(t, p); t.prototype.clone = function () { const { mapLayerId: n, gdbVersion: u } = this; return new g({ mapLayerId: n, gdbVersion: u }) }; return t }(e.JSONSupport); c.__decorate([k.enumeration({ mapLayer: "map-layer" })], a.MapLayerSource.prototype, "type", void 0); c.__decorate([d.property({ type: q.Integer, json: { write: !0 } })], a.MapLayerSource.prototype, "mapLayerId", void 0); c.__decorate([d.property({
  6942. type: String,
  6943. json: { write: !0 }
  6944. })], a.MapLayerSource.prototype, "gdbVersion", void 0); a.MapLayerSource = g = c.__decorate([m.subclass("esri.layers.support.source.MapLayerSource")], a.MapLayerSource); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6945. })
  6946. }, "esri/layers/support/source/QueryTableDataSource": function () {
  6947. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass ../../../geometry/SpatialReference ../../../geometry/support/typeUtils".split(" "),
  6948. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  6949. var n; a.QueryTableDataSource = n = function (u) { function f(h) { h = u.call(this, h) || this; h.type = "query-table"; return h } b._inheritsLoose(f, u); f.prototype.clone = function () { var h; const { workspaceId: v, query: y, oidFields: B, spatialReference: w, geometryType: x } = this, z = { workspaceId: v, query: y, oidFields: B, spatialReference: null != (h = null == w ? void 0 : w.clone()) ? h : void 0, geometryType: x }; return new n(z) }; return f }(d.JSONSupport); c.__decorate([m.enumeration({ queryTable: "query-table" })], a.QueryTableDataSource.prototype,
  6950. "type", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.QueryTableDataSource.prototype, "workspaceId", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.QueryTableDataSource.prototype, "query", void 0); c.__decorate([l.property({ type: String, json: { write: !0 } })], a.QueryTableDataSource.prototype, "oidFields", void 0); c.__decorate([l.property({ type: p, json: { write: !0 } })], a.QueryTableDataSource.prototype, "spatialReference", void 0); c.__decorate([m.enumeration(t.featureGeometryTypeKebabDictionary)],
  6951. a.QueryTableDataSource.prototype, "geometryType", void 0); a.QueryTableDataSource = n = c.__decorate([g.subclass("esri.layers.support.source.QueryTableDataSource")], a.QueryTableDataSource); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6952. })
  6953. }, "esri/layers/support/source/RasterDataSource": function () {
  6954. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),
  6955. function (a, b, c, e, d, l, r, q, k, m) {
  6956. var g; a.RasterDataSource = g = function (p) { function t(n) { n = p.call(this, n) || this; n.type = "raster"; return n } b._inheritsLoose(t, p); t.prototype.clone = function () { const { workspaceId: n, dataSourceName: u } = this; return new g({ workspaceId: n, dataSourceName: u }) }; return t }(e.JSONSupport); c.__decorate([k.enumeration({ raster: "raster" })], a.RasterDataSource.prototype, "type", void 0); c.__decorate([d.property({ type: String, json: { write: !0 } })], a.RasterDataSource.prototype, "dataSourceName", void 0);
  6957. c.__decorate([d.property({ type: String, json: { write: !0 } })], a.RasterDataSource.prototype, "workspaceId", void 0); a.RasterDataSource = g = c.__decorate([m.subclass("esri.layers.support.source.RasterDataSource")], a.RasterDataSource); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6958. })
  6959. }, "esri/layers/support/source/TableDataSource": function () {
  6960. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),
  6961. function (a, b, c, e, d, l, r, q, k, m) {
  6962. var g; a.TableDataSource = g = function (p) { function t(n) { n = p.call(this, n) || this; n.type = "table"; return n } b._inheritsLoose(t, p); t.prototype.clone = function () { const { workspaceId: n, gdbVersion: u, dataSourceName: f } = this; return new g({ workspaceId: n, gdbVersion: u, dataSourceName: f }) }; return t }(e.JSONSupport); c.__decorate([k.enumeration({ table: "table" })], a.TableDataSource.prototype, "type", void 0); c.__decorate([d.property({ type: String, json: { write: !0 } })], a.TableDataSource.prototype, "workspaceId",
  6963. void 0); c.__decorate([d.property({ type: String, json: { write: !0 } })], a.TableDataSource.prototype, "gdbVersion", void 0); c.__decorate([d.property({ type: String, json: { write: !0 } })], a.TableDataSource.prototype, "dataSourceName", void 0); a.TableDataSource = g = c.__decorate([m.subclass("esri.layers.support.source.TableDataSource")], a.TableDataSource); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  6964. })
  6965. }, "esri/rest/support/QuantizationParameters": function () {
  6966. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../geometry/Extent".split(" "),
  6967. function (a, b, c, e, d, l, r, q, k, m) {
  6968. var g; c = new e.JSONMap({ upperLeft: "upper-left", lowerLeft: "lower-left" }); d = g = function (p) { function t(n) { n = p.call(this, n) || this; n.extent = null; n.mode = "view"; n.originPosition = "upper-left"; n.tolerance = 1; return n } a._inheritsLoose(t, p); t.prototype.clone = function () { return new g(l.clone({ extent: this.extent, mode: this.mode, originPosition: this.originPosition, tolerance: this.tolerance })) }; return t }(d.JSONSupport); b.__decorate([r.property({
  6969. type: m, json: {
  6970. write: {
  6971. overridePolicy() {
  6972. return {
  6973. enabled: "view" ===
  6974. this.mode
  6975. }
  6976. }
  6977. }
  6978. }
  6979. })], d.prototype, "extent", void 0); b.__decorate([r.property({ type: ["view", "edit"], json: { write: !0 } })], d.prototype, "mode", void 0); b.__decorate([r.property({ type: String, json: { read: c.read, write: c.write } })], d.prototype, "originPosition", void 0); b.__decorate([r.property({ type: Number, json: { write: { overridePolicy() { return { enabled: "view" === this.mode } } } } })], d.prototype, "tolerance", void 0); return d = g = b.__decorate([k.subclass("esri.rest.support.QuantizationParameters")], d)
  6980. })
  6981. }, "esri/rest/support/StatisticDefinition": function () {
  6982. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "),
  6983. function (a, b, c, e, d, l, r, q, k) {
  6984. var m; c = new c.JSONMap({ count: "count", sum: "sum", min: "min", max: "max", avg: "avg", stddev: "stddev", var: "var", exceedslimit: "exceedslimit", percentile_cont: "percentile-continuous", percentile_disc: "percentile-discrete", EnvelopeAggregate: "envelope-aggregate", CentroidAggregate: "centroid-aggregate", ConvexHullAggregate: "convex-hull-aggregate" }); e = m = function (g) {
  6985. function p(n) {
  6986. n = g.call(this, n) || this; n.maxPointCount = void 0; n.maxRecordCount = void 0; n.maxVertexCount = void 0; n.onStatisticField =
  6987. null; n.outStatisticFieldName = null; n.statisticType = null; n.statisticParameters = null; return n
  6988. } a._inheritsLoose(p, g); var t = p.prototype; t.writeStatisticParameters = function (n, u) { if ("percentile-continuous" === this.statisticType || "percentile-discrete" === this.statisticType) u.statisticParameters = d.clone(n) }; t.clone = function () {
  6989. return new m({
  6990. maxPointCount: this.maxPointCount, maxRecordCount: this.maxRecordCount, maxVertexCount: this.maxVertexCount, onStatisticField: this.onStatisticField, outStatisticFieldName: this.outStatisticFieldName,
  6991. statisticType: this.statisticType, statisticParameters: d.clone(this.statisticParameters)
  6992. })
  6993. }; return p
  6994. }(e.JSONSupport); b.__decorate([l.property({ type: Number, json: { write: !0 } })], e.prototype, "maxPointCount", void 0); b.__decorate([l.property({ type: Number, json: { write: !0 } })], e.prototype, "maxRecordCount", void 0); b.__decorate([l.property({ type: Number, json: { write: !0 } })], e.prototype, "maxVertexCount", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })], e.prototype, "onStatisticField", void 0); b.__decorate([l.property({
  6995. type: String,
  6996. json: { write: !0 }
  6997. })], e.prototype, "outStatisticFieldName", void 0); b.__decorate([l.property({ type: String, json: { read: { source: "statisticType", reader: c.read }, write: { target: "statisticType", writer: c.write } } })], e.prototype, "statisticType", void 0); b.__decorate([l.property({ type: Object })], e.prototype, "statisticParameters", void 0); b.__decorate([k.writer("statisticParameters")], e.prototype, "writeStatisticParameters", null); return e = m = b.__decorate([q.subclass("esri.rest.support.StatisticDefinition")], e)
  6998. })
  6999. }, "esri/layers/mixins/OrderedLayer": function () {
  7000. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/object ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/OrderByInfo".split(" "),
  7001. function (a, b, c, e, d, l, r, q, k, m) {
  7002. function g(t, n, u) { if (!t) return null; t = t.find(f => !!f.field); if (!t) return null; n = new m; n.read(t, u); return [n] } function p(t, n, u, f) { (t = t.find(h => !!h.field)) && e.setDeepValue(u, [t.toJSON()], n) } a.OrderedLayer = t => {
  7003. t = function (n) { function u() { var f = n.apply(this, arguments) || this; f.orderBy = null; return f } b._inheritsLoose(u, n); return u }(t); c.__decorate([d.property({
  7004. type: [m], json: {
  7005. origins: { "web-scene": { write: !1, read: !1 } }, read: { source: "layerDefinition.orderBy", reader: g }, write: {
  7006. target: "layerDefinition.orderBy",
  7007. writer: p
  7008. }
  7009. }
  7010. })], t.prototype, "orderBy", void 0); return t = c.__decorate([k.subclass("esri.layers.mixins.OrderedLayer")], t)
  7011. }; a.isOrderedLayer = function (t) { return void 0 !== t.orderBy }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7012. })
  7013. }, "esri/layers/support/OrderByInfo": function () {
  7014. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  7015. function (a, b, c, e, d, l, r, q, k) {
  7016. var m; c = new c.JSONMap({ asc: "ascending", desc: "descending" }); e = m = function (g) { function p(t) { t = g.call(this, t) || this; t.field = null; t.valueExpression = null; t.order = "ascending"; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ field: this.field, valueExpression: this.valueExpression, order: this.order }) }; return p }(e.JSONSupport); b.__decorate([d.property({ type: String, json: { write: !0 } })], e.prototype, "field", void 0); b.__decorate([d.property({ type: String, json: { write: !0 } })],
  7017. e.prototype, "valueExpression", void 0); b.__decorate([d.property({ type: c.apiValues, json: { read: c.read, write: c.write } })], e.prototype, "order", void 0); return e = m = b.__decorate([k.subclass("esri.layers.support.OrderByInfo")], e)
  7018. })
  7019. }, "esri/layers/mixins/TemporalLayer": function () {
  7020. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../TimeExtent ../../TimeInterval ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../support/fieldUtils ../support/TimeInfo ../../portal/timeUnitKebabDictionary".split(" "),
  7021. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  7022. a.TemporalLayer = u => {
  7023. u = function (f) {
  7024. function h() { var v = f.apply(this, arguments) || this; v.timeExtent = null; v.timeOffset = null; v.useViewTime = !0; return v } b._inheritsLoose(h, f); h.prototype.readOffset = function (v, y) { y = y.timeInfo.exportOptions; if (!y) return null; v = y.timeOffset; y = n.timeUnitKebabDictionary.fromJSON(y.timeOffsetUnits); return v && y ? new d({ value: v, unit: y }) : null }; b._createClass(h, [{
  7025. key: "timeInfo", set: function (v) {
  7026. p.fixTimeInfoFields(v, this.fieldsIndex); this._set("timeInfo",
  7027. v)
  7028. }
  7029. }]); return h
  7030. }(u); c.__decorate([l.property({ type: e, json: { write: !1 } })], u.prototype, "timeExtent", void 0); c.__decorate([l.property({ type: d })], u.prototype, "timeOffset", void 0); c.__decorate([m.reader("service", "timeOffset", ["timeInfo.exportOptions"])], u.prototype, "readOffset", null); c.__decorate([l.property({ value: null, type: t, json: { write: !0, origins: { "web-document": { read: !1, write: !1 }, "portal-item": { read: !1, write: !1 } } } })], u.prototype, "timeInfo", null); c.__decorate([l.property({
  7031. type: Boolean, json: {
  7032. read: { source: "timeAnimation" },
  7033. write: { target: "timeAnimation" }, origins: { "web-scene": { read: !1, write: !1 } }
  7034. }
  7035. })], u.prototype, "useViewTime", void 0); return u = c.__decorate([g.subclass("esri.layers.mixins.TemporalLayer")], u)
  7036. }; a.isTemporalLayer = function (u) { return void 0 !== u.timeInfo }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7037. })
  7038. }, "esri/TimeInterval": function () {
  7039. define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/JSONSupport ./core/timeUtils ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/has ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./portal/timeUnitKebabDictionary".split(" "),
  7040. function (a, b, c, e, d, l, r, q, k, m) {
  7041. var g; c = g = function (p) { function t(u) { u = p.call(this, u) || this; u.value = 0; u.unit = "milliseconds"; return u } a._inheritsLoose(t, p); var n = t.prototype; n.toMilliseconds = function () { return e.convertTime(this.value, this.unit, "milliseconds") }; n.clone = function () { return new g({ value: this.value, unit: this.unit }) }; return t }(c.JSONSupport); b.__decorate([d.property({ type: Number, json: { write: !0 }, nonNullable: !0 })], c.prototype, "value", void 0); b.__decorate([d.property({
  7042. type: m.timeUnitKebabDictionary.apiValues,
  7043. json: { type: m.timeUnitKebabDictionary.jsonValues, read: m.timeUnitKebabDictionary.read, write: m.timeUnitKebabDictionary.write }, nonNullable: !0
  7044. })], c.prototype, "unit", void 0); return c = g = b.__decorate([k.subclass("esri.TimeInterval")], c)
  7045. })
  7046. }, "esri/portal/timeUnitKebabDictionary": function () {
  7047. define(["exports", "../core/jsonMap"], function (a, b) {
  7048. b = b.strict()({
  7049. esriTimeUnitsMilliseconds: "milliseconds", esriTimeUnitsSeconds: "seconds", esriTimeUnitsMinutes: "minutes", esriTimeUnitsHours: "hours", esriTimeUnitsDays: "days",
  7050. esriTimeUnitsWeeks: "weeks", esriTimeUnitsMonths: "months", esriTimeUnitsYears: "years", esriTimeUnitsDecades: "decades", esriTimeUnitsCenturies: "centuries", esriTimeUnitsUnknown: void 0
  7051. }); a.timeUnitKebabDictionary = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7052. })
  7053. }, "esri/layers/support/TimeInfo": function () {
  7054. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../TimeExtent ../../TimeInterval ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./TimeReference ../../portal/timeUnitKebabDictionary".split(" "),
  7055. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  7056. var u; d = u = function (f) {
  7057. function h(y) { y = f.call(this, y) || this; y.cumulative = !1; y.endField = null; y.fullTimeExtent = null; y.hasLiveData = !1; y.interval = null; y.startField = null; y.timeReference = null; y.trackIdField = null; y.useTime = !0; return y } a._inheritsLoose(h, f); var v = h.prototype; v.readFullTimeExtent = function (y, B) { return B.timeExtent && Array.isArray(B.timeExtent) && 2 === B.timeExtent.length ? new c({ start: new Date(B.timeExtent[0]), end: new Date(B.timeExtent[1]) }) : null }; v.writeFullTimeExtent =
  7058. function (y, B) { y && r.isSome(y.start) && r.isSome(y.end) ? B.timeExtent = [y.start.getTime(), y.end.getTime()] : B.timeExtent = null }; v.readInterval = function (y, B) { return B.timeInterval && B.timeIntervalUnits ? new e({ value: B.timeInterval, unit: n.timeUnitKebabDictionary.fromJSON(B.timeIntervalUnits) }) : B.defaultTimeInterval && B.defaultTimeIntervalUnits ? new e({ value: B.defaultTimeInterval, unit: n.timeUnitKebabDictionary.fromJSON(B.defaultTimeIntervalUnits) }) : null }; v.writeInterval = function (y, B) {
  7059. y ? (y = y.toJSON(), B.timeInterval =
  7060. y.value, B.timeIntervalUnits = y.unit) : (B.timeInterval = null, B.timeIntervalUnits = null)
  7061. }; v.clone = function () { const { cumulative: y, endField: B, hasLiveData: w, interval: x, startField: z, timeReference: C, fullTimeExtent: A, trackIdField: D, useTime: F } = this; return new u({ cumulative: y, endField: B, hasLiveData: w, interval: x, startField: z, timeReference: l.clone(C), fullTimeExtent: l.clone(A), trackIdField: D, useTime: F }) }; return h
  7062. }(d.JSONSupport); b.__decorate([q.property({
  7063. type: Boolean, json: {
  7064. read: { source: "exportOptions.timeDataCumulative" },
  7065. write: { target: "exportOptions.timeDataCumulative" }
  7066. }
  7067. })], d.prototype, "cumulative", void 0); b.__decorate([q.property({ type: String, json: { read: { source: "endTimeField" }, write: { target: "endTimeField", allowNull: !0 } } })], d.prototype, "endField", void 0); b.__decorate([q.property({ type: c, json: { write: { enabled: !0, allowNull: !0 } } })], d.prototype, "fullTimeExtent", void 0); b.__decorate([m.reader("fullTimeExtent", ["timeExtent"])], d.prototype, "readFullTimeExtent", null); b.__decorate([p.writer("fullTimeExtent")], d.prototype, "writeFullTimeExtent",
  7068. null); b.__decorate([q.property({ type: Boolean, json: { write: !0 } })], d.prototype, "hasLiveData", void 0); b.__decorate([q.property({ type: e, json: { write: { enabled: !0, allowNull: !0 } } })], d.prototype, "interval", void 0); b.__decorate([m.reader("interval", ["timeInterval", "timeIntervalUnits", "defaultTimeInterval", "defaultTimeIntervalUnits"])], d.prototype, "readInterval", null); b.__decorate([p.writer("interval")], d.prototype, "writeInterval", null); b.__decorate([q.property({
  7069. type: String, json: {
  7070. read: { source: "startTimeField" },
  7071. write: { target: "startTimeField", allowNull: !0 }
  7072. }
  7073. })], d.prototype, "startField", void 0); b.__decorate([q.property({ type: t, json: { write: { enabled: !0, allowNull: !0 } } })], d.prototype, "timeReference", void 0); b.__decorate([q.property({ type: String, json: { write: { enabled: !0, allowNull: !0 } } })], d.prototype, "trackIdField", void 0); b.__decorate([q.property({ type: Boolean, json: { read: { source: "exportOptions.useTime" }, write: { target: "exportOptions.useTime" } } })], d.prototype, "useTime", void 0); return d = u = b.__decorate([g.subclass("esri.layers.support.TimeInfo")],
  7074. d)
  7075. })
  7076. }, "esri/layers/support/TimeReference": function () {
  7077. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k) {
  7078. var m; c = m = function (g) {
  7079. function p(n) {
  7080. n = g.call(this, n) || this; n.respectsDaylightSaving = !1; n.timezone = null;
  7081. return n
  7082. } a._inheritsLoose(p, g); var t = p.prototype; t.readRespectsDaylightSaving = function (n, u) { return void 0 !== u.respectsDaylightSaving ? u.respectsDaylightSaving : void 0 !== u.respectDaylightSaving ? u.respectDaylightSaving : !1 }; t.clone = function () { const { respectsDaylightSaving: n, timezone: u } = this; return new m({ respectsDaylightSaving: n, timezone: u }) }; return p
  7083. }(c.JSONSupport); b.__decorate([e.property({ type: Boolean, json: { write: !0 } })], c.prototype, "respectsDaylightSaving", void 0); b.__decorate([q.reader("respectsDaylightSaving",
  7084. ["respectsDaylightSaving", "respectDaylightSaving"])], c.prototype, "readRespectsDaylightSaving", null); b.__decorate([e.property({ type: String, json: { read: { source: "timeZone" }, write: { target: "timeZone" } } })], c.prototype, "timezone", void 0); return c = m = b.__decorate([k.subclass("esri.layers.support.TimeReference")], c)
  7085. })
  7086. }, "esri/layers/support/FeatureIndex": function () {
  7087. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  7088. function (a, b, c, e, d, l, r, q, k) {
  7089. var m; a.FeatureIndex = m = function (g) { function p(t) { return g.call(this, t) || this } b._inheritsLoose(p, g); p.prototype.clone = function () { const { name: t, fields: n, isAscending: u, isUnique: f, description: h } = this; return new m({ name: t, fields: n, isAscending: u, isUnique: f, description: h }) }; return p }(e.JSONSupport); c.__decorate([d.property({ constructOnly: !0 })], a.FeatureIndex.prototype, "name", void 0); c.__decorate([d.property({ constructOnly: !0 })], a.FeatureIndex.prototype, "fields", void 0); c.__decorate([d.property({ constructOnly: !0 })],
  7090. a.FeatureIndex.prototype, "isAscending", void 0); c.__decorate([d.property({ constructOnly: !0 })], a.FeatureIndex.prototype, "isUnique", void 0); c.__decorate([d.property({ constructOnly: !0 })], a.FeatureIndex.prototype, "description", void 0); a.FeatureIndex = m = c.__decorate([k.subclass("esri.layers.support.FeatureIndex")], a.FeatureIndex); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7091. })
  7092. }, "esri/layers/support/featureReductionUtils": function () {
  7093. define(["exports", "./FeatureReduction",
  7094. "./FeatureReductionBinning", "./FeatureReductionCluster", "./FeatureReductionSelection"], function (a, b, c, e, d) {
  7095. const l = { key: "type", base: b.FeatureReduction, typeMap: { selection: e } }; a.featureReductionProperty = { types: { key: "type", base: b.FeatureReduction, typeMap: { selection: d, cluster: e, binning: c } }, json: { name: "layerDefinition.featureReduction", write: { allowNull: !0 }, origins: { "web-map": { types: l }, "portal-item": { types: l }, "web-scene": { types: { key: "type", base: b.FeatureReduction, typeMap: { selection: d } } } } } }; Object.defineProperties(a,
  7096. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7097. })
  7098. }, "esri/layers/support/FeatureReduction": function () {
  7099. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k) {
  7100. a.FeatureReduction = function (m) {
  7101. function g() {
  7102. var p = m.apply(this, arguments) ||
  7103. this; p.type = null; return p
  7104. } b._inheritsLoose(g, m); return g
  7105. }(e.JSONSupport); c.__decorate([d.property({ type: ["selection", "cluster", "binning"], readOnly: !0, json: { read: !1, write: !0 } })], a.FeatureReduction.prototype, "type", void 0); a.FeatureReduction = c.__decorate([k.subclass("esri.layers.support.FeatureReduction")], a.FeatureReduction); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7106. })
  7107. }, "esri/layers/support/FeatureReductionBinning": function () {
  7108. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../PopupTemplate ../../renderers/ClassBreaksRenderer ../../renderers/DictionaryRenderer ../../renderers/DotDensityRenderer ../../renderers/HeatmapRenderer ../../renderers/PieChartRenderer ../../renderers/Renderer ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../renderers/support/jsonUtils ../../renderers/support/types ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./AggregateField ./commonProperties ./FeatureReduction ./LabelClass".split(" "),
  7109. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x) {
  7110. var z; e = z = function (C) {
  7111. function A(D) { D = C.call(this, D) || this; D.type = "binning"; D.fixedBinLevel = 3; D.labelingInfo = null; D.labelsVisible = !0; D.popupEnabled = !0; D.popupTemplate = null; D.fields = []; D.renderer = null; return D } a._inheritsLoose(A, C); A.prototype.clone = function () {
  7112. return new z({
  7113. fields: n.clone(this.fields), fixedBinLevel: this.fixedBinLevel, labelingInfo: n.clone(this.labelingInfo), labelsVisible: this.labelsVisible, popupEnabled: this.popupEnabled, popupTemplate: n.clone(this.popupTemplate),
  7114. renderer: n.clone(this.renderer)
  7115. })
  7116. }; return A
  7117. }(w.FeatureReduction); b.__decorate([h.enumeration({ binning: "binning" })], e.prototype, "type", void 0); b.__decorate([u.property({ type: Number, json: { write: !0 } })], e.prototype, "fixedBinLevel", void 0); b.__decorate([u.property({ type: [x], json: { read: { source: "drawingInfo.labelingInfo" }, write: { target: "drawingInfo.labelingInfo" } } })], e.prototype, "labelingInfo", void 0); b.__decorate([u.property(B.labelsVisible)], e.prototype, "labelsVisible", void 0); b.__decorate([u.property(B.popupEnabled)],
  7118. e.prototype, "popupEnabled", void 0); b.__decorate([u.property({ type: c, json: { name: "popupInfo", write: !0 } })], e.prototype, "popupTemplate", void 0); b.__decorate([u.property({ type: [y], json: { write: !0, origins: { "web-document": { write: !1 }, "portal-item": { write: !1 } } } })], e.prototype, "fields", void 0); b.__decorate([u.property({ types: t.rendererTypes, json: { write: !0 } })], e.prototype, "renderer", void 0); return e = z = b.__decorate([v.subclass("esri.layers.support.FeatureReductionBinning")], e)
  7119. })
  7120. }, "esri/layers/support/AggregateField": function () {
  7121. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./OutStatistic".split(" "),
  7122. function (a, b, c, e, d, l, r, q, k) {
  7123. var m; c = m = function (g) { function p() { var t = g.apply(this, arguments) || this; t.name = null; t.outStatistic = null; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ name: this.name, outStatistic: this.outStatistic.clone() }) }; return p }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "name", void 0); b.__decorate([e.property({ type: k, json: { write: !0 } })], c.prototype, "outStatistic", void 0); return c = m = b.__decorate([q.subclass("esri.layers.support.AggregateField")],
  7124. c)
  7125. })
  7126. }, "esri/layers/support/OutStatistic": function () {
  7127. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  7128. var k; c = k = function (m) {
  7129. function g() {
  7130. var p = m.apply(this, arguments) || this; p.statisticType = null; p.onStatisticField = null; p.onStatisticValueExpression = null;
  7131. return p
  7132. } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ statisticType: this.statisticType, onStatisticField: this.onStatisticField, onStatisticValueExpression: this.onStatisticValueExpression }) }; return g
  7133. }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "statisticType", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "onStatisticField", void 0); b.__decorate([e.property({ type: String, json: { write: !0 } })], c.prototype, "onStatisticValueExpression",
  7134. void 0); return c = k = b.__decorate([q.subclass("esri.layers.support.OutStatistic")], c)
  7135. })
  7136. }, "esri/layers/support/LabelClass": function () {
  7137. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../symbols ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./LabelExpressionInfo ./labelUtils ../../symbols/support/defaults ../../symbols/support/jsonUtils".split(" "),
  7138. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f) {
  7139. function h(B) { var w; return B ? "service" === B.origin ? !1 : "map-image" !== (null == (w = B.layer) ? void 0 : w.type) : !0 } function v(B) { var w, x; return "map-image" === (null == B ? void 0 : B.type) ? !(null == (w = B.capabilities) || null == (x = w.exportMap) || !x.supportsArcadeExpressionForLabeling) : !1 } var y; e = new e.JSONMap({
  7140. esriServerPointLabelPlacementAboveCenter: "above-center", esriServerPointLabelPlacementAboveLeft: "above-left", esriServerPointLabelPlacementAboveRight: "above-right", esriServerPointLabelPlacementBelowCenter: "below-center",
  7141. esriServerPointLabelPlacementBelowLeft: "below-left", esriServerPointLabelPlacementBelowRight: "below-right", esriServerPointLabelPlacementCenterCenter: "center-center", esriServerPointLabelPlacementCenterLeft: "center-left", esriServerPointLabelPlacementCenterRight: "center-right", esriServerLinePlacementAboveAfter: "above-after", esriServerLinePlacementAboveAlong: "above-along", esriServerLinePlacementAboveBefore: "above-before", esriServerLinePlacementAboveStart: "above-start", esriServerLinePlacementAboveEnd: "above-end",
  7142. esriServerLinePlacementBelowAfter: "below-after", esriServerLinePlacementBelowAlong: "below-along", esriServerLinePlacementBelowBefore: "below-before", esriServerLinePlacementBelowStart: "below-start", esriServerLinePlacementBelowEnd: "below-end", esriServerLinePlacementCenterAfter: "center-after", esriServerLinePlacementCenterAlong: "center-along", esriServerLinePlacementCenterBefore: "center-before", esriServerLinePlacementCenterStart: "center-start", esriServerLinePlacementCenterEnd: "center-end", esriServerPolygonPlacementAlwaysHorizontal: "always-horizontal"
  7143. },
  7144. { ignoreUnknown: !0 }); d = y = function (B) {
  7145. function w(z) { z = B.call(this, z) || this; z.type = "label"; z.name = null; z.allowOverrun = !1; z.deconflictionStrategy = "static"; z.labelExpression = null; z.labelExpressionInfo = null; z.labelPlacement = null; z.labelPosition = "curved"; z.maxScale = 0; z.minScale = 0; z.repeatLabel = !0; z.repeatLabelDistance = null; z.symbol = u.defaultTextSymbol2D; z.useCodedValues = void 0; z.where = null; return z } a._inheritsLoose(w, B); w.evaluateWhere = function (z, C) {
  7146. const A = (D, F, J) => {
  7147. switch (F) {
  7148. case "\x3d": return D == J ? !0 :
  7149. !1; case "\x3c\x3e": return D != J ? !0 : !1; case "\x3e": return D > J ? !0 : !1; case "\x3e\x3d": return D >= J ? !0 : !1; case "\x3c": return D < J ? !0 : !1; case "\x3c\x3d": return D <= J ? !0 : !1
  7150. }return !1
  7151. }; try { if (null == z) return !0; const D = z.split(" "); if (3 === D.length) return A(C[D[0]], D[1], D[2]); if (7 === D.length) { const F = A(C[D[0]], D[1], D[2]), J = D[3], M = A(C[D[4]], D[5], D[6]); switch (J) { case "AND": return F && M; case "OR": return F || M } } return !1 } catch (D) { console.log("Error.: can't parse \x3d " + z) }
  7152. }; var x = w.prototype; x.readLabelExpression = function (z,
  7153. C) { C = C.labelExpressionInfo; if (!C || !C.value && !C.expression) return z }; x.writeLabelExpression = function (z, C, A) { if (this.labelExpressionInfo) if (null != this.labelExpressionInfo.value) z = n.templateStringToSql(this.labelExpressionInfo.value); else if (null != this.labelExpressionInfo.expression) { const D = n.getSingleFieldArcadeExpression(this.labelExpressionInfo.expression); D && (z = "[" + D + "]") } null != z && (C[A] = z) }; x.writeLabelExpressionInfo = function (z, C, A, D) {
  7154. if (null == z && null != this.labelExpression && h(D)) z = new t({ expression: this.getLabelExpressionArcade() });
  7155. else if (!z) return; z = z.toJSON(D); z.expression && (C[A] = z)
  7156. }; x.writeMaxScale = function (z, C) { if (z || this.minScale) C.maxScale = z }; x.writeMinScale = function (z, C) { if (z || this.maxScale) C.minScale = z }; x.getLabelExpression = function () { return n.getLabelExpression(this) }; x.getLabelExpressionArcade = function () { return n.getLabelExpressionArcade(this) }; x.getLabelExpressionSingleField = function () { return n.getLabelExpressionSingleField(this) }; x.hash = function () { return JSON.stringify(this) }; x.clone = function () {
  7157. return new y({
  7158. allowOverrun: this.allowOverrun,
  7159. deconflictionStrategy: this.deconflictionStrategy, labelExpression: this.labelExpression, labelExpressionInfo: l.clone(this.labelExpressionInfo), labelPosition: this.labelPosition, labelPlacement: this.labelPlacement, maxScale: this.maxScale, minScale: this.minScale, name: this.name, repeatLabel: this.repeatLabel, repeatLabelDistance: this.repeatLabelDistance, symbol: l.clone(this.symbol), where: this.where, useCodedValues: this.useCodedValues
  7160. })
  7161. }; return w
  7162. }(d.JSONSupport); b.__decorate([q.property({ type: String, json: { write: !0 } })],
  7163. d.prototype, "name", void 0); b.__decorate([q.property({ type: Boolean, json: { write: !0, default: !1, origins: { "web-scene": { write: !1 } } } })], d.prototype, "allowOverrun", void 0); b.__decorate([q.property({ type: String, json: { write: !0, default: "static", origins: { "web-scene": { write: !1 } } } })], d.prototype, "deconflictionStrategy", void 0); b.__decorate([q.property({ type: String, json: { write: { overridePolicy(B, w, x) { return this.labelExpressionInfo && "service" === (null == x ? void 0 : x.origin) && v(x.layer) ? { enabled: !1 } : { allowNull: !0 } } } } })],
  7164. d.prototype, "labelExpression", void 0); b.__decorate([m.reader("labelExpression")], d.prototype, "readLabelExpression", null); b.__decorate([p.writer("labelExpression")], d.prototype, "writeLabelExpression", null); b.__decorate([q.property({ type: t, json: { write: { overridePolicy(B, w, x) { return h(x) || v(x.layer) ? { allowNull: !0 } : { enabled: !1 } } } } })], d.prototype, "labelExpressionInfo", void 0); b.__decorate([p.writer("labelExpressionInfo")], d.prototype, "writeLabelExpressionInfo", null); b.__decorate([q.property({
  7165. type: e.apiValues,
  7166. json: { type: e.jsonValues, read: e.read, write: e.write }
  7167. })], d.prototype, "labelPlacement", void 0); b.__decorate([q.property({ type: ["curved", "parallel"], json: { write: !0, origins: { "web-map": { write: !1 }, "web-scene": { write: !1 }, "portal-item": { write: !1 } } } })], d.prototype, "labelPosition", void 0); b.__decorate([q.property({ type: Number })], d.prototype, "maxScale", void 0); b.__decorate([p.writer("maxScale")], d.prototype, "writeMaxScale", null); b.__decorate([q.property({ type: Number })], d.prototype, "minScale", void 0); b.__decorate([p.writer("minScale")],
  7168. d.prototype, "writeMinScale", null); b.__decorate([q.property({ type: Boolean, json: { write: !0, origins: { "web-scene": { write: !1 }, "portal-item": { write: !1 } } } })], d.prototype, "repeatLabel", void 0); b.__decorate([q.property({ type: Number, cast: r.toPt, json: { write: !0, origins: { "web-scene": { write: !1 } } } })], d.prototype, "repeatLabelDistance", void 0); b.__decorate([q.property({ types: c.symbolTypesLabel, json: { origins: { "web-scene": { types: c.symbolTypesLabel3D, write: f.writeLabelSymbol, default: null } }, write: f.writeLabelSymbol, default: null } })],
  7169. d.prototype, "symbol", void 0); b.__decorate([q.property({ type: Boolean, json: { write: !0 } })], d.prototype, "useCodedValues", void 0); b.__decorate([q.property({ type: String, json: { write: !0 } })], d.prototype, "where", void 0); return d = y = b.__decorate([g.subclass("esri.layers.support.LabelClass")], d)
  7170. })
  7171. }, "esri/layers/support/LabelExpressionInfo": function () {
  7172. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./labelUtils".split(" "),
  7173. function (a, b, c, e, d, l, r, q, k, m, g) {
  7174. var p; c = p = function (t) {
  7175. function n() { var f = t.apply(this, arguments) || this; f.expression = null; f.title = null; f.value = null; return f } a._inheritsLoose(n, t); var u = n.prototype; u.readExpression = function (f, h) { return h.value ? g.convertTemplatedStringToArcade(h.value) : f }; u.writeExpression = function (f, h, v) { null != this.value && (f = g.convertTemplatedStringToArcade(this.value)); null != f && (h[v] = f) }; u.clone = function () { return new p({ expression: this.expression, title: this.title, value: this.value }) };
  7176. return n
  7177. }(c.JSONSupport); b.__decorate([e.property({ type: String, json: { write: { writerEnsuresNonNull: !0 } } })], c.prototype, "expression", void 0); b.__decorate([q.reader("expression", ["expression", "value"])], c.prototype, "readExpression", null); b.__decorate([m.writer("expression")], c.prototype, "writeExpression", null); b.__decorate([e.property({ type: String, json: { write: !0, origins: { "web-scene": { write: !1 } } } })], c.prototype, "title", void 0); b.__decorate([e.property({ json: { read: !1, write: !1 } })], c.prototype, "value", void 0);
  7178. return c = p = b.__decorate([k.subclass("esri.layers.support.LabelExpressionInfo")], c)
  7179. })
  7180. }, "esri/layers/support/labelUtils": function () {
  7181. define(["exports", "../../core/string"], function (a, b) {
  7182. function c(f) { return f.replace(/\[/g, "{").replace(/\]/g, "}") } function e(f) {
  7183. const h = { expression: "", type: "none" }; f.labelExpressionInfo ? f.labelExpressionInfo.value ? (h.expression = f.labelExpressionInfo.value, h.type = "conventional") : f.labelExpressionInfo.expression && (h.expression = f.labelExpressionInfo.expression, h.type = "arcade") :
  7184. null != f.labelExpression && (h.expression = c(f.labelExpression), h.type = "conventional"); return h
  7185. } function d(f) { f ? (f = b.replace(f, h => '__begin__$feature["' + h + '"]__end__'), f = m.test(f) ? f.replace(m, "") : '"' + f, f = g.test(f) ? f.replace(g, "") : f + '"', f = f.replace(q, '" + ').replace(k, ' + "')) : f = '""'; return f } function l(f) { return (f = f.match(p)) && f[1].trim() || null } function r(f) { if (!f) return null; let h = t.exec(f) || n.exec(f); return h ? h[1] || h[3] : (h = u.exec(f)) ? h[2] : null } const q = /__begin__/ig, k = /__end__/ig, m = /^__begin__/i, g = /__end__$/i,
  7186. p = /^\s*\{([^}]+)\}\s*$/i, t = /^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i, n = /^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i, u = /^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i; a.convertTemplatedStringToArcade = d; a.getLabelExpression = e; a.getLabelExpressionArcade = function (f) { f = e(f); if (!f) return null; switch (f.type) { case "conventional": return d(f.expression); case "arcade": return f.expression }return null };
  7187. a.getLabelExpressionSingleField = function (f) { f = e(f); if (!f) return null; switch (f.type) { case "conventional": return l(f.expression); case "arcade": return r(f.expression) }return null }; a.getSingleFieldArcadeExpression = r; a.getSingleFieldTemplatedString = l; a.sqlToTemplateString = c; a.templateStringToSql = function (f) { return f.replace(/\{/g, "[").replace(/\}/g, "]") }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7188. })
  7189. }, "esri/symbols/support/defaults": function () {
  7190. define("exports ../../core/has ../../core/maybe ../SimpleFillSymbol ../SimpleLineSymbol ../SimpleMarkerSymbol ../TextSymbol ./defaultsJSON".split(" "),
  7191. function (a, b, c, e, d, l, r, q) {
  7192. const k = l.fromJSON(q.defaultPointSymbolJSON), m = d.fromJSON(q.defaultPolylineSymbolJSON), g = e.fromJSON(q.defaultPolygonSymbolJSON); b = r.fromJSON(q.defaultTextSymbolJSON); l = l.fromJSON(q.errorPointSymbolJSON); d = d.fromJSON(q.errorPolylineSymbolJSON); e = e.fromJSON(q.errorPolygonSymbolJSON); a.defaultPointSymbol2D = k; a.defaultPolygonSymbol2D = g; a.defaultPolylineSymbol2D = m; a.defaultTextSymbol2D = b; a.errorPointSymbol2D = l; a.errorPolygonSymbol2D = e; a.errorPolylineSymbol2D = d; a.getDefaultSymbol2D =
  7193. function (p) { if (c.isNone(p)) return null; switch (p.type) { case "point": case "multipoint": return k; case "polyline": return m; case "polygon": case "extent": return g }return null }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7194. })
  7195. }, "esri/symbols/support/defaultsJSON": function () {
  7196. define(["exports"], function (a) {
  7197. const b = [252, 146, 31, 255], c = { type: "esriSMS", style: "esriSMSCircle", size: 6, color: b, outline: { type: "esriSLS", style: "esriSLSSolid", width: .75, color: [153, 153, 153, 255] } },
  7198. e = { type: "esriSLS", style: "esriSLSSolid", width: .75, color: b }; a.defaultColor = b; a.defaultOutlineColor = [153, 153, 153, 255]; a.defaultPointSymbolJSON = c; a.defaultPolygonSymbolJSON = { type: "esriSFS", style: "esriSFSSolid", color: [252, 146, 31, 196], outline: { type: "esriSLS", style: "esriSLSSolid", width: .75, color: [255, 255, 255, 191] } }; a.defaultPolylineSymbolJSON = e; a.defaultTextSymbolJSON = {
  7199. type: "esriTS", color: [255, 255, 255, 255], font: { family: "arial-unicode-ms", size: 10, weight: "bold" }, horizontalAlignment: "center", kerning: !0, haloColor: [0,
  7200. 0, 0, 255], haloSize: 1, rotated: !1, text: "", xoffset: 0, yoffset: 0, angle: 0
  7201. }; a.errorPointSymbolJSON = { type: "esriSMS", style: "esriSMSCircle", color: [0, 0, 0, 255], outline: null, size: 10.5 }; a.errorPolygonSymbolJSON = { type: "esriSFS", style: "esriSFSSolid", color: [0, 0, 0, 255], outline: null }; a.errorPolylineSymbolJSON = { type: "esriSLS", style: "esriSLSSolid", color: [0, 0, 0, 255], width: 1.5 }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7202. })
  7203. }, "esri/layers/support/FeatureReductionCluster": function () {
  7204. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../PopupTemplate ../../renderers/ClassBreaksRenderer ../../renderers/DictionaryRenderer ../../renderers/DotDensityRenderer ../../renderers/HeatmapRenderer ../../renderers/PieChartRenderer ../../renderers/Renderer ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../renderers/support/jsonUtils ../../renderers/support/types ../../symbols ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./AggregateField ./commonProperties ./LabelClass".split(" "),
  7205. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z) {
  7206. var C; e = C = function (A) {
  7207. function D(F) { F = A.call(this, F) || this; F.type = "cluster"; F.clusterRadius = h.toPt("80px"); F.clusterMinSize = h.toPt("12px"); F.clusterMaxSize = h.toPt("50px"); F.popupEnabled = !0; F.popupTemplate = null; F.symbol = null; F.labelingInfo = null; F.labelsVisible = !0; F.fields = null; return F } a._inheritsLoose(D, A); D.prototype.clone = function () {
  7208. return new C({
  7209. clusterRadius: this.clusterRadius, clusterMinSize: this.clusterMinSize, clusterMaxSize: this.clusterMaxSize,
  7210. labelingInfo: f.clone(this.labelingInfo), labelsVisible: this.labelsVisible, fields: f.clone(this.fields), renderer: f.clone(this.renderer), popupEnabled: this.popupEnabled, popupTemplate: f.clone(this.popupTemplate)
  7211. })
  7212. }; return D
  7213. }(u.JSONSupport); b.__decorate([v.property({ type: ["cluster"], readOnly: !0, json: { write: !0 } })], e.prototype, "type", void 0); b.__decorate([v.property({ type: Number, cast: A => "auto" === A ? A : h.toPt(A), json: { write: !0 } })], e.prototype, "clusterRadius", void 0); b.__decorate([v.property({
  7214. type: Number, cast: h.toPt,
  7215. json: { write: !0 }
  7216. })], e.prototype, "clusterMinSize", void 0); b.__decorate([v.property({ type: Number, cast: h.toPt, json: { write: !0 } })], e.prototype, "clusterMaxSize", void 0); b.__decorate([v.property(x.popupEnabled)], e.prototype, "popupEnabled", void 0); b.__decorate([v.property({ type: c, json: { read: { source: "popupInfo" }, write: { target: "popupInfo" } } })], e.prototype, "popupTemplate", void 0); b.__decorate([v.property({ types: t.rendererTypes, json: { write: !0 } })], e.prototype, "renderer", void 0); b.__decorate([v.property({ types: n.symbolTypesCluster })],
  7217. e.prototype, "symbol", void 0); b.__decorate([v.property({ type: [z], json: { read: { source: "drawingInfo.labelingInfo" }, write: { target: "drawingInfo.labelingInfo" } } })], e.prototype, "labelingInfo", void 0); b.__decorate([v.property(x.labelsVisible)], e.prototype, "labelsVisible", void 0); b.__decorate([v.property({ type: [w], json: { write: !0, origins: { "web-document": { write: !1 }, "portal-item": { write: !1 } } } })], e.prototype, "fields", void 0); return e = C = b.__decorate([B.subclass("esri.layers.support.FeatureReductionCluster")], e)
  7218. })
  7219. },
  7220. "esri/layers/support/FeatureReductionSelection": function () {
  7221. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./FeatureReduction".split(" "), function (a, b, c, e, d, l, r, q) {
  7222. var k; e = k = function (m) {
  7223. function g(p) { p = m.call(this, p) || this; p.type = "selection"; return p } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k };
  7224. return g
  7225. }(q.FeatureReduction); b.__decorate([c.property({ type: ["selection"] })], e.prototype, "type", void 0); return e = k = b.__decorate([r.subclass("esri.layers.support.FeatureReductionSelection")], e)
  7226. })
  7227. }, "esri/layers/support/FeatureTemplate": function () {
  7228. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  7229. function (a, b, c, e, d, l, r, q, k, m) {
  7230. e = new e.JSONMap({
  7231. esriFeatureEditToolAutoCompletePolygon: "auto-complete-polygon", esriFeatureEditToolCircle: "circle", esriFeatureEditToolEllipse: "ellipse", esriFeatureEditToolFreehand: "freehand", esriFeatureEditToolLine: "line", esriFeatureEditToolNone: "none", esriFeatureEditToolPoint: "point", esriFeatureEditToolPolygon: "polygon", esriFeatureEditToolRectangle: "rectangle", esriFeatureEditToolArrow: "arrow", esriFeatureEditToolTriangle: "triangle", esriFeatureEditToolLeftArrow: "left-arrow",
  7232. esriFeatureEditToolRightArrow: "right-arrow", esriFeatureEditToolUpArrow: "up-arrow", esriFeatureEditToolDownArrow: "down-arrow"
  7233. }); c = function (g) { function p(t) { t = g.call(this, t) || this; t.name = null; t.description = null; t.drawingTool = null; t.prototype = null; t.thumbnail = null; return t } a._inheritsLoose(p, g); return p }(c.ClonableMixin(d.JSONSupport)); b.__decorate([l.property({ json: { write: !0 } })], c.prototype, "name", void 0); b.__decorate([l.property({ json: { write: !0 } })], c.prototype, "description", void 0); b.__decorate([l.property({
  7234. json: {
  7235. read: e.read,
  7236. write: e.write
  7237. }
  7238. })], c.prototype, "drawingTool", void 0); b.__decorate([l.property({ json: { write: !0 } })], c.prototype, "prototype", void 0); b.__decorate([l.property({ json: { write: !0 } })], c.prototype, "thumbnail", void 0); return c = b.__decorate([m.subclass("esri.layers.support.FeatureTemplate")], c)
  7239. })
  7240. }, "esri/layers/support/FeatureType": function () {
  7241. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./domains ./FeatureTemplate".split(" "),
  7242. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  7243. c = function (n) { function u(h) { h = n.call(this, h) || this; h.id = null; h.name = null; h.domains = null; h.templates = null; return h } a._inheritsLoose(u, n); var f = u.prototype; f.readDomains = function (h) { const v = {}; for (const y of Object.keys(h)) v[y] = p.fromJSON(h[y]); return v }; f.writeDomains = function (h, v) { const y = {}; for (const w of Object.keys(h)) if (h[w]) { var B; y[w] = null == (B = h[w]) ? void 0 : B.toJSON() } v.domains = y }; return u }(c.ClonableMixin(e.JSONSupport)); b.__decorate([d.property({ json: { write: !0 } })],
  7244. c.prototype, "id", void 0); b.__decorate([d.property({ json: { write: !0 } })], c.prototype, "name", void 0); b.__decorate([d.property({ json: { write: !0 } })], c.prototype, "domains", void 0); b.__decorate([k.reader("domains")], c.prototype, "readDomains", null); b.__decorate([g.writer("domains")], c.prototype, "writeDomains", null); b.__decorate([d.property({ type: [t], json: { write: !0 } })], c.prototype, "templates", void 0); return c = b.__decorate([m.subclass("esri.layers.support.FeatureType")], c)
  7245. })
  7246. }, "esri/layers/support/fieldProperties": function () {
  7247. define(["exports",
  7248. "../../core/Logger", "./Field", "./FieldsIndex", "./fieldUtils"], function (a, b, c, e, d) {
  7249. const l = b.getLogger("esri.layers.support.fieldProperties"); a.defineFieldProperties = function () {
  7250. return {
  7251. fields: { type: [c], value: null }, fieldsIndex: { readOnly: !0, get() { return new e(this.fields || []) } }, outFields: {
  7252. type: [String], json: { read: !1 }, set: function (r) { this._userOutFields = r; this.notifyChange("outFields") }, get: function () {
  7253. const r = this._userOutFields; if (!r || !r.length) return null; if (r.includes("*")) return ["*"]; if (!this.fields) return r;
  7254. for (const q of r) this.fieldsIndex.has(q) || l.error("field-attributes-layer:invalid-field", `Invalid field ${q} found in outFields`, { layer: this, outFields: r }); return d.fixFields(this.fieldsIndex, r)
  7255. }
  7256. }
  7257. }
  7258. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7259. })
  7260. }, "esri/layers/support/FieldsIndex": function () {
  7261. define(["../../chunks/_rollupPluginBabelHelpers", "./fieldUtils"], function (a, b) {
  7262. function c(d) { return "oid" === d.type || "esriFieldTypeOID" === d.type } function e(d) {
  7263. return "global-id" ===
  7264. d.type || "esriFieldTypeGlobalID" === d.type
  7265. } return function () {
  7266. function d(r) {
  7267. this.fields = r; this._fieldsMap = new Map; this._dateFieldsSet = new Set; this._numericFieldsSet = new Set; this.dateFields = []; this.numericFields = []; this._requiredFields = null; if (r) {
  7268. var q = []; for (const k of r) if (r = k && k.name) {
  7269. const m = r.toLowerCase().trim(); this._fieldsMap.set(r, k); this._fieldsMap.set(m, k); q.push(m); "date" === k.type || "esriFieldTypeDate" === k.type ? (this.dateFields.push(k), this._dateFieldsSet.add(k)) : b.isNumericField(k) && (this._numericFieldsSet.add(k),
  7270. this.numericFields.push(k)); c(k) || e(k) || (k.editable = null == k.editable ? !0 : !!k.editable, k.nullable = null == k.nullable ? !0 : !!k.nullable)
  7271. } q.sort(); this.uid = q.join(",")
  7272. }
  7273. } var l = d.prototype; l.destroy = function () { this._fieldsMap.clear() }; l.has = function (r) { return null != this.get(r) }; l.get = function (r) { return null != r ? this._fieldsMap.get(r) || this._fieldsMap.get(r.toLowerCase().trim()) : void 0 }; l.isDateField = function (r) { return this._dateFieldsSet.has(this.get(r)) }; l.isNumericField = function (r) { return this._numericFieldsSet.has(this.get(r)) };
  7274. l.normalizeFieldName = function (r) { if (r = this.get(r)) return r.name }; a._createClass(d, [{ key: "requiredFields", get: function () { if (!this._requiredFields) { this._requiredFields = []; for (const r of this.fields) c(r) || e(r) || r.nullable || void 0 !== b.getFieldDefaultValue(r) || this._requiredFields.push(r) } return this._requiredFields } }]); return d
  7275. }()
  7276. })
  7277. }, "esri/layers/support/GeometryFieldsInfo": function () {
  7278. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  7279. function (a, b, c, e, d, l, r, q, k, m) {
  7280. c = function (g) { function p(t) { t = g.call(this, t) || this; t.shapeAreaField = null; t.shapeLengthField = null; t.units = null; return t } a._inheritsLoose(p, g); return p }(c.ClonableMixin(e.JSONSupport)); b.__decorate([l.property({ type: String, json: { read: { source: "shapeAreaFieldName" } } })], c.prototype, "shapeAreaField", void 0); b.__decorate([l.property({ type: String, json: { read: { source: "shapeLengthFieldName" } } })], c.prototype, "shapeLengthField", void 0); b.__decorate([l.property({
  7281. type: String, json: {
  7282. read: g =>
  7283. d.areaUnitsJSONMap.read(g) || d.lengthUnitsJSONMap.read(g)
  7284. }
  7285. })], c.prototype, "units", void 0); return c = b.__decorate([m.subclass("esri.layers.support.GeometryFieldsInfo")], c)
  7286. })
  7287. }, "esri/layers/support/labelingInfo": function () {
  7288. define(["exports", "./LabelClass"], function (a, b) {
  7289. const c = /\[([^\[\]]+)\]/gi; a.reader = function (e, d, l) {
  7290. return e ? e.map(r => {
  7291. const q = new b; q.read(r, l); if (q.labelExpression) {
  7292. const k = d.fields || d.layerDefinition && d.layerDefinition.fields || this.fields; q.labelExpression = q.labelExpression.replace(c,
  7293. (m, g) => { a: if (k) { m = g.toLowerCase(); for (let p = 0; p < k.length; p++) { const t = k[p].name; if (t.toLowerCase() === m) { g = t; break a } } } return `[${g}]` })
  7294. } return q
  7295. }) : null
  7296. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7297. })
  7298. }, "esri/layers/support/LayerFloorInfo": function () {
  7299. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Collection ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  7300. function (a, b, c, e, d, l, r, q, k) {
  7301. var m; e = m = function (g) { function p(t) { t = g.call(this, t) || this; t.floorField = null; t.viewAllMode = !1; t.viewAllLevelIds = new c; return t } a._inheritsLoose(p, g); p.prototype.clone = function () { return new m({ floorField: this.floorField, viewAllMode: this.viewAllMode, viewAllLevelIds: this.viewAllLevelIds }) }; return p }(e.JSONSupport); b.__decorate([d.property({ type: String, json: { write: !0 } })], e.prototype, "floorField", void 0); b.__decorate([d.property({ json: { read: !1, write: !1 } })], e.prototype, "viewAllMode",
  7302. void 0); b.__decorate([d.property({ json: { read: !1, write: !1 } })], e.prototype, "viewAllLevelIds", void 0); return e = m = b.__decorate([k.subclass("esri.layers.support.LayerFloorInfo")], e)
  7303. })
  7304. }, "esri/layers/support/Relationship": function () {
  7305. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  7306. function (a, b, c, e, d, l, r, q, k, m) {
  7307. r = new e.JSONMap({ esriRelCardinalityOneToOne: "one-to-one", esriRelCardinalityOneToMany: "one-to-many", esriRelCardinalityManyToMany: "many-to-many" }); e = new e.JSONMap({ esriRelRoleOrigin: "origin", esriRelRoleDestination: "destination" }); c = function (g) {
  7308. function p(t) { t = g.call(this, t) || this; t.cardinality = null; t.composite = null; t.id = null; t.keyField = null; t.keyFieldInRelationshipTable = null; t.name = null; t.relatedTableId = null; t.relationshipTableId = null; t.role = null; return t } a._inheritsLoose(p,
  7309. g); return p
  7310. }(c.ClonableMixin(d.JSONSupport)); b.__decorate([l.property({ json: { read: r.read, write: r.write } })], c.prototype, "cardinality", void 0); b.__decorate([l.property({ json: { read: !0, write: !0 } })], c.prototype, "composite", void 0); b.__decorate([l.property({ json: { read: !0, write: !0 } })], c.prototype, "id", void 0); b.__decorate([l.property({ json: { read: !0, write: !0 } })], c.prototype, "keyField", void 0); b.__decorate([l.property({ json: { read: !0, write: !0 } })], c.prototype, "keyFieldInRelationshipTable", void 0); b.__decorate([l.property({
  7311. json: {
  7312. read: !0,
  7313. write: !0
  7314. }
  7315. })], c.prototype, "name", void 0); b.__decorate([l.property({ json: { read: !0, write: !0 } })], c.prototype, "relatedTableId", void 0); b.__decorate([l.property({ json: { read: !0, write: !0 } })], c.prototype, "relationshipTableId", void 0); b.__decorate([l.property({ json: { read: e.read, write: e.write } })], c.prototype, "role", void 0); return c = b.__decorate([m.subclass("esri.layers.support.Relationship")], c)
  7316. })
  7317. }, "esri/layers/support/versionUtils": function () {
  7318. define(["exports", "./arcgisLayerUrl"], function (a, b) {
  7319. const c = []; c.push([10.91,
  7320. () => { const e = new Set([9709, 9716, 9741, 9761, 9766]); for (var d = 9712; 9713 >= d; d++)e.add(d); for (d = 9748; 9749 >= d; d++)e.add(d); for (d = 20904; 20932 >= d; d++)e.add(d); for (d = 21004; 21032 >= d; d++)e.add(d); for (d = 21207; 21264 >= d; d++)e.add(d); for (d = 21307; 21364 >= d; d++)e.add(d); for (d = 102759; 102760 >= d; d++)e.add(d); for (d = 102901; 102955 >= d; d++)e.add(d); return e }]); c.push([10.9, () => {
  7321. const e = new Set([9300, 9354, 9364, 9367, 9373, 9377, 9387, 9456, 9473, 9498, 9678, 9680, 29874, 103599, 103872, 104028]); for (var d = 9356; 9360 >= d; d++)e.add(d); for (d =
  7322. 9404; 9407 >= d; d++)e.add(d); for (d = 9476; 9482 >= d; d++)e.add(d); for (d = 9487; 9494 >= d; d++)e.add(d); for (d = 9697; 9699 >= d; d++)e.add(d); return e
  7323. }]); c.push([10.81, () => { const e = new Set([9265, 9333, 103598, 103699]); for (var d = 9248; 9254 >= d; d++)e.add(d); for (d = 9271; 9273 >= d; d++)e.add(d); for (d = 9284; 9285 >= d; d++)e.add(d); for (d = 21453; 21463 >= d; d++)e.add(d); return e }]); c.push([10.8, () => {
  7324. const e = new Set([8088, 8395, 8428, 8433, 8531, 8687, 8692, 8694, 8699, 8900, 9003, 9006, 9009, 9012, 9017, 9191]); for (var d = 8035; 8036 >= d; d++)e.add(d); for (d =
  7325. 8455; 8456 >= d; d++)e.add(d); for (d = 8518; 8529 >= d; d++)e.add(d); for (d = 8533; 8536 >= d; d++)e.add(d); for (d = 8538; 8540 >= d; d++)e.add(d); for (d = 8677; 8679 >= d; d++)e.add(d); for (d = 8902; 8903 >= d; d++)e.add(d); for (d = 8907; 8910 >= d; d++)e.add(d); for (d = 8949; 8951 >= d; d++)e.add(d); for (d = 8972; 8987 >= d; d++)e.add(d); for (d = 9039; 9040 >= d; d++)e.add(d); for (d = 9068; 9069 >= d; d++)e.add(d); for (d = 9140; 9141 >= d; d++)e.add(d); for (d = 9148; 9150 >= d; d++)e.add(d); for (d = 9153; 9159 >= d; d++)e.add(d); for (d = 9205; 9218 >= d; d++)e.add(d); for (d = 9221; 9222 >= d; d++)e.add(d);
  7326. for (d = 54098; 54101 >= d; d++)e.add(d); return e
  7327. }]); c.push([10.71, () => { const e = new Set([6316]); for (var d = 8351; 8353 >= d; d++)e.add(d); for (d = 9294; 9297 >= d; d++)e.add(d); for (d = 103586; 103594 >= d; d++)e.add(d); for (d = 103696; 103698 >= d; d++)e.add(d); return e }]); c.push([10.7, () => {
  7328. const e = new Set([8387, 8391, 8427, 8545, 8682, 8685, 8818, 31370, 104022, 104024, 104975]); for (var d = 8065; 8068 >= d; d++)e.add(d); for (d = 8082; 8083 >= d; d++)e.add(d); for (d = 8379; 8385 >= d; d++)e.add(d); for (d = 8836; 8840 >= d; d++)e.add(d); for (d = 8857; 8860 >= d; d++)e.add(d);
  7329. for (d = 53035; 53037 >= d; d++)e.add(d); for (d = 54090; 54091 >= d; d++)e.add(d); for (d = 102498; 102499 >= d; d++)e.add(d); return e
  7330. }]); c.push([10.61, () => new Set([102497])]); c.push([10.6, () => {
  7331. const e = new Set([7803, 7805, 7887, 8086, 8232, 8237, 8240, 8246, 8249, 8252, 8255, 9019, 9391]); for (var d = 7755; 7787 >= d; d++)e.add(d); for (d = 7791; 7795 >= d; d++)e.add(d); for (d = 7799; 7801 >= d; d++)e.add(d); for (d = 7825; 7831 >= d; d++)e.add(d); for (d = 7877; 7878 >= d; d++)e.add(d); for (d = 7882; 7883 >= d; d++)e.add(d); for (d = 7991; 7992 >= d; d++)e.add(d); for (d = 8042; 8043 >=
  7332. d; d++)e.add(d); for (d = 8058; 8059 >= d; d++)e.add(d); for (d = 8311; 8348 >= d; d++)e.add(d); for (d = 9060; 9067 >= d; d++)e.add(d); for (d = 102562; 102568 >= d; d++)e.add(d); for (d = 102799; 102900 >= d; d++)e.add(d); return e
  7333. }]); c.push([10.51, () => { const e = new Set([7683, 7881, 7886, 7899, 8888, 9E3]); for (var d = 8013; 8032 >= d; d++)e.add(d); for (d = 9053; 9057 >= d; d++)e.add(d); for (d = 104017; 104018 >= d; d++)e.add(d); for (d = 104971; 104974 >= d; d++)e.add(d); return e }]); c.push([10.5, () => {
  7334. const e = new Set([6962, 7035, 7037, 7039, 7041, 7084, 7086, 7133, 7798, 102399]);
  7335. for (var d = 4087; 4088 >= d; d++)e.add(d); for (d = 5896; 5899 >= d; d++)e.add(d); for (d = 7005; 7007 >= d; d++)e.add(d); for (d = 7057; 7070 >= d; d++)e.add(d); for (d = 7073; 7082 >= d; d++)e.add(d); for (d = 7109; 7128 >= d; d++)e.add(d); for (d = 7844; 7859 >= d; d++)e.add(d); return e
  7336. }]); a.serviceSupportsSpatialReference = function (e, d) { if (b.isHostedAgolService(e.url)) return !0; ({ wkid: d } = d); for (const l of c) { if (e.version >= l[0]) break; "function" === typeof l[1] && (l[1] = l[1]()); if (l[1].has(d)) return !1 } return !0 }; Object.defineProperties(a, {
  7337. __esModule: { value: !0 },
  7338. [Symbol.toStringTag]: { value: "Module" }
  7339. })
  7340. })
  7341. }, "esri/rest/support/AttachmentQuery": function () {
  7342. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "), function (a, b, c, e, d, l, r, q) {
  7343. var k; c = k = function (m) {
  7344. function g(t) {
  7345. t = m.call(this, t) || this; t.attachmentTypes = null; t.attachmentsWhere =
  7346. null; t.cacheHint = void 0; t.keywords = null; t.globalIds = null; t.name = null; t.num = null; t.objectIds = null; t.returnMetadata = !1; t.size = null; t.start = null; t.where = null; return t
  7347. } a._inheritsLoose(g, m); var p = g.prototype; p.writeStart = function (t, n) { n.resultOffset = this.start; n.resultRecordCount = this.num || 10 }; p.clone = function () {
  7348. return new k(e.clone({
  7349. attachmentTypes: this.attachmentTypes, attachmentsWhere: this.attachmentsWhere, cacheHint: this.cacheHint, keywords: this.keywords, where: this.where, globalIds: this.globalIds, name: this.name,
  7350. num: this.num, objectIds: this.objectIds, returnMetadata: this.returnMetadata, size: this.size, start: this.start
  7351. }))
  7352. }; return g
  7353. }(c.JSONSupport); b.__decorate([d.property({ type: [String], json: { write: !0 } })], c.prototype, "attachmentTypes", void 0); b.__decorate([d.property({ type: String, json: { read: { source: "attachmentsDefinitionExpression" }, write: { target: "attachmentsDefinitionExpression" } } })], c.prototype, "attachmentsWhere", void 0); b.__decorate([d.property({ type: Boolean, json: { write: !0 } })], c.prototype, "cacheHint", void 0);
  7354. b.__decorate([d.property({ type: [String], json: { write: !0 } })], c.prototype, "keywords", void 0); b.__decorate([d.property({ type: [Number], json: { write: !0 } })], c.prototype, "globalIds", void 0); b.__decorate([d.property({ json: { write: !0 } })], c.prototype, "name", void 0); b.__decorate([d.property({ type: Number, json: { read: { source: "resultRecordCount" } } })], c.prototype, "num", void 0); b.__decorate([d.property({ type: [Number], json: { write: !0 } })], c.prototype, "objectIds", void 0); b.__decorate([d.property({
  7355. type: Boolean, json: {
  7356. default: !1,
  7357. write: !0
  7358. }
  7359. })], c.prototype, "returnMetadata", void 0); b.__decorate([d.property({ type: [Number], json: { write: !0 } })], c.prototype, "size", void 0); b.__decorate([d.property({ type: Number, json: { read: { source: "resultOffset" } } })], c.prototype, "start", void 0); b.__decorate([q.writer("start"), q.writer("num")], c.prototype, "writeStart", null); b.__decorate([d.property({ type: String, json: { read: { source: "definitionExpression" }, write: { target: "definitionExpression" } } })], c.prototype, "where", void 0); c = k = b.__decorate([r.subclass("esri.rest.support.AttachmentQuery")],
  7360. c); c.from = l.ensureType(c); return c
  7361. })
  7362. }, "esri/rest/support/RelationshipQuery": function () {
  7363. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/source/DataLayerSource ../../geometry/SpatialReference".split(" "), function (a, b, c, e, d, l, r, q,
  7364. k, m, g) {
  7365. var p; c = p = function (t) {
  7366. function n(f) { f = t.call(this, f) || this; f.cacheHint = void 0; f.dynamicDataSource = void 0; f.gdbVersion = null; f.geometryPrecision = void 0; f.historicMoment = null; f.maxAllowableOffset = void 0; f.objectIds = null; f.orderByFields = null; f.outFields = null; f.outSpatialReference = null; f.relationshipId = void 0; f.start = void 0; f.num = void 0; f.returnGeometry = !1; f.returnM = void 0; f.returnZ = void 0; f.where = null; return f } a._inheritsLoose(n, t); var u = n.prototype; u._writeHistoricMoment = function (f, h) {
  7367. h.historicMoment =
  7368. f && f.getTime()
  7369. }; u.writeStart = function (f, h) { h.resultOffset = this.start; h.resultRecordCount = this.num || 10; 0 < this.start && null == this.where && (h.definitionExpression = "1\x3d1") }; u.clone = function () {
  7370. return new p(d.clone({
  7371. cacheHint: this.cacheHint, dynamicDataSource: this.dynamicDataSource, gdbVersion: this.gdbVersion, geometryPrecision: this.geometryPrecision, historicMoment: this.historicMoment && new Date(this.historicMoment.getTime()), maxAllowableOffset: this.maxAllowableOffset, objectIds: this.objectIds, orderByFields: this.orderByFields,
  7372. outFields: this.outFields, outSpatialReference: this.outSpatialReference, relationshipId: this.relationshipId, start: this.start, num: this.num, returnGeometry: this.returnGeometry, where: this.where, returnZ: this.returnZ, returnM: this.returnM
  7373. }))
  7374. }; return n
  7375. }(e.JSONSupport); b.__decorate([l.property({ type: Boolean, json: { write: !0 } })], c.prototype, "cacheHint", void 0); b.__decorate([l.property({ type: m.DataLayerSource, json: { write: !0 } })], c.prototype, "dynamicDataSource", void 0); b.__decorate([l.property({ type: String, json: { write: !0 } })],
  7376. c.prototype, "gdbVersion", void 0); b.__decorate([l.property({ type: Number, json: { write: !0 } })], c.prototype, "geometryPrecision", void 0); b.__decorate([l.property({ type: Date })], c.prototype, "historicMoment", void 0); b.__decorate([k.writer("historicMoment")], c.prototype, "_writeHistoricMoment", null); b.__decorate([l.property({ type: Number, json: { write: !0 } })], c.prototype, "maxAllowableOffset", void 0); b.__decorate([l.property({ type: [Number], json: { write: !0 } })], c.prototype, "objectIds", void 0); b.__decorate([l.property({
  7377. type: [String],
  7378. json: { write: !0 }
  7379. })], c.prototype, "orderByFields", void 0); b.__decorate([l.property({ type: [String], json: { write: !0 } })], c.prototype, "outFields", void 0); b.__decorate([l.property({ type: g, json: { read: { source: "outSR" }, write: { target: "outSR" } } })], c.prototype, "outSpatialReference", void 0); b.__decorate([l.property({ json: { write: !0 } })], c.prototype, "relationshipId", void 0); b.__decorate([l.property({ type: Number, json: { read: { source: "resultOffset" } } })], c.prototype, "start", void 0); b.__decorate([k.writer("start"), k.writer("num")],
  7380. c.prototype, "writeStart", null); b.__decorate([l.property({ type: Number, json: { read: { source: "resultRecordCount" } } })], c.prototype, "num", void 0); b.__decorate([l.property({ json: { write: !0 } })], c.prototype, "returnGeometry", void 0); b.__decorate([l.property({ type: Boolean, json: { write: { overridePolicy(t) { return { enabled: t } } } } })], c.prototype, "returnM", void 0); b.__decorate([l.property({ type: Boolean, json: { write: { overridePolicy(t) { return { enabled: t } } } } })], c.prototype, "returnZ", void 0); b.__decorate([l.property({
  7381. type: String,
  7382. json: { read: { source: "definitionExpression" }, write: { target: "definitionExpression" } }
  7383. })], c.prototype, "where", void 0); c = p = b.__decorate([q.subclass("esri.rest.support.RelationshipQuery")], c); c.from = r.ensureType(c); return c
  7384. })
  7385. }, "esri/rest/support/TopFeaturesQuery": function () {
  7386. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./TopFilter ../../geometry/SpatialReference".split(" "),
  7387. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  7388. var u; const f = new d.JSONMap({ esriSpatialRelIntersects: "intersects", esriSpatialRelContains: "contains", esriSpatialRelCrosses: "crosses", esriSpatialRelDisjoint: "disjoint", esriSpatialRelEnvelopeIntersects: "envelope-intersects", esriSpatialRelIndexIntersects: "index-intersects", esriSpatialRelOverlaps: "overlaps", esriSpatialRelTouches: "touches", esriSpatialRelWithin: "within", esriSpatialRelRelation: "relation" }); d = new d.JSONMap({
  7389. esriSRUnit_Meter: "meters", esriSRUnit_Kilometer: "kilometers",
  7390. esriSRUnit_Foot: "feet", esriSRUnit_StatuteMile: "miles", esriSRUnit_NauticalMile: "nautical-miles", esriSRUnit_USNauticalMile: "us-nautical-miles"
  7391. }); l = u = function (h) {
  7392. function v(B) {
  7393. B = h.call(this, B) || this; B.cacheHint = void 0; B.distance = void 0; B.geometry = null; B.geometryPrecision = void 0; B.maxAllowableOffset = void 0; B.num = void 0; B.objectIds = null; B.orderByFields = null; B.outFields = null; B.outSpatialReference = null; B.resultType = null; B.returnGeometry = !1; B.returnM = void 0; B.returnZ = void 0; B.start = void 0; B.spatialRelationship =
  7394. "intersects"; B.timeExtent = null; B.topFilter = void 0; B.units = null; B.where = "1\x3d1"; return B
  7395. } a._inheritsLoose(v, h); var y = v.prototype; y.writeStart = function (B, w) { w.resultOffset = this.start; w.resultRecordCount = this.num || 10 }; y.clone = function () {
  7396. return new u(r.clone({
  7397. cacheHint: this.cacheHint, distance: this.distance, geometry: this.geometry, geometryPrecision: this.geometryPrecision, maxAllowableOffset: this.maxAllowableOffset, num: this.num, objectIds: this.objectIds, orderByFields: this.orderByFields, outFields: this.outFields,
  7398. outSpatialReference: this.outSpatialReference, resultType: this.resultType, returnGeometry: this.returnGeometry, returnZ: this.returnZ, returnM: this.returnM, start: this.start, spatialRelationship: this.spatialRelationship, timeExtent: this.timeExtent, topFilter: this.topFilter, units: this.units, where: this.where
  7399. }))
  7400. }; return v
  7401. }(l.JSONSupport); b.__decorate([q.property({ type: Boolean, json: { write: !0 } })], l.prototype, "cacheHint", void 0); b.__decorate([q.property({
  7402. type: Number, json: {
  7403. write: {
  7404. overridePolicy(h) {
  7405. return {
  7406. enabled: 0 <
  7407. h
  7408. }
  7409. }
  7410. }
  7411. }
  7412. })], l.prototype, "distance", void 0); b.__decorate([q.property({ types: c.geometryTypes, json: { read: p.fromJSON, write: !0 } })], l.prototype, "geometry", void 0); b.__decorate([q.property({ type: Number, json: { write: !0 } })], l.prototype, "geometryPrecision", void 0); b.__decorate([q.property({ type: Number, json: { write: !0 } })], l.prototype, "maxAllowableOffset", void 0); b.__decorate([q.property({ type: Number, json: { read: { source: "resultRecordCount" } } })], l.prototype, "num", void 0); b.__decorate([q.property({ json: { write: !0 } })],
  7413. l.prototype, "objectIds", void 0); b.__decorate([q.property({ type: [String], json: { write: !0 } })], l.prototype, "orderByFields", void 0); b.__decorate([q.property({ type: [String], json: { write: !0 } })], l.prototype, "outFields", void 0); b.__decorate([q.property({ type: n, json: { read: { source: "outSR" }, write: { target: "outSR" } } })], l.prototype, "outSpatialReference", void 0); b.__decorate([q.property({ type: String, json: { write: !0 } })], l.prototype, "resultType", void 0); b.__decorate([q.property({ json: { write: !0 } })], l.prototype, "returnGeometry",
  7414. void 0); b.__decorate([q.property({ type: Boolean, json: { write: { overridePolicy(h) { return { enabled: h } } } } })], l.prototype, "returnM", void 0); b.__decorate([q.property({ type: Boolean, json: { write: { overridePolicy(h) { return { enabled: h } } } } })], l.prototype, "returnZ", void 0); b.__decorate([q.property({ type: Number, json: { read: { source: "resultOffset" } } })], l.prototype, "start", void 0); b.__decorate([g.writer("start"), g.writer("num")], l.prototype, "writeStart", null); b.__decorate([q.property({
  7415. type: String, json: {
  7416. read: {
  7417. source: "spatialRel",
  7418. reader: f.read
  7419. }, write: { target: "spatialRel", writer: f.write }
  7420. }
  7421. })], l.prototype, "spatialRelationship", void 0); b.__decorate([q.property({ type: e, json: { write: !0 } })], l.prototype, "timeExtent", void 0); b.__decorate([q.property({ type: t, json: { write: !0 } })], l.prototype, "topFilter", void 0); b.__decorate([q.property({ type: String, json: { read: d.read, write: { writer: d.write, overridePolicy(h) { return { enabled: h && 0 < this.distance } } } } })], l.prototype, "units", void 0); b.__decorate([q.property({ type: String, json: { write: !0 } })], l.prototype,
  7422. "where", void 0); l = u = b.__decorate([m.subclass("esri.rest.support.TopFeaturesQuery")], l); l.from = k.ensureType(l); return l
  7423. })
  7424. }, "esri/rest/support/TopFilter": function () {
  7425. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q) {
  7426. var k; c = k = function (m) {
  7427. function g(p) {
  7428. p =
  7429. m.call(this, p) || this; p.groupByFields = void 0; p.topCount = void 0; p.orderByFields = void 0; return p
  7430. } a._inheritsLoose(g, m); g.prototype.clone = function () { return new k({ groupByFields: this.groupByFields, topCount: this.topCount, orderByFields: this.orderByFields }) }; return g
  7431. }(c.JSONSupport); b.__decorate([e.property({ type: [String], json: { write: !0 } })], c.prototype, "groupByFields", void 0); b.__decorate([e.property({ type: Number, json: { write: !0 } })], c.prototype, "topCount", void 0); b.__decorate([e.property({ type: [String], json: { write: !0 } })],
  7432. c.prototype, "orderByFields", void 0); return c = k = b.__decorate([q.subclass("esri.rest.support.TopFilter")], c)
  7433. })
  7434. }, "esri/support/popupUtils": function () {
  7435. define("exports ../PopupTemplate ../layers/support/fieldUtils ../popup/content/AttachmentsContent ../popup/content/Content ../popup/content/CustomContent ../popup/content/ExpressionContent ../popup/content/FieldsContent ../popup/content/MediaContent ../popup/content/TextContent ../popup/FieldInfo ../popup/support/FieldInfoFormat".split(" "), function (a,
  7436. b, c, e, d, l, r, q, k, m, g, p) {
  7437. function t(C, A) { const D = C; A && (C = C.filter(F => !A.includes(F.type))); C === D && (C = C.slice()); C.sort(n); return C } function n(C, A) { return "oid" === C.type ? -1 : "oid" === A.type ? 1 : v(C) ? -1 : v(A) ? 1 : (C.alias || C.name).toLocaleLowerCase().localeCompare((A.alias || A.name).toLocaleLowerCase()) } function u(C, A) { if (!C || !A) return !1; const { creationDateField: D, creatorField: F, editDateField: J, editorField: M } = A; return [D && D.toLowerCase(), F && F.toLowerCase(), J && J.toLowerCase(), M && M.toLowerCase()].includes(C.toLowerCase()) }
  7438. function f({ editFieldsInfo: C, fields: A, objectIdField: D }, F) { return t(A, (null == F ? void 0 : F.ignoreFieldTypes) || z).map(J => { var M = J.name; var N = J.editable && !B.includes(J.type) && !u(J.name, C); return new g({ fieldName: M, isEditable: N, label: J.alias, format: h(J), visible: x(J, { editFieldsInfo: C, objectIdField: D, visibleFieldNames: null == F ? void 0 : F.visibleFieldNames }) }) }) } function h(C) {
  7439. switch (C.type) {
  7440. case "small-integer": case "integer": case "single": return new p({ digitSeparator: !0, places: 0 }); case "double": return new p({
  7441. digitSeparator: !0,
  7442. places: 2
  7443. }); case "date": return new p({ dateFormat: "long-month-day-year" }); default: return "string" === C.type && c.isRasterPixelValueField(C.name) ? new p({ digitSeparator: !0, places: 0 }) : null
  7444. }
  7445. } function v(C) { if ("name" === (C.name && C.name.toLowerCase()) || "name" === (C.alias && C.alias.toLowerCase())) return !0 } const y = ["oid", "global-id"], B = ["oid", "global-id", "guid"], w = [/^fnode_$/i, /^tnode_$/i, /^lpoly_$/i, /^rpoly_$/i, /^poly_$/i, /^subclass$/i, /^subclass_$/i, /^rings_ok$/i, /^rings_nok$/i, /shape/i, /perimeter/i, /objectid/i,
  7446. /_i$/i], x = (C, { editFieldsInfo: A, objectIdField: D, visibleFieldNames: F }) => F ? F.has(C.name) : u(C.name, A) ? !1 : D && C.name === D ? !1 : y.includes(C.type) ? !1 : !w.some(J => J.test(C.name)), z = ["geometry", "blob", "raster", "guid", "xml"]; a.createFieldInfos = f; a.createFieldsContent = function (C, A) { return new q({ fieldInfos: f(C, A).filter(D => D.visible) }) }; a.createPopupTemplate = function ({ displayField: C, editFieldsInfo: A, fields: D, objectIdField: F, title: J }, M) {
  7447. if (!D) return null; A = f({ editFieldsInfo: A, fields: D, objectIdField: F }, M); if (!A.length) return null;
  7448. D = { titleBase: J, fields: D, displayField: C }; C = c.getDisplayFieldName(D); ({ titleBase: D } = D); C = C ? `${D}: {${C.trim()}}` : D; D = [new q, new e]; return new b({ title: C, content: D, fieldInfos: A })
  7449. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7450. })
  7451. }, "esri/layers/graphics/sources/FeatureLayerSource": function () {
  7452. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../Graphic ../../../request ../../../TimeExtent ../../../core/Error ../../../core/has ../../../core/jsonMap ../../../core/Loadable ../../../core/maybe ../../../core/object ../../../core/promiseUtils ../../../core/urlUtils ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../../geometry/Extent ../../../geometry/support/jsonUtils ./support/clientSideDefaults ./support/QueryTask ../../../rest/query/operations/editsZScale ../../../rest/query/operations/queryAttachments ../../../geometry/SpatialReference".split(" "),
  7453. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A) {
  7454. function D(N) { return F.apply(this, arguments) } function F() { F = a._asyncToGenerator(function* (N) { if ("string" === typeof N) { const E = n.dataComponents(N); return E ? E : { data: N } } return new Promise((E, G) => { const H = new FileReader; H.readAsDataURL(N); H.onload = () => E(n.dataComponents(H.result)); H.onerror = K => G(K) }) }); return F.apply(this, arguments) } const J = new k.JSONMap({ originalAndCurrentFeatures: "original-and-current-features", none: "none" }), M = new Set(["Feature Layer",
  7455. "Table"]); c = function (N) {
  7456. function E() {
  7457. var H = N.apply(this, arguments) || this; H.type = "feature-layer"; H.refresh = t.debounce(a._asyncToGenerator(function* () {
  7458. var K, S; yield H.load(); const fa = null == (K = H.sourceJSON.editingInfo) ? void 0 : K.lastEditDate; if (null == fa) return { dataChanged: !0, updates: {} }; try { yield H._fetchService(null) } catch { return { dataChanged: !0, updates: {} } } K = fa !== (null == (S = H.sourceJSON.editingInfo) ? void 0 : S.lastEditDate); return {
  7459. dataChanged: K, updates: K ? { editingInfo: H.sourceJSON.editingInfo, extent: H.sourceJSON.extent } :
  7460. null
  7461. }
  7462. })); return H
  7463. } a._inheritsLoose(E, N); var G = E.prototype; G.load = function (H) { H = g.isSome(H) ? H.signal : null; this.addResolvingPromise(this._fetchService(this.layer.sourceJSON, H)); return Promise.resolve(this) }; G.addAttachment = function () {
  7464. var H = a._asyncToGenerator(function* (K, S) {
  7465. yield this.load(); K = K.attributes[this.layer.objectIdField]; const fa = this.layer.parsedUrl.path + "/" + K + "/addAttachment", ha = this._getLayerRequestOptions(); S = this._getFormDataForAttachment(S, ha.query); try {
  7466. const ba = yield d(fa, { body: S });
  7467. return this._createFeatureEditResult(ba.data.addAttachmentResult)
  7468. } catch (ba) { throw this._createAttachmentErrorResult(K, ba); }
  7469. }); return function (K, S) { return H.apply(this, arguments) }
  7470. }(); G.updateAttachment = function () {
  7471. var H = a._asyncToGenerator(function* (K, S, fa) {
  7472. yield this.load(); K = K.attributes[this.layer.objectIdField]; const ha = this.layer.parsedUrl.path + "/" + K + "/updateAttachment"; S = this._getLayerRequestOptions({ query: { attachmentId: S } }); fa = this._getFormDataForAttachment(fa, S.query); try {
  7473. const ba = yield d(ha,
  7474. { body: fa }); return this._createFeatureEditResult(ba.data.updateAttachmentResult)
  7475. } catch (ba) { throw this._createAttachmentErrorResult(K, ba); }
  7476. }); return function (K, S, fa) { return H.apply(this, arguments) }
  7477. }(); G.applyEdits = function () {
  7478. var H = a._asyncToGenerator(function* (K, S) {
  7479. yield this.load(); var fa = K.addFeatures.map(this._serializeFeature, this); const ha = K.updateFeatures.map(this._serializeFeature, this), ba = this._getFeatureIds(K.deleteFeatures, null == S ? void 0 : S.globalIdUsed); z.unapplyEditsZUnitScaling(fa, ha, this.layer.spatialReference);
  7480. var O = []; const na = [], ra = [...K.deleteAttachments]; for (const Da of K.addAttachments) O.push(yield this._serializeAttachment(Da)); for (const Da of K.updateAttachments) na.push(yield this._serializeAttachment(Da)); K = O.length || na.length || ra.length ? { adds: O, updates: na, deletes: ra } : null; O = {
  7481. gdbVersion: (null == S ? void 0 : S.gdbVersion) || this.layer.gdbVersion, rollbackOnFailure: null == S ? void 0 : S.rollbackOnFailureEnabled, useGlobalIds: null == S ? void 0 : S.globalIdUsed, returnEditMoment: null == S ? void 0 : S.returnEditMoment, usePreviousEditMoment: null ==
  7482. S ? void 0 : S.usePreviousEditMoment, sessionId: null == S ? void 0 : S.sessionId
  7483. }; null != S && S.returnServiceEditsOption ? (O.edits = JSON.stringify([{ id: this.layer.layerId, adds: fa, updates: ha, deletes: ba, attachments: K }]), O.returnServiceEditsOption = J.toJSON(null == S ? void 0 : S.returnServiceEditsOption), O.returnServiceEditsInSourceSR = null == S ? void 0 : S.returnServiceEditsInSourceSR) : (O.adds = fa.length ? JSON.stringify(fa) : null, O.updates = ha.length ? JSON.stringify(ha) : null, O.deletes = ba.length ? null != S && S.globalIdUsed ? JSON.stringify(ba) :
  7484. ba.join(",") : null, O.attachments = K && JSON.stringify(K)); fa = this._getLayerRequestOptions({ method: "post", query: O }); S = yield d((null != S && S.returnServiceEditsOption ? this.layer.url : this.layer.parsedUrl.path) + "/applyEdits", fa); return this._createEditsResult(S)
  7485. }); return function (K, S) { return H.apply(this, arguments) }
  7486. }(); G.deleteAttachments = function () {
  7487. var H = a._asyncToGenerator(function* (K, S) {
  7488. yield this.load(); K = K.attributes[this.layer.objectIdField]; const fa = this.layer.parsedUrl.path + "/" + K + "/deleteAttachments";
  7489. try { return (yield d(fa, this._getLayerRequestOptions({ query: { attachmentIds: S.join(",") }, method: "post" }))).data.deleteAttachmentResults.map(this._createFeatureEditResult) } catch (ha) { throw this._createAttachmentErrorResult(K, ha); }
  7490. }); return function (K, S) { return H.apply(this, arguments) }
  7491. }(); G.fetchRecomputedExtents = function (H = {}) {
  7492. var K = this; return this.load({ signal: H.signal }).then(a._asyncToGenerator(function* () {
  7493. var S = K._getLayerRequestOptions({ ...H, query: { returnUpdates: !0 } }); const { layerId: fa, url: ha } = K.layer;
  7494. ({ data: S } = yield d(`${ha}/${fa}`, S)); const { id: ba, extent: O, fullExtent: na, timeExtent: ra } = S; S = O || na; return { id: ba, fullExtent: S && y.fromJSON(S), timeExtent: ra && l.fromJSON({ start: ra[0], end: ra[1] }) }
  7495. }))
  7496. }; G.queryAttachments = function () {
  7497. var H = a._asyncToGenerator(function* (K, S = {}) {
  7498. const { parsedUrl: fa } = this.layer, ha = fa.path; yield this.load(); S = this._getLayerRequestOptions(S); if (!this.layer.get("capabilities.operations.supportsQueryAttachments")) {
  7499. const { objectIds: ba } = K; K = []; for (const O of ba) K.push(d(ha + "/" + O + "/attachments",
  7500. S)); return Promise.all(K).then(O => ba.map((na, ra) => ({ parentObjectId: na, attachmentInfos: O[ra].data.attachmentInfos }))).then(O => C.processAttachmentQueryResult(O, ha))
  7501. } return this.queryTask.executeAttachmentQuery(K, S)
  7502. }); return function (K) { return H.apply(this, arguments) }
  7503. }(); G.queryFeatures = function () { var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.execute(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) } }(); G.queryFeaturesJSON =
  7504. function () { var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.executeJSON(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) } }(); G.queryObjectIds = function () { var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.executeForIds(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) } }(); G.queryFeatureCount = function () {
  7505. var H = a._asyncToGenerator(function* (K,
  7506. S) { yield this.load(); return this.queryTask.executeForCount(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) }
  7507. }(); G.queryExtent = function () { var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.executeForExtent(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) } }(); G.queryRelatedFeatures = function () {
  7508. var H = a._asyncToGenerator(function* (K, S) {
  7509. yield this.load(); return this.queryTask.executeRelationshipQuery(K,
  7510. { ...S, query: this._createRequestQueryOptions(S) })
  7511. }); return function (K, S) { return H.apply(this, arguments) }
  7512. }(); G.queryRelatedFeaturesCount = function () { var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.executeRelationshipQueryForCount(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) } }(); G.queryTopFeatures = function () {
  7513. var H = a._asyncToGenerator(function* (K, S) {
  7514. yield this.load(); return this.queryTask.executeTopFeaturesQuery(K,
  7515. { ...S, query: this._createRequestQueryOptions(S) })
  7516. }); return function (K, S) { return H.apply(this, arguments) }
  7517. }(); G.queryTopObjectIds = function () { var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.executeForTopIds(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) } }(); G.queryTopExtents = function () {
  7518. var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.executeForTopExtents(K, { ...S, query: this._createRequestQueryOptions(S) }) });
  7519. return function (K, S) { return H.apply(this, arguments) }
  7520. }(); G.queryTopCount = function () { var H = a._asyncToGenerator(function* (K, S) { yield this.load(); return this.queryTask.executeForTopCount(K, { ...S, query: this._createRequestQueryOptions(S) }) }); return function (K, S) { return H.apply(this, arguments) } }(); G._createRequestQueryOptions = function (H) { H = { ...this.layer.customParameters, token: this.layer.apiKey, ...null == H ? void 0 : H.query }; this.layer.datesInUnknownTimezone && (H.timeReferenceUnknownClient = !0); return H }; G._fetchService =
  7521. function () { var H = a._asyncToGenerator(function* (K, S) { K || ({ data: K } = yield d(this.layer.parsedUrl.path, this._getLayerRequestOptions({ query: q("featurelayer-advanced-symbols") ? { returnAdvancedSymbols: !0 } : {}, signal: S }))); this.sourceJSON = this._patchServiceJSON(K); K = K.type; if (!M.has(K)) throw new r("feature-layer-source:unsupported-type", `Source type "${K}" is not supported`); }); return function (K, S) { return H.apply(this, arguments) } }(); G._patchServiceJSON = function (H) {
  7522. var K; "Table" === H.type || !H.geometryType || null !=
  7523. H && null != (K = H.drawingInfo) && K.renderer || H.defaultSymbol || (K = w.createDrawingInfo(H.geometryType).renderer, p.setDeepValue("drawingInfo.renderer", K, H)); "esriGeometryMultiPatch" === H.geometryType && H.infoFor3D && (H.geometryType = "mesh"); return H
  7524. }; G._serializeFeature = function (H) { const { geometry: K, attributes: S } = H; return g.isNone(K) ? { attributes: S } : "mesh" === K.type || "extent" === K.type ? null : { geometry: K.toJSON(), attributes: S } }; G._serializeAttachment = function () {
  7525. var H = a._asyncToGenerator(function* (K) {
  7526. const { feature: S,
  7527. attachment: fa } = K, { globalId: ha, name: ba, contentType: O, data: na, uploadId: ra } = fa; K = { globalId: ha, parentGlobalId: null, contentType: null, name: null, uploadId: null, data: null }; S && (K.parentGlobalId = "attributes" in S ? S.attributes && S.attributes[this.layer.globalIdField] : S.globalId); if (ra) K.uploadId = ra; else if (na) { const Da = yield D(na); K.contentType = Da.mediaType; K.data = Da.data; na instanceof File && (K.name = na.name) } ba && (K.name = ba); O && (K.contentType = O); return K
  7528. }); return function (K) { return H.apply(this, arguments) }
  7529. }(); G._getFeatureIds =
  7530. function (H, K) { const S = H[0]; return S ? this._canUseGlobalIds(K, H) ? this._getGlobalIdsFromFeatureIdentifier(H) : "objectId" in S ? this._getObjectIdsFromFeatureIdentifier(H) : this._getIdsFromFeatures(H) : [] }; G._getIdsFromFeatures = function (H) { const K = this.layer.objectIdField; return H.map(S => S.attributes && S.attributes[K]) }; G._canUseGlobalIds = function (H, K) { return H && "globalId" in K[0] }; G._getObjectIdsFromFeatureIdentifier = function (H) { return H.map(K => K.objectId) }; G._getGlobalIdsFromFeatureIdentifier = function (H) {
  7531. return H.map(K =>
  7532. K.globalId)
  7533. }; G._createEditsResult = function (H) {
  7534. var K; const S = H.data, { layerId: fa } = this.layer; H = []; let ha = null; if (Array.isArray(S)) for (var ba of S) H.push({ id: ba.id, editedFeatures: ba.editedFeatures }), ba.id === fa && (ha = { addResults: ba.addResults, updateResults: ba.updateResults, deleteResults: ba.deleteResults, attachments: ba.attachments, editMoment: ba.editMoment }); else ha = S; ba = null == (K = ha) ? void 0 : K.attachments; K = {
  7535. addFeatureResults: ha.addResults ? ha.addResults.map(this._createFeatureEditResult, this) : [], updateFeatureResults: ha.updateResults ?
  7536. ha.updateResults.map(this._createFeatureEditResult, this) : [], deleteFeatureResults: ha.deleteResults ? ha.deleteResults.map(this._createFeatureEditResult, this) : [], addAttachmentResults: ba && ba.addResults ? ba.addResults.map(this._createFeatureEditResult, this) : [], updateAttachmentResults: ba && ba.updateResults ? ba.updateResults.map(this._createFeatureEditResult, this) : [], deleteAttachmentResults: ba && ba.deleteResults ? ba.deleteResults.map(this._createFeatureEditResult, this) : []
  7537. }; ha.editMoment && (K.editMoment = ha.editMoment);
  7538. if (0 < H.length) { K.editedFeatureResults = []; for (const O of H) { const { adds: na, updates: ra, deletes: Da, spatialReference: Ka } = O.editedFeatures, sa = Ka ? new A(Ka) : null; K.editedFeatureResults.push({ layerId: O.id, editedFeatures: { adds: (null == na ? void 0 : na.map(W => this._createEditedFeature(W, sa))) || [], updates: (null == ra ? void 0 : ra.map(W => ({ original: this._createEditedFeature(W[0], sa), current: this._createEditedFeature(W[1], sa) }))) || [], deletes: (null == Da ? void 0 : Da.map(W => this._createEditedFeature(W, sa))) || [], spatialReference: sa } }) } } return K
  7539. };
  7540. G._createEditedFeature = function (H, K) { return new e({ attributes: H.attributes, geometry: B.fromJSON({ ...H.geometry, spatialReference: K }) }) }; G._createFeatureEditResult = function (H) { const K = !0 === H.success ? null : H.error || { code: void 0, description: void 0 }; return { objectId: H.objectId, globalId: H.globalId, error: K ? new r("feature-layer-source:edit-failure", K.description, { code: K.code }) : null } }; G._createAttachmentErrorResult = function (H, K) {
  7541. return {
  7542. objectId: H, globalId: null, error: new r("feature-layer-source:attachment-failure",
  7543. K.details.messages && K.details.messages[0] || K.message, { code: K.details.httpStatus || K.details.messageCode })
  7544. }
  7545. }; G._getFormDataForAttachment = function (H, K) { if (H = H instanceof FormData ? H : H && H.elements ? new FormData(H) : null) for (const S in K) { const fa = K[S]; null != fa && (H.set ? H.set(S, fa) : H.append(S, fa)) } return H }; G._getLayerRequestOptions = function (H = {}) {
  7546. const { parsedUrl: K, gdbVersion: S, dynamicDataSource: fa } = this.layer; return {
  7547. ...H, query: {
  7548. gdbVersion: S, layer: fa ? JSON.stringify({ source: fa }) : void 0, ...K.query, f: "json",
  7549. ...this._createRequestQueryOptions(H)
  7550. }, responseType: "json"
  7551. }
  7552. }; a._createClass(E, [{ key: "queryTask", get: function () { const { capabilities: { query: { supportsFormatPBF: H } }, parsedUrl: K, dynamicDataSource: S, infoFor3D: fa, gdbVersion: ha, spatialReference: ba, fieldsIndex: O } = this.layer, na = q("featurelayer-pbf") && H && g.isNone(fa) ? "pbf" : "json"; return new x({ url: K.path, format: na, fieldsIndex: O, infoFor3D: fa, dynamicDataSource: S, gdbVersion: ha, sourceSpatialReference: ba }) } }]); return E
  7553. }(m); b.__decorate([u.property()], c.prototype,
  7554. "type", void 0); b.__decorate([u.property({ constructOnly: !0 })], c.prototype, "layer", void 0); b.__decorate([u.property({ readOnly: !0 })], c.prototype, "queryTask", null); return c = b.__decorate([v.subclass("esri.layers.graphics.sources.FeatureLayerSource")], c)
  7555. })
  7556. }, "esri/layers/graphics/sources/support/clientSideDefaults": function () {
  7557. define(["exports", "../../../../core/has", "../../../../core/lang", "../../data/QueryEngineCapabilities", "../../../../symbols/support/defaultsJSON"], function (a, b, c, e, d) {
  7558. const l = /^[_$a-zA-Z][_$a-zA-Z0-9]*$/;
  7559. let r = 1; a.createCapabilities = function (q, k) {
  7560. return {
  7561. analytics: { supportsCacheHint: !1 }, attachment: null, data: { isVersioned: !1, supportsAttachment: !1, supportsM: !1, supportsZ: q }, metadata: { supportsAdvancedFieldProperties: !1 }, operations: {
  7562. supportsCalculate: !1, supportsTruncate: !1, supportsValidateSql: !1, supportsAdd: k, supportsDelete: k, supportsEditing: k, supportsChangeTracking: !1, supportsQuery: !0, supportsQueryAnalytics: !1, supportsQueryAttachments: !1, supportsQueryTopFeatures: !1, supportsResizeAttachments: !1, supportsSync: !1,
  7563. supportsUpdate: k, supportsExceedsLimitStatistics: !0
  7564. }, query: e.queryCapabilities, queryRelated: { supportsCount: !0, supportsOrderBy: !0, supportsPagination: !0, supportsCacheHint: !1 }, queryTopFeatures: { supportsCacheHint: !1 }, editing: { supportsGeometryUpdate: k, supportsGlobalId: !1, supportsReturnServiceEditsInSourceSpatialReference: !1, supportsRollbackOnFailure: !1, supportsUpdateWithoutM: !1, supportsUploadWithItemId: !1, supportsDeleteByAnonymous: !1, supportsDeleteByOthers: !1, supportsUpdateByAnonymous: !1, supportsUpdateByOthers: !1 }
  7565. }
  7566. };
  7567. a.createDefaultAttributesFunction = function (q, k) { if (b("esri-csp-restrictions")) return () => ({ [k]: null, ...q }); try { let m = `this.${k} = null;`; for (const p in q) { const t = l.test(p) ? `.${p}` : `["${p}"]`; m += `this${t} = ${JSON.stringify(q[p])};` } const g = (new Function(`\n return class AttributesClass$${r++} {\n constructor() {\n ${m};\n }\n }\n `))(); return () => new g } catch (m) { return () => ({ [k]: null, ...q }) } }; a.createDefaultTemplate = function (q = {}) {
  7568. return [{
  7569. name: "New Feature", description: "",
  7570. prototype: { attributes: c.clone(q) }
  7571. }]
  7572. }; a.createDrawingInfo = function (q) { return { renderer: { type: "simple", symbol: "esriGeometryPoint" === q || "esriGeometryMultipoint" === q ? d.defaultPointSymbolJSON : "esriGeometryPolyline" === q ? d.defaultPolylineSymbolJSON : d.defaultPolygonSymbolJSON } } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7573. })
  7574. }, "esri/layers/graphics/data/QueryEngineCapabilities": function () {
  7575. define(["exports"], function (a) {
  7576. a.queryCapabilities = {
  7577. supportsStatistics: !0, supportsPercentileStatistics: !0,
  7578. supportsSpatialAggregationStatistics: !1, supportedSpatialAggregationStatistics: { envelope: !1, centroid: !1, convexHull: !1 }, supportsCentroid: !0, supportsCacheHint: !1, supportsDistance: !0, supportsDistinct: !0, supportsExtent: !0, supportsGeometryProperties: !1, supportsHavingClause: !0, supportsOrderBy: !0, supportsPagination: !0, supportsQuantization: !0, supportsQuantizationEditMode: !1, supportsQueryGeometry: !0, supportsResultType: !1, supportsSqlExpression: !0, supportsMaxRecordCountFactor: !1, supportsStandardizedQueriesOnly: !0,
  7579. supportsTopFeaturesQuery: !1, supportsQueryByOthers: !0, supportsHistoricMoment: !1, supportsFormatPBF: !1, supportsDisjointSpatialRelationship: !0, supportsDefaultSpatialReference: !1, supportsCompactGeometry: !1, maxRecordCountFactor: void 0, maxRecordCount: void 0, standardMaxRecordCount: void 0, tileMaxRecordCount: void 0
  7580. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7581. })
  7582. }, "esri/layers/graphics/sources/support/QueryTask": function () {
  7583. define("require ../../../../chunks/_rollupPluginBabelHelpers ../../../../chunks/tslib.es6 ../../../../core/Error ../../../../core/has ../../../../core/maybe ../../../../core/promiseUtils ../../../../core/accessorSupport/decorators/property ../../../../core/arrayUtils ../../../../core/accessorSupport/ensureType ../../../../core/accessorSupport/decorators/subclass ../../../support/source/DataLayerSource ../../../../rest/query/executeQueryJSON ../../../../rest/query/executeQueryPBF ../../../../rest/support/FeatureSet ../../../../rest/support/Query ../../../../rest/query/executeAttachmentQuery ../../../../rest/query/executeForCount ../../../../rest/query/executeForExtent ../../../../rest/query/executeForIds ../../../../rest/query/executeRelationshipQuery ../../../../rest/query/executeTopFeaturesQuery ../../../../rest/query/executeForTopIds ../../../../rest/query/executeForTopExtents ../../../../rest/query/executeForTopCount ../../../../rest/support/RelationshipQuery ../../../../tasks/Task".split(" "),
  7584. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F) {
  7585. k = function (J) {
  7586. function M(E) { E = J.call(this, E) || this; E.dynamicDataSource = null; E.fieldsIndex = null; E.format = "json"; E.gdbVersion = null; E.infoFor3D = null; E.sourceSpatialReference = null; return E } b._inheritsLoose(M, J); var N = M.prototype; N.execute = function (E, G) { return this.executeJSON(E, G).then(H => this.featureSetFromJSON(E, H, G)) }; N.executeJSON = function () {
  7587. var E = b._asyncToGenerator(function* (G, H) {
  7588. var K; H = { ...this.requestOptions, ...H }; const S = this._normalizeQuery(G);
  7589. G = null != (null == (K = G.outStatistics) ? void 0 : K[0]); K = d("featurelayer-pbf-statistics"); K = !G || K; let fa; if ("pbf" === this.format && K) try { fa = yield n.executeRawQueryPBF(this.url, S, H) } catch (ha) { if ("query:parsing-pbf" === ha.name) this.format = "json"; else throw ha; } "json" !== this.format && K || (fa = yield t.executeRawQueryJSON(this.url, S, H)); this._normalizeFields(fa.fields); return fa
  7590. }); return function (G, H) { return E.apply(this, arguments) }
  7591. }(); N.featureSetFromJSON = function () {
  7592. var E = b._asyncToGenerator(function* (G, H, K) {
  7593. if (!this._queryIs3DObjectFormat(G) ||
  7594. l.isNone(this.infoFor3D) || !H.features || !H.features.length) return u.fromJSON(H); ({ meshFeatureSetFromJSON: K } = yield r.whenOrAbort(new Promise((S, fa) => a(["../../../../rest/support/meshFeatureSet"], S, fa)), K)); return K(G, this.infoFor3D, H)
  7595. }); return function (G, H, K) { return E.apply(this, arguments) }
  7596. }(); N.executeForCount = function (E, G) { G = { ...this.requestOptions, ...G }; E = this._normalizeQuery(E); return v.executeForCount(this.url, E, G) }; N.executeForExtent = function (E, G) {
  7597. G = { ...this.requestOptions, ...G }; E = this._normalizeQuery(E);
  7598. return y.executeForExtent(this.url, E, G)
  7599. }; N.executeForIds = function (E, G) { G = { ...this.requestOptions, ...G }; E = this._normalizeQuery(E); return B.executeForIds(this.url, E, G) }; N.executeRelationshipQuery = function (E, G) { E = D.from(E); G = { ...this.requestOptions, ...G }; if (this.gdbVersion || this.dynamicDataSource) E = E.clone(), E.gdbVersion = E.gdbVersion || this.gdbVersion, E.dynamicDataSource = E.dynamicDataSource || this.dynamicDataSource; return w.executeRelationshipQuery(this.url, E, G) }; N.executeRelationshipQueryForCount = function (E,
  7600. G) { E = D.from(E); G = { ...this.requestOptions, ...G }; if (this.gdbVersion || this.dynamicDataSource) E = E.clone(), E.gdbVersion = E.gdbVersion || this.gdbVersion, E.dynamicDataSource = E.dynamicDataSource || this.dynamicDataSource; return w.executeRelationshipQueryForCount(this.url, E, G) }; N.executeAttachmentQuery = function (E, G) { return h.executeAttachmentQuery(this.url, E, { ...this.requestOptions, ...G }) }; N.executeTopFeaturesQuery = function (E, G) {
  7601. return x.executeTopFeaturesQuery(this.parsedUrl, E, this.sourceSpatialReference, {
  7602. ...this.requestOptions,
  7603. ...G
  7604. })
  7605. }; N.executeForTopIds = function (E, G) { return z.executeForTopIds(this.parsedUrl, E, { ...this.requestOptions, ...G }) }; N.executeForTopExtents = function (E, G) { return C.executeForTopExtents(this.parsedUrl, E, { ...this.requestOptions, ...G }) }; N.executeForTopCount = function (E, G) { return A.executeForTopCount(this.parsedUrl, E, { ...this.requestOptions, ...G }) }; N._normalizeQuery = function (E) {
  7606. let G = f.from(E); G.sourceSpatialReference = G.sourceSpatialReference || this.sourceSpatialReference; if (this.gdbVersion || this.dynamicDataSource) G =
  7607. G === E ? G.clone() : G, G.gdbVersion = E.gdbVersion || this.gdbVersion, G.dynamicDataSource = E.dynamicDataSource ? p.DataLayerSource.from(E.dynamicDataSource) : this.dynamicDataSource; if (l.isSome(this.infoFor3D) && this._queryIs3DObjectFormat(E)) {
  7608. G = G === E ? G.clone() : G; G.formatOf3DObjects = null; for (const H of this.infoFor3D.queryFormats) { if ("3D_glb" === H.id) { G.formatOf3DObjects = H.id; break } "3D_gltf" !== H.id || G.formatOf3DObjects || (G.formatOf3DObjects = H.id) } if (!G.formatOf3DObjects) throw new e("query:unsupported-3d-query-formats",
  7609. "Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf"); if (l.isNone(G.outFields) || !G.outFields.includes("*")) { G = G === E ? G.clone() : G; l.isNone(G.outFields) && (G.outFields = []); const { originX: H, originY: K, originZ: S, translationX: fa, translationY: ha, translationZ: ba, scaleX: O, scaleY: na, scaleZ: ra, rotationX: Da, rotationY: Ka, rotationZ: sa, rotationDeg: W } = this.infoFor3D.transformFieldRoles; G.outFields.push(H, K, S, fa, ha, ba, O, na, ra, Da, Ka, sa, W) }
  7610. } return G
  7611. }; N._normalizeFields =
  7612. function (E) { if (l.isSome(this.fieldsIndex) && l.isSome(E)) for (const G of E) (E = this.fieldsIndex.get(G.name)) && Object.assign(G, E.toJSON()) }; N._queryIs3DObjectFormat = function (E) { return l.isSome(this.infoFor3D) && E.returnGeometry && "xyFootprint" !== E.multipatchOption && !E.outStatistics }; return M
  7613. }(F); c.__decorate([q.property({ type: p.DataLayerSource })], k.prototype, "dynamicDataSource", void 0); c.__decorate([q.property()], k.prototype, "fieldsIndex", void 0); c.__decorate([q.property()], k.prototype, "format", void 0);
  7614. c.__decorate([q.property()], k.prototype, "gdbVersion", void 0); c.__decorate([q.property()], k.prototype, "infoFor3D", void 0); c.__decorate([q.property()], k.prototype, "sourceSpatialReference", void 0); return k = c.__decorate([g.subclass("esri.tasks.QueryTask")], k)
  7615. })
  7616. }, "esri/rest/query/executeQueryJSON": function () {
  7617. define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/query ../support/FeatureSet ../support/Query".split(" "), function (a, b, c, e, d, l) {
  7618. function r() {
  7619. r = b._asyncToGenerator(function* (m,
  7620. g, p) { m = yield q(m, g, p); return d.fromJSON(m) }); return r.apply(this, arguments)
  7621. } function q(m, g, p) { return k.apply(this, arguments) } function k() { k = b._asyncToGenerator(function* (m, g, p) { m = c.parseUrl(m); p = { ...p }; g = l.from(g); ({ data: g } = yield e.executeQuery(m, g, g.sourceSpatialReference, p)); return g }); return k.apply(this, arguments) } a.executeQueryJSON = function (m, g, p) { return r.apply(this, arguments) }; a.executeRawQueryJSON = q; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7622. })
  7623. },
  7624. "esri/rest/utils": function () {
  7625. define(["exports", "../core/lang", "../core/urlUtils"], function (a, b, c) {
  7626. function e(d, l, r) { const q = {}; for (const m in d) if ("declaredClass" !== m) { var k = d[m]; if (null != k && "function" !== typeof k) if (Array.isArray(k)) { q[m] = []; for (let g = 0; g < k.length; g++)q[m][g] = e(k[g]) } else "object" === typeof k ? k.toJSON ? (k = k.toJSON(r && r[m]), q[m] = l ? k : JSON.stringify(k)) : q[m] = l ? k : JSON.stringify(k) : q[m] = k } return q } a.asValidOptions = function (d, l) { return l ? { ...l, query: { ...d, ...l.query } } : { query: d } }; a.encode =
  7627. e; a.parseUrl = function (d) { return "string" === typeof d ? c.urlToObject(d) : b.clone(d) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7628. })
  7629. }, "esri/rest/query/operations/query": function () {
  7630. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../request ../../../core/maybe ../../../core/urlUtils ../../../geometry/support/jsonUtils ../../../geometry/support/normalizeUtils ../../operations/urlUtils ./pbfQueryUtils ./queryZScale".split(" "), function (a, b, c, e, d, l,
  7631. r, q, k, m) {
  7632. function g(h, v) { if (v && "extent" === h.type) return `${h.xmin},${h.ymin},${h.xmax},${h.ymax}`; if (v && "point" === h.type) return `${h.x},${h.y}`; h = h.toJSON(); delete h.spatialReference; return JSON.stringify(h) } function p(h, v) {
  7633. const y = h.geometry, B = h.toJSON(); delete B.compactGeometryEnabled; delete B.defaultSpatialReferenceEnabled; let w, x, z; e.isSome(y) && (x = y.spatialReference, z = y.spatialReference.wkid || JSON.stringify(y.spatialReference), B.geometryType = l.getJsonType(y), B.geometry = g(y, h.compactGeometryEnabled),
  7634. B.inSR = z); B.groupByFieldsForStatistics && (B.groupByFieldsForStatistics = B.groupByFieldsForStatistics.join(",")); B.objectIds && (B.objectIds = B.objectIds.join(",")); B.orderByFields && (B.orderByFields = B.orderByFields.join(",")); !B.outFields || !B.returnDistinctValues && (null != v && v.returnCountOnly || null != v && v.returnExtentOnly || null != v && v.returnIdsOnly) ? delete B.outFields : B.outFields.includes("*") ? B.outFields = "*" : B.outFields = B.outFields.join(","); B.outSR ? (B.outSR = B.outSR.wkid || JSON.stringify(B.outSR), w = h.outSpatialReference) :
  7635. y && (B.returnGeometry || B.returnCentroid) && (B.outSR = B.inSR, w = x); B.returnGeometry && delete B.returnGeometry; B.outStatistics && (B.outStatistics = JSON.stringify(B.outStatistics)); B.pixelSize && (B.pixelSize = JSON.stringify(B.pixelSize)); B.quantizationParameters && (h.defaultSpatialReferenceEnabled && e.isSome(x) && e.isSome(h.quantizationParameters) && e.isSome(h.quantizationParameters.extent) && x.equals(h.quantizationParameters.extent.spatialReference) && delete B.quantizationParameters.extent.spatialReference, B.quantizationParameters =
  7636. JSON.stringify(B.quantizationParameters)); B.parameterValues && (B.parameterValues = JSON.stringify(B.parameterValues)); B.rangeValues && (B.rangeValues = JSON.stringify(B.rangeValues)); B.dynamicDataSource && (B.layer = JSON.stringify({ source: B.dynamicDataSource }), delete B.dynamicDataSource); if (B.timeExtent) { const { start: C, end: A } = B.timeExtent; if (null != C || null != A) B.time = C === A ? C : `${null == C ? "null" : C},${null == A ? "null" : A}`; delete B.timeExtent } h.defaultSpatialReferenceEnabled && e.isSome(x) && e.isSome(w) && x.equals(w) &&
  7637. (B.defaultSR = B.inSR, delete B.inSR, delete B.outSR); return B
  7638. } function t() { t = b._asyncToGenerator(function* (h, v, y, B) { h = e.isSome(v.timeExtent) && v.timeExtent.isEmpty ? { data: { features: [] } } : yield f(h, v, "json", B); m.applyFeatureSetZUnitScaling(v, y, h.data); return h }); return t.apply(this, arguments) } function n() {
  7639. n = b._asyncToGenerator(function* (h, v, y, B) { if (e.isSome(v.timeExtent) && v.timeExtent.isEmpty) return { data: y.createFeatureResult() }; h = yield u(h, v, B); h.data = k.parsePBFFeatureQuery(h.data, y); return h }); return n.apply(this,
  7640. arguments)
  7641. } function u(h, v, y) { return f(h, v, "pbf", y) } function f(h, v, y, B = {}, w = {}) { const x = "string" === typeof h ? d.urlToObject(h) : h; h = v.geometry ? [v.geometry] : []; B.responseType = "pbf" === y ? "array-buffer" : "json"; return r.normalizeCentralMeridian(h, null, B).then(z => { z = z && z[0]; e.isSome(z) && (v = v.clone(), v.geometry = z); z = q.mapParameters({ ...x.query, f: y, ...w, ...p(v, w) }); return c(d.join(x.path, "query"), { ...B, query: { ...z, ...B.query } }) }) } a.encodeGeometry = g; a.executeQuery = function (h, v, y, B) { return t.apply(this, arguments) };
  7642. a.executeQueryForCount = function (h, v, y) { return e.isSome(v.timeExtent) && v.timeExtent.isEmpty ? Promise.resolve({ data: { count: 0 } }) : f(h, v, "json", y, { returnIdsOnly: !0, returnCountOnly: !0 }) }; a.executeQueryForExtent = function (h, v, y) {
  7643. return e.isSome(v.timeExtent) && v.timeExtent.isEmpty ? Promise.resolve({ data: { count: 0, extent: null } }) : f(h, v, "json", y, { returnExtentOnly: !0, returnCountOnly: !0 }).then(B => {
  7644. const w = B.data; if (w.hasOwnProperty("extent")) return B; if (w.features) throw Error("Layer does not support extent calculation.");
  7645. if (w.hasOwnProperty("count")) throw Error("Layer does not support extent calculation."); return B
  7646. })
  7647. }; a.executeQueryForIds = function (h, v, y) { return e.isSome(v.timeExtent) && v.timeExtent.isEmpty ? Promise.resolve({ data: { objectIds: [] } }) : f(h, v, "json", y, { returnIdsOnly: !0 }) }; a.executeQueryPBF = function (h, v, y, B) { return n.apply(this, arguments) }; a.executeQueryPBFBuffer = u; a.queryToQueryStringParameters = p; a.runQuery = f; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7648. })
  7649. }, "esri/geometry/support/normalizeUtils": function () {
  7650. define("exports ../../chunks/_rollupPluginBabelHelpers ../../config ../../core/Error ../../core/Logger ../../core/maybe ../Polygon ../Polyline ./normalizeUtilsCommon ./spatialReferenceUtils ./webMercatorUtils ../../rest/geometry/cut ../../rest/geometry/simplify".split(" "),
  7651. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  7652. function n(x) { const z = []; let C = 0, A = 0; for (let D = 0; D < x.length; D++) { const F = x[D]; let J = null; for (let M = 0; M < F.length; M++)J = F[M], z.push(J), 0 === M ? A = C = J[0] : (C = Math.min(C, J[0]), A = Math.max(A, J[0])); J && z.push([(C + A) / 2, 0]) } return z } function u(x, z) {
  7653. if (!(x instanceof q || x instanceof r)) throw w.error("straightLineDensify: the input geometry is neither polyline nor polygon"), new e("straightLineDensify: the input geometry is neither polyline nor polygon"); var C = k.getGeometryParts(x);
  7654. const A = []; for (const F of C) { C = []; A.push(C); C.push([F[0][0], F[0][1]]); for (let J = 0; J < F.length - 1; J++) { const M = F[J][0], N = F[J][1], E = F[J + 1][0], G = F[J + 1][1]; var D = Math.sqrt((E - M) * (E - M) + (G - N) * (G - N)); const H = (G - N) / D, K = (E - M) / D, S = D / z; if (1 < S) { for (let fa = 1; fa <= S - 1; fa++) { const ha = fa * z; C.push([K * ha + M, H * ha + N]) } D = (D + Math.floor(S - 1) * z) / 2; C.push([K * D + M, H * D + N]) } C.push([E, G]) } } return "polygon" === x.type ? new r({ rings: A, spatialReference: x.spatialReference }) : new q({ paths: A, spatialReference: x.spatialReference })
  7655. } function f(x,
  7656. z, C) { z && (x = u(x, 1E6), x = g.webMercatorToGeographic(x, !0)); C && (x = k.updatePolyGeometry(x, C)); return x } function h(x, z, C) { if (Array.isArray(x)) { var A = x[0]; A > z ? (C = k.offsetMagnitude(A, z), x[0] = A + -2 * C * z) : A < C && (z = k.offsetMagnitude(A, C), x[0] = A + -2 * z * C) } else A = x.x, A > z ? (C = k.offsetMagnitude(A, z), x = x.clone().offset(-2 * C * z, 0)) : A < C && (z = k.offsetMagnitude(A, C), x = x.clone().offset(-2 * z * C, 0)); return x } function v(x, z) {
  7657. let C = -1; for (let A = 0; A < z.cutIndexes.length; A++) {
  7658. const D = z.cutIndexes[A], F = z.geometries[A], J = k.getGeometryParts(F);
  7659. for (let M = 0; M < J.length; M++) { const N = J[M]; N.some(E => { if (180 > E[0]) return !0; E = 0; for (var G = 0; G < N.length; G++) { var H = N[G][0]; E = H > E ? H : E } E = Number(E.toFixed(9)); E = -360 * k.offsetMagnitude(E, 180); for (G = 0; G < N.length; G++)H = F.getPoint(M, G), F.setPoint(M, G, H.clone().offset(E, 0)); return !0 }) } if (D === C) if ("polygon" === x[0].type) for (const M of k.getGeometryParts(F)) x[D] = x[D].addRing(M); else { if ("polyline" === x[0].type) for (const M of k.getGeometryParts(F)) x[D] = x[D].addPath(M) } else C = D, x[D] = F
  7660. } return x
  7661. } function y(x, z, C) {
  7662. return B.apply(this,
  7663. arguments)
  7664. } function B() {
  7665. B = b._asyncToGenerator(function* (x, z, C) {
  7666. var A; if (!Array.isArray(x)) return y([x], z); z && "string" !== typeof z && w.warn("normalizeCentralMeridian()", "The url object is deprecated, use the url string instead"); z = "string" === typeof z ? z : null != (A = null == z ? void 0 : z.url) ? A : c.geometryServiceUrl; let D, F, J; let M = 0; var N = []; A = []; for (var E of x) if (l.isNone(E)) A.push(E); else {
  7667. if (!G) {
  7668. var G = E.spatialReference; var H = m.getInfo(G); var K = (D = G.isWebMercator) ? 102100 : 4326; F = k.cutParams[K].maxX; J = k.cutParams[K].minX;
  7669. var S = k.cutParams[K].plus180Line; K = k.cutParams[K].minus180Line
  7670. } if (H) if ("mesh" === E.type) A.push(E); else if ("point" === E.type) A.push(h(E.clone(), F, J)); else if ("multipoint" === E.type) { var fa = E.clone(); fa.points = fa.points.map(ha => h(ha, F, J)); A.push(fa) } else if ("extent" === E.type) fa = E.clone()._normalize(!1, !1, H), A.push(fa.rings ? new r(fa) : fa); else if (E.extent) {
  7671. fa = E.extent; const ha = 2 * k.offsetMagnitude(fa.xmin, J) * F; let ba = 0 === ha ? E.clone() : k.updatePolyGeometry(E.clone(), ha); fa.offset(ha, 0); fa.intersects(S) && fa.xmax !==
  7672. F ? (M = fa.xmax > M ? fa.xmax : M, ba = f(ba, D), N.push(ba), A.push("cut")) : fa.intersects(K) && fa.xmin !== J ? (M = 2 * fa.xmax * F > M ? 2 * fa.xmax * F : M, ba = f(ba, D, 360), N.push(ba), A.push("cut")) : A.push(ba)
  7673. } else A.push(E.clone()); else A.push(E)
  7674. } G = k.offsetMagnitude(M, F); H = -90; S = G; for (E = new q; 0 < G;)K = -180 + 360 * G, E.addPath([[K, H], [K, -1 * H]]), H *= -1, G--; if (0 < N.length && 0 < S) {
  7675. G = yield p.cut(z, N, E, C); G = v(N, G); H = []; N = []; for (S = 0; S < A.length; S++)E = A[S], "cut" !== E ? N.push(E) : (E = G.shift(), K = x[S], l.isSome(K) && "polygon" === K.type && K.rings && 1 < K.rings.length &&
  7676. E.rings.length >= K.rings.length ? (H.push(E), N.push("simplify")) : N.push(D ? g.geographicToWebMercator(E) : E)); if (!H.length) return N; A = yield t.simplify(z, H, C); x = []; for (C = 0; C < N.length; C++)z = N[C], "simplify" !== z ? x.push(z) : x.push(D ? g.geographicToWebMercator(A.shift()) : A.shift()); return x
  7677. } x = []; for (C = 0; C < A.length; C++)z = A[C], "cut" !== z ? x.push(z) : (z = N.shift(), x.push(!0 === D ? g.geographicToWebMercator(z) : z)); return x
  7678. }); return B.apply(this, arguments)
  7679. } const w = d.getLogger("esri.geometry.support.normalizeUtils"); a.getDenormalizedExtent =
  7680. function (x) {
  7681. if (!x) return null; const z = x.extent; if (!z) return null; var C = x.spatialReference && m.getInfo(x.spatialReference); if (!C) return z; const [A, D] = C.valid; ({ width: C } = z); let { xmin: F, xmax: J } = z;[F, J] = [J, F]; if ("extent" === x.type || 0 === C || C <= D || C > 2 * D || F < A || J > D) return z; let M; switch (x.type) { case "polygon": if (1 < x.rings.length) M = n(x.rings); else return z; break; case "polyline": if (1 < x.paths.length) M = n(x.paths); else return z; break; case "multipoint": M = x.points }x = z.clone(); for (let N = 0; N < M.length; N++) {
  7682. let E = M[N][0];
  7683. 0 > E ? (E += D, J = Math.max(E, J)) : (E -= D, F = Math.min(E, F))
  7684. } x.xmin = F; x.xmax = J; return x.width < C ? (x.xmin -= D, x.xmax -= D, x) : z
  7685. }; a.normalizeCentralMeridian = y; a.normalizeMapX = function (x, z) { if (z = m.getInfo(z)) { const [C, A] = z.valid; z = A - C; if (x < C) for (; x < C;)x += z; if (x > A) for (; x > A;)x -= z } return x }; a.straightLineDensify = u; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7686. })
  7687. }, "esri/geometry/support/normalizeUtilsCommon": function () {
  7688. define(["exports", "../Polyline", "../SpatialReference", "./jsonUtils"],
  7689. function (a, b, c, e) {
  7690. function d(l) { return e.isPolygon(l) ? l.rings : l.paths } b = {
  7691. 102100: { maxX: 2.0037508342788905E7, minX: -2.0037508342788905E7, plus180Line: new b({ paths: [[[2.0037508342788905E7, -2.0037508342788905E7], [2.0037508342788905E7, 2.0037508342788905E7]]], spatialReference: c.WebMercator }), minus180Line: new b({ paths: [[[-2.0037508342788905E7, -2.0037508342788905E7], [-2.0037508342788905E7, 2.0037508342788905E7]]], spatialReference: c.WebMercator }) }, 4326: {
  7692. maxX: 180, minX: -180, plus180Line: new b({
  7693. paths: [[[180, -180],
  7694. [180, 180]]], spatialReference: c.WGS84
  7695. }), minus180Line: new b({ paths: [[[-180, -180], [-180, 180]]], spatialReference: c.WGS84 })
  7696. }
  7697. }; a.cutParams = b; a.getGeometryParts = d; a.offsetMagnitude = function (l, r) { return Math.ceil((l - r) / (2 * r)) }; a.updatePolyGeometry = function (l, r) { const q = d(l); for (const k of q) for (const m of k) m[0] += r; return l }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7698. })
  7699. }, "esri/rest/geometry/cut": function () {
  7700. define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../../request ../../core/urlUtils ../../geometry/support/jsonUtils".split(" "),
  7701. function (a, b, c, e, d, l) {
  7702. function r() { r = b._asyncToGenerator(function* (q, k, m, g) { q = "string" === typeof q ? d.urlToObject(q) : q; const p = k[0].spatialReference; k = { ...g, query: { ...q.query, f: "json", sr: JSON.stringify(p), target: JSON.stringify({ geometryType: l.getJsonType(k[0]), geometries: k }), cutter: JSON.stringify(m) } }; k = yield e(q.path + "/cut", k); const { cutIndexes: t, geometries: n = [] } = k.data; return { cutIndexes: t, geometries: n.map(u => { u = l.fromJSON(u); u.spatialReference = p; return u }) } }); return r.apply(this, arguments) } a.cut =
  7703. function (q, k, m, g) { return r.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7704. })
  7705. }, "esri/rest/geometry/simplify": function () {
  7706. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../../request", "../../core/urlUtils", "../../geometry/support/jsonUtils"], function (a, b, c, e, d) {
  7707. function l() {
  7708. l = b._asyncToGenerator(function* (k, m, g) {
  7709. const p = "string" === typeof k ? e.urlToObject(k) : k; k = m[0].spatialReference; const t = d.getJsonType(m[0]); m = {
  7710. ...g, query: {
  7711. ...p.query,
  7712. f: "json", sr: k.wkid ? k.wkid : JSON.stringify(k), geometries: JSON.stringify(r(m))
  7713. }
  7714. }; m = yield c(p.path + "/simplify", m); return q(m.data, t, k)
  7715. }); return l.apply(this, arguments)
  7716. } function r(k) { return { geometryType: d.getJsonType(k[0]), geometries: k.map(m => m.toJSON()) } } function q(k, m, g) { const p = d.getGeometryType(m); return k.map(t => { t = p.fromJSON(t); t.spatialReference = g; return t }) } a.simplify = function (k, m, g) { return l.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7717. })
  7718. },
  7719. "esri/rest/operations/urlUtils": function () { define(["exports"], function (a) { function b(c) { const e = {}; for (const d in c) { if ("declaredClass" === d) continue; const l = c[d]; if (null != l && "function" !== typeof l) if (Array.isArray(l)) { e[d] = []; for (let r = 0; r < l.length; r++)e[d][r] = b(l[r]) } else "object" === typeof l ? l.toJSON && (e[d] = JSON.stringify(l)) : e[d] = l } return e } a.mapParameters = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/rest/query/operations/pbfQueryUtils": function () {
  7720. define(["exports",
  7721. "./pbfFeatureServiceParser"], function (a, b) { a.parsePBFFeatureQuery = function (c, e) { var d = b.parseFeatureQuery(c, e); c = d.queryResult.featureResult; e = d.queryResult.queryGeometry; d = d.queryResult.queryGeometryType; if (c && c.features && c.features.length && c.objectIdFieldName) { const l = c.objectIdFieldName; for (const r of c.features) r.attributes && (r.objectId = r.attributes[l]) } c && (c.queryGeometry = e, c.queryGeometryType = d); return c }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  7722. },
  7723. "esri/rest/query/operations/pbfFeatureServiceParser": function () {
  7724. define("exports ../../../core/Error ../../../core/maybe ../../../core/pbf ../../../layers/graphics/OptimizedGeometry ./pbfOptimizedFeatureSet".split(" "), function (a, b, c, e, d, l) {
  7725. function r(A) { return A >= x.length ? null : x[A] } function q(A, D, F) { for (F = D.createPointGeometry(F); A.next();)switch (A.tag()) { case 3: { var J = A.getUInt32(); J = A.pos() + J; let M = 0; for (; A.pos() < J;)D.addCoordinatePoint(F, A.getSInt64(), M++); break } default: A.skip() }return F } function k(A,
  7726. D, F) { const J = D.createGeometry(F); for (F = 2 + (F.hasZ ? 1 : 0) + (F.hasM ? 1 : 0); A.next();)switch (A.tag()) { case 2: var M = A.getUInt32(); M = A.pos() + M; for (var N = 0; A.pos() < M;)D.addLength(J, A.getUInt32(), N++); break; case 3: M = A.getUInt32(); M = A.pos() + M; N = 0; for (D.allocateCoordinates(J); A.pos() < M;)D.addCoordinate(J, A.getSInt64(), N), N++, N === F && (N = 0); break; default: A.skip() }return J } function m(A) {
  7727. const D = new d; let F = "esriGeometryPoint"; for (; A.next();)switch (A.tag()) {
  7728. case 2: var J = A.getUInt32(); for (J = A.pos() + J; A.pos() < J;)D.lengths.push(A.getUInt32());
  7729. break; case 3: J = A.getUInt32(); for (J = A.pos() + J; A.pos() < J;)D.coords.push(A.getSInt64()); break; case 1: F = l.OPTIMIZED_GEOMETRY_TYPES[A.getEnum()]; break; default: A.skip()
  7730. }return { queryGeometry: D, queryGeometryType: F }
  7731. } function g(A) {
  7732. for (; A.next();)switch (A.tag()) {
  7733. case 1: return A.getString(); case 2: return A.getFloat(); case 3: return A.getDouble(); case 4: return A.getSInt32(); case 5: return A.getUInt32(); case 6: return A.getInt64(); case 7: return A.getUInt64(); case 8: return A.getSInt64(); case 9: return A.getBool(); default: return A.skip(),
  7734. null
  7735. }return null
  7736. } function p(A) { const D = { type: r(0) }; for (; A.next();)switch (A.tag()) { case 1: D.name = A.getString(); break; case 2: D.type = r(A.getEnum()); break; case 3: D.alias = A.getString(); break; case 4: var F = A.getEnum(); F = F >= z.length ? null : z[F]; D.sqlType = F; break; case 5: A.skip(); break; case 6: D.defaultValue = A.getString(); break; default: A.skip() }return D } function t(A) { const D = {}; for (; A.next();)switch (A.tag()) { case 1: D.name = A.getString(); break; case 2: D.isSystemMaintained = A.getBool(); break; default: A.skip() }return D }
  7737. function n(A, D, F, J) { const M = D.createFeature(F); let N = 0; for (; A.next();)switch (A.tag()) { case 1: { const E = J[N++].name; M.attributes[E] = A.processMessage(g); break } case 2: M.geometry = A.processMessageWithArgs(k, D, F); break; case 4: M.centroid = A.processMessageWithArgs(q, D, F); break; default: A.skip() }return M } function u(A) { const D = [1, 1, 1, 1]; for (; A.next();)switch (A.tag()) { case 1: D[0] = A.getDouble(); break; case 2: D[1] = A.getDouble(); break; case 4: D[2] = A.getDouble(); break; case 3: D[3] = A.getDouble(); break; default: A.skip() }return D }
  7738. function f(A) { const D = [0, 0, 0, 0]; for (; A.next();)switch (A.tag()) { case 1: D[0] = A.getDouble(); break; case 2: D[1] = A.getDouble(); break; case 4: D[2] = A.getDouble(); break; case 3: D[3] = A.getDouble(); break; default: A.skip() }return D } function h(A) { const D = { originPosition: 0 >= C.length ? null : C[0] }; for (; A.next();)switch (A.tag()) { case 1: var F = A.getEnum(); D.originPosition = F >= C.length ? null : C[F]; break; case 2: D.scale = A.processMessage(u); break; case 3: D.translate = A.processMessage(f); break; default: A.skip() }return D } function v(A) {
  7739. const D =
  7740. {}; for (; A.next();)switch (A.tag()) { case 1: D.shapeAreaFieldName = A.getString(); break; case 2: D.shapeLengthFieldName = A.getString(); break; case 3: D.units = A.getString(); break; default: A.skip() }return D
  7741. } function y(A, D) { for (D = D.createSpatialReference(); A.next();)switch (A.tag()) { case 1: D.wkid = A.getUInt32(); break; case 5: D.wkt = A.getString(); break; case 2: D.latestWkid = A.getUInt32(); break; case 3: D.vcsWkid = A.getUInt32(); break; case 4: D.latestVcsWkid = A.getUInt32(); break; default: A.skip() }return D } function B(A, D) {
  7742. const F =
  7743. D.createFeatureResult(); F.geometryType = 0 >= D.geometryTypes.length ? null : D.geometryTypes[0]; let J = !1; for (; A.next();)switch (A.tag()) {
  7744. case 1: F.objectIdFieldName = A.getString(); break; case 3: F.globalIdFieldName = A.getString(); break; case 4: F.geohashFieldName = A.getString(); break; case 5: F.geometryProperties = A.processMessage(v); break; case 7: var M = A.getEnum(); F.geometryType = M >= D.geometryTypes.length ? null : D.geometryTypes[M]; break; case 8: F.spatialReference = A.processMessageWithArgs(y, D); break; case 10: F.hasZ = A.getBool();
  7745. break; case 11: F.hasM = A.getBool(); break; case 12: F.transform = A.processMessage(h); break; case 9: M = A.getBool(); F.exceededTransferLimit = M; break; case 13: D.addField(F, A.processMessage(p)); break; case 15: J || (D.prepareFeatures(F), J = !0); D.addFeature(F, A.processMessageWithArgs(n, D, F, F.fields)); break; case 2: F.uniqueIdField = A.processMessage(t); break; default: A.skip()
  7746. }D.finishFeatureResult(F); return F
  7747. } function w(A, D) {
  7748. const F = {}; let J = null; for (; A.next();)switch (A.tag()) {
  7749. case 4: J = A.processMessageWithArgs(m); break; case 1: F.featureResult =
  7750. A.processMessageWithArgs(B, D); break; default: A.skip()
  7751. }c.isSome(J) && F.featureResult && D.addQueryGeometry(F, J); return F
  7752. } const x = "esriFieldTypeSmallInteger esriFieldTypeInteger esriFieldTypeSingle esriFieldTypeDouble esriFieldTypeString esriFieldTypeDate esriFieldTypeOID esriFieldTypeGeometry esriFieldTypeBlob esriFieldTypeRaster esriFieldTypeGUID esriFieldTypeGlobalID esriFieldTypeXML".split(" "), z = "sqlTypeBigInt sqlTypeBinary sqlTypeBit sqlTypeChar sqlTypeDate sqlTypeDecimal sqlTypeDouble sqlTypeFloat sqlTypeGeometry sqlTypeGUID sqlTypeInteger sqlTypeLongNVarchar sqlTypeLongVarbinary sqlTypeLongVarchar sqlTypeNChar sqlTypeNVarchar sqlTypeOther sqlTypeReal sqlTypeSmallInt sqlTypeSqlXml sqlTypeTime sqlTypeTimestamp sqlTypeTimestamp2 sqlTypeTinyInt sqlTypeVarbinary sqlTypeVarchar".split(" "),
  7753. C = ["upperLeft", "lowerLeft"]; a.parseFeatureQuery = function (A, D) { try { const F = new e(new Uint8Array(A), new DataView(A)); for (A = {}; F.next();)switch (F.tag()) { case 2: A.queryResult = F.processMessageWithArgs(w, D); break; default: F.skip() }return A } catch (F) { throw new b("query:parsing-pbf", "Error while parsing FeatureSet PBF payload", { error: F }); } }; a.parseFieldType = r; a.parseTransform = h; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7754. })
  7755. }, "esri/core/pbf": function () {
  7756. define(["./has",
  7757. "./ObjectPool"], function (a, b) {
  7758. var c; (function (l) { l[l.varint = 0] = "varint"; l[l.fixed64 = 1] = "fixed64"; l[l.delimited = 2] = "delimited"; l[l.fixed32 = 5] = "fixed32"; l[l.unknown = 99] = "unknown" })(c || (c = {})); const e = new TextDecoder("utf-8"), d = a("safari") || a("ios") ? 6 : a("ff") ? 12 : 32; a = function () {
  7759. function l(q, k, m = 0, g = q ? q.byteLength : 0) { this._tag = 0; this._dataType = c.unknown; this._init(q, k, m, g) } var r = l.prototype; r._init = function (q, k, m, g) { this._data = q; this._dataView = k; this._pos = m; this._end = g }; r.clone = function () {
  7760. return new l(this._data,
  7761. this._dataView, this._pos, this._end)
  7762. }; r.pos = function () { return this._pos }; r.move = function (q) { this._pos = q }; r.nextTag = function (q) { for (; ;) { if (this._pos === this._end) return !1; const k = this._decodeVarint(); this._tag = k >> 3; this._dataType = k & 7; if (!q || q === this._tag) break; this.skip() } return !0 }; r.next = function () { if (this._pos === this._end) return !1; const q = this._decodeVarint(); this._tag = q >> 3; this._dataType = q & 7; return !0 }; r.empty = function () { return this._pos >= this._end }; r.tag = function () { return this._tag }; r.getInt32 = function () { return this._decodeVarint() };
  7763. r.getInt64 = function () { return this._decodeVarint() }; r.getUInt32 = function () { let q = 4294967295; q = (this._data[this._pos] & 127) >>> 0; if (128 > this._data[this._pos++]) return q; q = (q | (this._data[this._pos] & 127) << 7) >>> 0; if (128 > this._data[this._pos++]) return q; q = (q | (this._data[this._pos] & 127) << 14) >>> 0; if (128 > this._data[this._pos++]) return q; q = (q | (this._data[this._pos] & 127) << 21) >>> 0; if (128 > this._data[this._pos++]) return q; q = (q | (this._data[this._pos] & 15) << 28) >>> 0; if (128 > this._data[this._pos++]) return q }; r.getUInt64 =
  7764. function () { return this._decodeVarint() }; r.getSInt32 = function () { const q = this.getUInt32(); return q >>> 1 ^ -(q & 1) | 0 }; r.getSInt64 = function () { return this._decodeSVarint() }; r.getBool = function () { const q = 0 !== this._data[this._pos]; this._skip(1); return q }; r.getEnum = function () { return this._decodeVarint() }; r.getFixed64 = function () { var q = this._dataView; const k = this._pos; q = q.getUint32(k, !0) + 4294967296 * q.getUint32(k + 4, !0); this._skip(8); return q }; r.getSFixed64 = function () {
  7765. var q = this._dataView; const k = this._pos; q = q.getUint32(k,
  7766. !0) + 4294967296 * q.getInt32(k + 4, !0); this._skip(8); return q
  7767. }; r.getDouble = function () { const q = this._dataView.getFloat64(this._pos, !0); this._skip(8); return q }; r.getFixed32 = function () { const q = this._dataView.getUint32(this._pos, !0); this._skip(4); return q }; r.getSFixed32 = function () { const q = this._dataView.getInt32(this._pos, !0); this._skip(4); return q }; r.getFloat = function () { const q = this._dataView.getFloat32(this._pos, !0); this._skip(4); return q }; r.getString = function () {
  7768. const q = this._getLength(); var k = this._pos;
  7769. k = this._toString(this._data, k, k + q); this._skip(q); return k
  7770. }; r.getBytes = function () { const q = this._getLength(); var k = this._pos; k = this._toBytes(this._data, k, k + q); this._skip(q); return k }; r.getLength = function () { return this._getLengthUnsafe() }; r.processMessageWithArgs = function (q, k, m, g) { const p = this.getMessage(); q = q(p, k, m, g); p.release(); return q }; r.processMessage = function (q) { const k = this.getMessage(); q = q(k); k.release(); return q }; r.getMessage = function () {
  7771. const q = this._getLength(), k = l.pool.acquire(); k._init(this._data,
  7772. this._dataView, this._pos, this._pos + q); this._skip(q); return k
  7773. }; r.release = function () { l.pool.release(this) }; r.dataType = function () { return this._dataType }; r.skip = function () { switch (this._dataType) { case c.varint: this._decodeVarint(); break; case c.fixed64: this._skip(8); break; case c.delimited: this._skip(this._getLength()); break; case c.fixed32: this._skip(4); break; default: throw Error("Invalid data type!"); } }; r.skipLen = function (q) { this._skip(q) }; r._skip = function (q) {
  7774. if (this._pos + q > this._end) throw Error("Attempt to skip past the end of buffer!");
  7775. this._pos += q
  7776. }; r._decodeVarint = function () {
  7777. const q = this._data; let k = this._pos, m = 0, g; if (10 <= this._end - k) {
  7778. if (g = q[k++], m |= g & 127, 0 !== (g & 128) && (g = q[k++], m |= (g & 127) << 7, 0 !== (g & 128) && (g = q[k++], m |= (g & 127) << 14, 0 !== (g & 128) && (g = q[k++], m |= (g & 127) << 21, 0 !== (g & 128) && (g = q[k++], m += 268435456 * (g & 127), 0 !== (g & 128) && (g = q[k++], m += 34359738368 * (g & 127), 0 !== (g & 128) && (g = q[k++], m += 4398046511104 * (g & 127), 0 !== (g & 128) && (g = q[k++], m += 562949953421312 * (g & 127), 0 !== (g & 128) && (g = q[k++], m += 72057594037927936 * (g & 127), 0 !== (g & 128) && (g = q[k++], m +=
  7779. 0x7fffffffffffffff * (g & 127), 0 !== (g & 128))))))))))) throw Error("Varint too long!");
  7780. } else { let p = 1; for (; k !== this._end;) { g = q[k]; if (0 === (g & 128)) break; ++k; m += (g & 127) * p; p *= 128 } if (k === this._end) throw Error("Varint overrun!"); ++k; m += g * p } this._pos = k; return m
  7781. }; r._decodeSVarint = function () { const q = this._decodeVarint(); return q % 2 ? -(q + 1) / 2 : q / 2 }; r._getLength = function () { if (this._dataType !== c.delimited) throw Error("Not a delimited data type!"); return this._decodeVarint() }; r._getLengthUnsafe = function () { return this.getUInt32() };
  7782. r._toString = function (q, k, m) { m = Math.min(this._end, m); if (m - k > d) return q = q.subarray(k, m), e.decode(q); let g = "", p = ""; for (; k < m; ++k) { const t = q[k]; t & 128 ? p += "%" + t.toString(16) : (g += decodeURIComponent(p) + String.fromCharCode(t), p = "") } p.length && (g += decodeURIComponent(p)); return g }; r._toBytes = function (q, k, m) { m = Math.min(this._end, m); return new Uint8Array(q.buffer, k, m - k) }; return l
  7783. }(); a.pool = new b(a, null, l => { l._data = null; l._dataView = null }); return a
  7784. })
  7785. }, "esri/layers/graphics/OptimizedGeometry": function () {
  7786. define(["../../chunks/_rollupPluginBabelHelpers"],
  7787. function (a) {
  7788. return function () {
  7789. function b(e = [], d = [], l = !1) { this.lengths = null != e ? e : []; this.coords = null != d ? d : []; this.hasIndeterminateRingOrder = l } b.fromRect = function (e) { const [d, l, r, q] = e; e = r - d; const k = q - l; return new b([5], [d, l, e, 0, 0, k, -e, 0, 0, -k]) }; var c = b.prototype; c.forEachVertex = function (e) { let d = 0; this.lengths.length || e(this.coords[0], this.coords[1]); for (let l = 0; l < this.lengths.length; l++) { const r = this.lengths[l]; for (let q = 0; q < r; q++)e(this.coords[2 * (q + d)], this.coords[2 * (q + d) + 1]); d += r } }; c.clone = function (e) {
  7790. return e ?
  7791. (e.set(this.coords), new b(this.lengths.slice(), e, this.hasIndeterminateRingOrder)) : new b(this.lengths.slice(), this.coords.slice(), this.hasIndeterminateRingOrder)
  7792. }; a._createClass(b, [{ key: "isPoint", get: function () { return 0 === this.lengths.length } }, { key: "maxLength", get: function () { return Math.max(...this.lengths) } }, { key: "size", get: function () { return this.lengths.reduce((e, d) => e + d) } }]); return b
  7793. }()
  7794. })
  7795. }, "esri/rest/query/operations/pbfOptimizedFeatureSet": function () {
  7796. define("exports ../../../core/unitUtils ../../../geometry/support/spatialReferenceUtils ../../../layers/graphics/OptimizedFeature ../../../layers/graphics/OptimizedFeatureSet ../../../layers/graphics/OptimizedGeometry".split(" "),
  7797. function (a, b, c, e, d, l) {
  7798. const r = ["esriGeometryPoint", "esriGeometryMultipoint", "esriGeometryPolyline", "esriGeometryPolygon"]; let q = function () {
  7799. function k(g) { this.options = g; this.geometryTypes = r; this._vertexDimension = this._coordinatePtr = 0 } var m = k.prototype; m.createFeatureResult = function () { return new d }; m.prepareFeatures = function (g) { this._vertexDimension = 2; g.hasZ && this._vertexDimension++; g.hasM && this._vertexDimension++ }; m.finishFeatureResult = function (g) {
  7800. if (g && g.features && g.hasZ && this.options.sourceSpatialReference &&
  7801. g.spatialReference && !c.equals(g.spatialReference, this.options.sourceSpatialReference) && !g.spatialReference.vcsWkid) { var p = b.getMetersPerVerticalUnitForSR(this.options.sourceSpatialReference), t = b.getMetersPerVerticalUnitForSR(g.spatialReference); p /= t; if (1 !== p) for (const n of g.features) if (e.hasGeometry(n)) for (g = n.geometry.coords, t = 2; t < g.length; t += 3)g[t] *= p }
  7802. }; m.addFeature = function (g, p) { g.features.push(p) }; m.createFeature = function () { return new e.OptimizedFeature }; m.createSpatialReference = function () { return { wkid: 0 } };
  7803. m.createGeometry = function () { return new l }; m.addField = function (g, p) { g.fields.push(p) }; m.allocateCoordinates = function (g) { g.coords.length = g.lengths.reduce((p, t) => p + t, 0) * this._vertexDimension; this._coordinatePtr = 0 }; m.addCoordinate = function (g, p) { g.coords[this._coordinatePtr++] = p }; m.addCoordinatePoint = function (g, p) { g.coords.push(p) }; m.addLength = function (g, p) { g.lengths.push(p) }; m.addQueryGeometry = function (g, p) { g.queryGeometry = p.queryGeometry; g.queryGeometryType = p.queryGeometryType }; m.createPointGeometry =
  7804. function () { return new l }; return k
  7805. }(); a.OPTIMIZED_GEOMETRY_TYPES = r; a.OptimizedFeatureSetParserContext = q; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7806. })
  7807. }, "esri/layers/graphics/OptimizedFeature": function () {
  7808. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../../core/maybe"], function (a, b, c) {
  7809. let e = function () {
  7810. function l(r = null, q = {}, k, m) { this.geometry = r; this.attributes = q; this.centroid = k; this.objectId = m; this.geohashY = this.geohashX = this.displayId = 0 } l.prototype.weakClone =
  7811. function () { const r = new l(this.geometry, this.attributes, this.centroid, this.objectId); r.displayId = this.displayId; r.geohashX = this.geohashX; r.geohashY = this.geohashY; return r }; return l
  7812. }(), d = function (l) { function r() { return l.apply(this, arguments) || this } b._inheritsLoose(r, l); return r }(e); a.OptimizedFeature = e; a.OptimizedFeatureWithGeometry = d; a.hasGeometry = function (l) { return !(c.isNone(l.geometry) || !l.geometry.coords || !l.geometry.coords.length) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7813. })
  7814. },
  7815. "esri/layers/graphics/OptimizedFeatureSet": function () {
  7816. define(function () {
  7817. return function () {
  7818. function a() { this.spatialReference = this.geometryType = this.geometryProperties = this.geohashFieldName = this.globalIdFieldName = this.objectIdFieldName = null; this.hasM = this.hasZ = !1; this.features = []; this.fields = []; this.transform = null; this.exceededTransferLimit = !1; this.queryGeometry = this.queryGeometryType = this.uniqueIdField = null } a.prototype.weakClone = function () {
  7819. const b = new a; b.objectIdFieldName = this.objectIdFieldName;
  7820. b.globalIdFieldName = this.globalIdFieldName; b.geohashFieldName = this.geohashFieldName; b.geometryProperties = this.geometryProperties; b.geometryType = this.geometryType; b.spatialReference = this.spatialReference; b.hasZ = this.hasZ; b.hasM = this.hasM; b.features = this.features; b.fields = this.fields; b.transform = this.transform; b.exceededTransferLimit = this.exceededTransferLimit; b.uniqueIdField = this.uniqueIdField; b.queryGeometry = this.queryGeometry; b.queryGeometryType = this.queryGeometryType; return b
  7821. }; return a
  7822. }()
  7823. })
  7824. }, "esri/rest/query/executeQueryPBF": function () {
  7825. define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/pbfJSONFeatureSet ./operations/query ../support/FeatureSet ../support/Query".split(" "),
  7826. function (a, b, c, e, d, l, r) {
  7827. function q() { q = b._asyncToGenerator(function* (g, p, t) { g = yield k(g, r.from(p), t); return l.fromJSON(g) }); return q.apply(this, arguments) } function k(g, p, t) { return m.apply(this, arguments) } function m() { m = b._asyncToGenerator(function* (g, p, t) { g = c.parseUrl(g); t = { ...t }; p = r.from(p); ({ data: p } = yield d.executeQueryPBF(g, p, new e.JSONFeatureSetParserContext({ sourceSpatialReference: p.sourceSpatialReference, applyTransform: !p.quantizationParameters }), t)); return p }); return m.apply(this, arguments) }
  7828. a.executeQueryPBF = function (g, p, t) { return q.apply(this, arguments) }; a.executeRawQueryPBF = k; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7829. })
  7830. }, "esri/rest/query/operations/pbfJSONFeatureSet": function () {
  7831. define(["exports", "../../../core/compilerUtils", "../../../core/maybe", "../../../geometry/support/zscale", "../../../layers/graphics/featureConversionUtils"], function (a, b, c, e, d) {
  7832. function l(n, u) { return u } function r(n, u, f, h) {
  7833. switch (f) {
  7834. case 0: return g(n, u + h, 0); case 1: return "lowerLeft" ===
  7835. n.originPosition ? g(n, u + h, 1) : p(n, u + h, 1)
  7836. }
  7837. } function q(n, u, f, h) { switch (f) { case 2: return g(n, u, 2); default: return r(n, u, f, h) } } function k(n, u, f, h) { switch (f) { case 2: return g(n, u, 3); default: return r(n, u, f, h) } } function m(n, u, f, h) { switch (f) { case 3: return g(n, u, 3); default: return q(n, u, f, h) } } function g({ translate: n, scale: u }, f, h) { return n[h] + f * u[h] } function p({ translate: n, scale: u }, f, h) { return n[h] - f * u[h] } let t = function () {
  7838. function n(f) {
  7839. this.options = f; this.geometryTypes = ["esriGeometryPoint", "esriGeometryMultipoint",
  7840. "esriGeometryPolyline", "esriGeometryPolygon"]; this.previousCoordinate = [0, 0]; this.transform = null; this.applyTransform = l; this.lengths = []; this.vertexDimension = this.toAddInCurrentPath = this.currentLengthIndex = 0; this.coordinateBuffer = null; this.coordinateBufferPtr = 0; this._attributesConstructor = () => { }
  7841. } var u = n.prototype; u.createFeatureResult = function () { return { fields: [], features: [] } }; u.finishFeatureResult = function (f) {
  7842. this.options.applyTransform && (f.transform = null); this._attributesConstructor = () => { }; this.coordinateBuffer =
  7843. null; this.lengths.length = 0; if (f.hasZ) { var h = e.getGeometryZScaler(f.geometryType, this.options.sourceSpatialReference, f.spatialReference); if (!c.isNone(h)) for (const v of f.features) h(v.geometry) }
  7844. }; u.createSpatialReference = function () { return {} }; u.addField = function (f, h) { f.fields.push(h); const v = f.fields.map(y => y.name); this._attributesConstructor = function () { for (const y of v) this[y] = null } }; u.addFeature = function (f, h) { f.features.push(h) }; u.prepareFeatures = function (f) {
  7845. this.transform = f.transform; this.options.applyTransform &&
  7846. f.transform && (this.applyTransform = this._deriveApplyTransform(f)); this.vertexDimension = 2; f.hasZ && this.vertexDimension++; f.hasM && this.vertexDimension++; switch (f.geometryType) {
  7847. case "esriGeometryPoint": this.addCoordinate = (h, v, y) => this.addCoordinatePoint(h, v, y); this.createGeometry = h => this.createPointGeometry(h); break; case "esriGeometryPolygon": this.addCoordinate = (h, v, y) => this._addCoordinatePolygon(h, v, y); this.createGeometry = h => this._createPolygonGeometry(h); break; case "esriGeometryPolyline": this.addCoordinate =
  7848. (h, v, y) => this._addCoordinatePolyline(h, v, y); this.createGeometry = h => this._createPolylineGeometry(h); break; case "esriGeometryMultipoint": this.addCoordinate = (h, v, y) => this._addCoordinateMultipoint(h, v, y); this.createGeometry = h => this._createMultipointGeometry(h); break; default: b.neverReached(f.geometryType)
  7849. }
  7850. }; u.createFeature = function () { this.currentLengthIndex = this.lengths.length = 0; this.previousCoordinate[0] = 0; this.previousCoordinate[1] = 0; this.coordinateBuffer = null; this.coordinateBufferPtr = 0; return { attributes: new this._attributesConstructor } };
  7851. u.allocateCoordinates = function () { }; u.addLength = function (f, h, v) { 0 === this.lengths.length && (this.toAddInCurrentPath = h); this.lengths.push(h) }; u.addQueryGeometry = function (f, h) { const { queryGeometry: v, queryGeometryType: y } = h; h = d.unquantizeOptimizedGeometry(v.clone(), v, !1, !1, this.transform); h = d.convertToGeometry(h, y, !1, !1); f.queryGeometryType = y; f.queryGeometry = { ...h } }; u.createPointGeometry = function (f) { const h = { x: 0, y: 0, spatialReference: f.spatialReference }; f.hasZ && (h.z = 0); f.hasM && (h.m = 0); return h }; u.addCoordinatePoint =
  7852. function (f, h, v) { h = this.applyTransform(this.transform, h, v, 0); switch (v) { case 0: f.x = h; break; case 1: f.y = h; break; case 2: "z" in f ? f.z = h : f.m = h; break; case 3: f.m = h } }; u._transformPathLikeValue = function (f, h) { let v = 0; 1 >= h && (v = this.previousCoordinate[h], this.previousCoordinate[h] += f); return this.applyTransform(this.transform, f, h, v) }; u._addCoordinatePolyline = function (f, h, v) { this._dehydratedAddPointsCoordinate(f.paths, h, v) }; u._addCoordinatePolygon = function (f, h, v) { this._dehydratedAddPointsCoordinate(f.rings, h, v) };
  7853. u._addCoordinateMultipoint = function (f, h, v) { 0 === v && f.points.push([]); h = this._transformPathLikeValue(h, v); f.points[f.points.length - 1].push(h) }; u._createPolygonGeometry = function (f) { return { rings: [[]], spatialReference: f.spatialReference, hasZ: !!f.hasZ, hasM: !!f.hasM } }; u._createPolylineGeometry = function (f) { return { paths: [[]], spatialReference: f.spatialReference, hasZ: !!f.hasZ, hasM: !!f.hasM } }; u._createMultipointGeometry = function (f) { return { points: [], spatialReference: f.spatialReference, hasZ: !!f.hasZ, hasM: !!f.hasM } };
  7854. u._dehydratedAddPointsCoordinate = function (f, h, v) { 0 === v && 0 === this.toAddInCurrentPath-- && (f.push([]), this.toAddInCurrentPath = this.lengths[++this.currentLengthIndex] - 1, this.previousCoordinate[0] = 0, this.previousCoordinate[1] = 0); h = this._transformPathLikeValue(h, v); f = f[f.length - 1]; 0 === v && (this.coordinateBufferPtr = 0, this.coordinateBuffer = Array(this.vertexDimension), f.push(this.coordinateBuffer)); this.coordinateBuffer[this.coordinateBufferPtr++] = h }; u._deriveApplyTransform = function (f) {
  7855. const { hasZ: h, hasM: v } =
  7856. f; return h && v ? m : h ? q : v ? k : r
  7857. }; return n
  7858. }(); a.JSONFeatureSetParserContext = t; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7859. })
  7860. }, "esri/layers/graphics/featureConversionUtils": function () {
  7861. define("exports ../../core/Error ../../core/Logger ../../core/maybe ../../geometry/support/jsonUtils ./OptimizedFeature ./OptimizedFeatureSet ./OptimizedGeometry".split(" "), function (a, b, c, e, d, l, r, q) {
  7862. function k(Q, V) { return Q ? V ? 4 : 3 : V ? 3 : 2 } function m(Q, V, da, ea) {
  7863. if (Q) {
  7864. if (da) return V &&
  7865. ea ? I : oa; if (V && ea) return ya
  7866. } else if (V && ea) return oa; return W
  7867. } function g({ scale: Q, translate: V }, da) { return Math.round((da - V[0]) / Q[0]) } function p({ scale: Q, translate: V }, da) { return Math.round((V[1] - da) / Q[1]) } function t({ scale: Q, translate: V }, da) { return da * Q[0] + V[0] } function n({ scale: Q, translate: V }, da) { return V[1] - da * Q[1] } function u(Q) { Q = Q.coords; return { x: Q[0], y: Q[1] } } function f(Q, V) { Q.coords[0] = V.x; Q.coords[1] = V.y; return Q } function h(Q) { Q = Q.coords; return { x: Q[0], y: Q[1], z: Q[2] } } function v(Q, V) {
  7868. Q.coords[0] =
  7869. V.x; Q.coords[1] = V.y; Q.coords[2] = V.z; return Q
  7870. } function y(Q) { Q = Q.coords; return { x: Q[0], y: Q[1], m: Q[2] } } function B(Q, V) { Q.coords[0] = V.x; Q.coords[1] = V.y; Q.coords[2] = V.m; return Q } function w(Q) { Q = Q.coords; return { x: Q[0], y: Q[1], z: Q[2], m: Q[3] } } function x(Q, V) { Q.coords[0] = V.x; Q.coords[1] = V.y; Q.coords[2] = V.z; Q.coords[3] = V.m; return Q } function z(Q, V) { return Q && V ? x : Q ? v : V ? B : f } function C(Q, V, da, ea, pa) {
  7871. da = z(da, ea); for (const la of V) {
  7872. const { geometry: L, attributes: R } = la; let X; L && (X = da(new q, L)); Q.push(new l.OptimizedFeature(X,
  7873. R, null, R[pa]))
  7874. } return Q
  7875. } function A(Q, V, da, ea) { for (const pa of V) { const { geometry: la, attributes: L } = pa; let R; la && (R = D(la, da, ea)); Q.push({ attributes: L, geometry: R }) } return Q } function D(Q, V, da) { if (e.isNone(Q)) return null; const ea = k(V, da), pa = []; for (let la = 0; la < Q.coords.length; la += ea) { const L = []; for (let R = 0; R < ea; R++)L.push(Q.coords[la + R]); pa.push(L) } return V ? da ? { points: pa, hasZ: V, hasM: da } : { points: pa, hasZ: V } : da ? { points: pa, hasM: da } : { points: pa } } function F(Q, V, da, ea, pa) {
  7876. da = k(da, ea); for (const la of V) {
  7877. V = la.geometry;
  7878. ea = la.attributes; let L; V && (L = J(new q, V, da)); Q.push(new l.OptimizedFeature(L, ea, null, ea[pa]))
  7879. } return Q
  7880. } function J(Q, V, da = k(V.hasZ, V.hasM)) { Q.lengths[0] = V.points.length; const ea = Q.coords; let pa = 0; for (const la of V.points) for (V = 0; V < da; V++)ea[pa++] = la[V]; return Q } function M(Q, V, da) {
  7881. if (!Q) return null; const ea = k(V, da), { coords: pa, lengths: la } = Q; Q = []; let L = 0; for (const R of la) { const X = []; for (let ta = 0; ta < R; ta++) { const Ca = []; for (let Ha = 0; Ha < ea; Ha++)Ca.push(pa[L++]); X.push(Ca) } Q.push(X) } return V ? da ? {
  7882. paths: Q,
  7883. hasZ: V, hasM: da
  7884. } : { paths: Q, hasZ: V } : da ? { paths: Q, hasM: da } : { paths: Q }
  7885. } function N(Q, V, da, ea, pa) { da = k(da, ea); for (const la of V) { V = la.geometry; ea = la.attributes; let L; V && (L = E(new q, V, da)); Q.push(new l.OptimizedFeature(L, ea, null, ea[pa])) } return Q } function E(Q, V, da = k(V.hasZ, V.hasM)) { const { lengths: ea, coords: pa } = Q; let la = 0; for (const L of V.paths) { for (const R of L) for (V = 0; V < da; V++)pa[la++] = R[V]; ea.push(L.length) } return Q } function G(Q, V, da) {
  7886. if (!Q) return null; const ea = k(V, da), { coords: pa, lengths: la } = Q; Q = []; let L =
  7887. 0; for (const R of la) { const X = []; for (let ta = 0; ta < R; ta++) { const Ca = []; for (let Ha = 0; Ha < ea; Ha++)Ca.push(pa[L++]); X.push(Ca) } Q.push(X) } return V ? da ? { rings: Q, hasZ: V, hasM: da } : { rings: Q, hasZ: V } : da ? { rings: Q, hasM: da } : { rings: Q }
  7888. } function H(Q, V, da, ea, pa) { for (const la of V) { V = la.geometry; const L = la.centroid, R = la.attributes; let X; V && (X = K(new q, V, da, ea)); e.isSome(L) ? Q.push(new l.OptimizedFeature(X, R, f(new q, L), R[pa])) : Q.push(new l.OptimizedFeature(X, R, null, R[pa])) } return Q } function K(Q, V, da = V.hasZ, ea = V.hasM) {
  7889. S(Q, V.rings,
  7890. da, ea); return Q
  7891. } function S(Q, V, da, ea) { da = k(da, ea); const { lengths: pa, coords: la } = Q; ea = 0; pa.length = la.length = 0; for (const L of V) { for (const R of L) for (V = 0; V < da; V++)la[ea++] = R[V]; pa.push(L.length) } return Q } function fa(Q, V, da, ea, pa, la) {
  7892. Q.length = 0; if (!da) { for (const L of V) Q.push(new l.OptimizedFeature(null, L.attributes, null, L.attributes[la])); return Q } switch (da) {
  7893. case "esriGeometryPoint": return C(Q, V, ea, pa, la); case "esriGeometryMultipoint": return F(Q, V, ea, pa, la); case "esriGeometryPolyline": return N(Q, V, ea,
  7894. pa, la); case "esriGeometryPolygon": return H(Q, V, ea, pa, la); default: Ka.error("convertToFeatureSet:unknown-geometry", new b(`Unable to parse unknown geometry type '${da}'`)), Q.length = 0
  7895. }return Q
  7896. } function ha(Q, V, da, ea) {
  7897. Q = Q && ("coords" in Q ? Q : Q.geometry); if (e.isNone(Q)) return null; switch (V) {
  7898. case "esriGeometryPoint": return V = u, da && ea ? V = w : da ? V = h : ea && (V = y), V(Q); case "esriGeometryMultipoint": return D(Q, da, ea); case "esriGeometryPolyline": return M(Q, da, ea); case "esriGeometryPolygon": return G(Q, da, ea); default: Ka.error("convertToGeometry:unknown-geometry",
  7899. new b(`Unable to parse unknown geometry type '${V}'`))
  7900. }
  7901. } function ba(Q, V, da, ea, pa) {
  7902. Q.length = 0; if (e.isNone(da)) { for (const R of V) Q.push({ attributes: R.attributes }); return Q } switch (da) {
  7903. case "esriGeometryPoint": var la = u; ea && pa ? la = w : ea ? la = h : pa && (la = y); for (var L of V) { const { geometry: R, attributes: X } = L; ea = e.isSome(R) ? la(R) : null; Q.push({ attributes: X, geometry: ea }) } break; case "esriGeometryMultipoint": return A(Q, V, ea, pa); case "esriGeometryPolyline": for (const R of V) {
  7904. const { geometry: X, attributes: ta } = R; let Ca;
  7905. e.isSome(X) && (Ca = M(X, ea, pa)); Q.push({ attributes: ta, geometry: Ca })
  7906. } break; case "esriGeometryPolygon": for (la of V) { const { geometry: R, attributes: X, centroid: ta } = la; let Ca; e.isSome(R) && (Ca = G(R, ea, pa)); e.isSome(ta) ? (L = u(ta), Q.push({ attributes: X, centroid: L, geometry: Ca })) : Q.push({ attributes: X, geometry: Ca }) } break; default: Ka.error("convertToFeatureSet:unknown-geometry", new b(`Unable to parse unknown geometry type '${da}'`))
  7907. }return Q
  7908. } function O(Q, V, da, ea, pa, la, L = da, R = ea) {
  7909. Q.lengths.length && (Q.lengths.length = 0);
  7910. Q.coords.length && (Q.coords.length = 0); if (e.isNone(V) || !V.coords.length) return null; pa = sa[pa]; const { coords: X, lengths: ta } = V; V = k(da, ea); const Ca = k(da && L, ea && R); da = m(da, ea, L, R); if (!ta.length) return da(Q.coords, X, 0, 0, g(la, X[0]), p(la, X[1])), Q.lengths.length && (Q.lengths.length = 0), Q.coords.length = V, Q; let Ha, Ra = 0, Ua, Xa = 0; for (const ja of ta) {
  7911. if (ja < pa) continue; let wa = 0; Ua = Xa; R = ea = g(la, X[Ra]); Ha = L = p(la, X[Ra + 1]); da(Q.coords, X, Ua, Ra, R, Ha); wa++; Ra += V; Ua += Ca; for (let za = 1; za < ja; za++, Ra += V)if (R = g(la, X[Ra]), Ha = p(la,
  7912. X[Ra + 1]), R !== ea || Ha !== L) da(Q.coords, X, Ua, Ra, R - ea, Ha - L), Ua += Ca, wa++, ea = R, L = Ha; wa >= pa && (Q.lengths.push(wa), Xa = Ua)
  7913. } Q.coords.length = Xa; return Q.coords.length ? Q : null
  7914. } function na(Q, V, da, ea, pa, la, L) {
  7915. let R = ea, X = 0; for (let Ca = la + da; Ca < L; Ca += da) { { var ta = V[Ca]; const Ha = V[Ca + 1], Ra = V[L], Ua = V[L + 1]; let Xa = V[la], ja = V[la + 1], wa = Ra - Xa, za = Ua - ja; if (0 !== wa || 0 !== za) { const Ga = ((ta - Xa) * wa + (Ha - ja) * za) / (wa * wa + za * za); 1 < Ga ? (Xa = Ra, ja = Ua) : 0 < Ga && (Xa += wa * Ga, ja += za * Ga) } wa = ta - Xa; za = Ha - ja; ta = wa * wa + za * za } ta > R && (X = Ca, R = ta) } R > ea && (X - la >
  7916. da && na(Q, V, da, ea, pa, la, X), pa(Q, V, Q.length, X, V[X], V[X + 1]), L - X > da && na(Q, V, da, ea, pa, X, L))
  7917. } function ra(Q, V, da, ea, pa) {
  7918. const { coords: la, lengths: L } = V, R = da ? ea ? I : oa : ea ? oa : W; da = k(da, ea); if (!la.length) return Q !== V && (Q.lengths.length = 0, Q.coords.length = 0), Q; if (!L.length) return R(Q.coords, la, 0, 0, t(pa, la[0]), n(pa, la[1])), Q !== V && (Q.lengths.length = 0, Q.coords.length = da), Q; const [X, ta] = pa.scale; ea = 0; for (let Ca = 0; Ca < L.length; Ca++) {
  7919. const Ha = L[Ca]; Q.lengths[Ca] = Ha; let Ra = t(pa, la[ea]), Ua = n(pa, la[ea + 1]); R(Q.coords, la, ea,
  7920. ea, Ra, Ua); ea += da; for (let Xa = 1; Xa < Ha; Xa++, ea += da)Ra += la[ea] * X, Ua -= la[ea + 1] * ta, R(Q.coords, la, ea, ea, Ra, Ua)
  7921. } Q !== V && (Q.lengths.length = L.length, Q.coords.length = la.length); return Q
  7922. } function Da(Q, V, da, ea) { let pa = 0, la = Q[ea * V], L = Q[ea * (V + 1)]; for (let R = 1; R < da; R++) { const X = la + Q[ea * (V + R)], ta = L + Q[ea * (V + R) + 1], Ca = (X - la) * (ta + L); la = X; L = ta; pa += Ca } return .5 * pa } const Ka = c.getLogger("esri.layers.graphics.featureConversionUtils"), sa = { esriGeometryPoint: 0, esriGeometryPolyline: 2, esriGeometryPolygon: 3, esriGeometryMultipoint: 0 },
  7923. W = (Q, V, da, ea, pa, la) => { Q[da] = pa; Q[da + 1] = la }, oa = (Q, V, da, ea, pa, la) => { Q[da] = pa; Q[da + 1] = la; Q[da + 2] = V[ea + 2] }, ya = (Q, V, da, ea, pa, la) => { Q[da] = pa; Q[da + 1] = la; Q[da + 2] = V[ea + 3] }, I = (Q, V, da, ea, pa, la) => { Q[da] = pa; Q[da + 1] = la; Q[da + 2] = V[ea + 2]; Q[da + 3] = V[ea + 3] }, P = [], Z = []; a.convertFromFeature = function (Q, V, da, ea, pa) { P[0] = Q;[Q] = fa(Z, P, V, da, ea, pa); P.length = Z.length = 0; return Q }; a.convertFromFeatureSet = function (Q, V) {
  7924. const da = new r, { hasM: ea, hasZ: pa, features: la, objectIdFieldName: L, spatialReference: R, geometryType: X, exceededTransferLimit: ta,
  7925. transform: Ca, fields: Ha } = Q; Ha && (da.fields = Ha); da.geometryType = X; da.objectIdFieldName = L || V; da.spatialReference = R; if (!da.objectIdFieldName) return Ka.error(new b("optimized-features:invalid-objectIdFieldName", "objectIdFieldName is missing")), da; la && fa(da.features, la, X, pa, ea, da.objectIdFieldName); ta && (da.exceededTransferLimit = ta); ea && (da.hasM = ea); pa && (da.hasZ = pa); Ca && (da.transform = Ca); return da
  7926. }; a.convertFromFeatures = fa; a.convertFromGeometry = function (Q, V, da) {
  7927. if (e.isNone(Q)) return null; const ea = new q; "hasZ" in
  7928. Q && null == V && (V = Q.hasZ); "hasM" in Q && null == da && (da = Q.hasM); if (d.isPoint(Q)) return z(null != V ? V : null != Q.z, null != da ? da : null != Q.m)(ea, Q); if (d.isPolygon(Q)) return K(ea, Q, V, da); if (d.isPolyline(Q)) return E(ea, Q, k(V, da)); if (d.isMultipoint(Q)) return J(ea, Q, k(V, da)); Ka.error("convertFromGeometry:unknown-geometry", new b(`Unable to parse unknown geometry type '${Q}'`))
  7929. }; a.convertFromGraphics = function (Q, V, da, ea, pa, la) {
  7930. const L = Q.length; switch (da) {
  7931. case "esriGeometryPoint": C(Q, V, ea, pa, la); break; case "esriGeometryMultipoint": F(Q,
  7932. V, ea, pa, la); break; case "esriGeometryPolyline": N(Q, V, ea, pa, la); break; case "esriGeometryPolygon": H(Q, V, ea, pa, la); break; default: Ka.error("convertToFeatureSet:unknown-geometry", new b(`Unable to parse unknown geometry type '${da}'`))
  7933. }for (ea = 0; ea < V.length; ea++)Q[ea + L].geometryType = da, Q[ea + L].insertAfter = V[ea].insertAfter, Q[ea + L].groupId = V[ea].groupId; return Q
  7934. }; a.convertFromMultipoint = J; a.convertFromMultipointFeatures = F; a.convertFromNestedArray = S; a.convertFromPoint = function (Q, V, da = z(null != V.z, null != V.m)) {
  7935. return da(Q,
  7936. V)
  7937. }; a.convertFromPointFeatures = C; a.convertFromPolygon = K; a.convertFromPolyline = E; a.convertFromPolylineFeatures = N; a.convertToFeature = function (Q, V, da, ea) { Z[0] = Q; ba(P, Z, V, da, ea); Q = P[0]; P.length = Z.length = 0; return Q }; a.convertToFeatureSet = function (Q) {
  7938. const { objectIdFieldName: V, spatialReference: da, transform: ea, fields: pa, hasM: la, hasZ: L, features: R, geometryType: X, exceededTransferLimit: ta, uniqueIdField: Ca, queryGeometry: Ha, queryGeometryType: Ra } = Q; Q = ba([], R, X, L, la); const Ua = ha(Ha, Ra, !1, !1); Q = {
  7939. features: Q, fields: pa,
  7940. geometryType: X, objectIdFieldName: V, spatialReference: da, uniqueIdField: Ca, queryGeometry: Ua
  7941. }; ea && (Q.transform = ea); ta && (Q.exceededTransferLimit = ta); la && (Q.hasM = la); L && (Q.hasZ = L); return Q
  7942. }; a.convertToFeatures = ba; a.convertToGeometry = ha; a.convertToMultipoint = D; a.convertToMultipointFeatures = A; a.convertToPoint = function (Q, V, da) { return Q ? V ? da ? w(Q) : h(Q) : da ? y(Q) : u(Q) : null }; a.convertToPolygon = G; a.convertToPolyline = M; a.deltaDecodeGeometry = function (Q, V) {
  7943. if (e.isNone(Q)) return null; const da = Q.clone(), ea = Q.coords; Q =
  7944. Q.lengths; let pa = 0; for (let R = 0; R < Q.length; R++) { const X = Q[R]; var la = ea[V * pa], L = ea[V * pa + 1]; for (let ta = 1; ta < X; ta++)la += ea[V * (pa + ta)], L += ea[V * (pa + ta) + 1], da.coords[V * (pa + ta)] = la, da.coords[V * (pa + ta) + 1] = L; pa += X } return da
  7945. }; a.deltaEncodeGeometry = function (Q, V) {
  7946. const da = Q.clone(), ea = Q.coords; Q = Q.lengths; let pa = 0; for (let L = 0; L < Q.length; L++) {
  7947. const R = Q[L]; let X = ea[V * pa]; var la = ea[V * pa + 1]; for (let ta = 1; ta < R; ta++) {
  7948. const Ca = ea[V * (pa + ta)], Ha = ea[V * (pa + ta) + 1]; la = Ha - la; da.coords[V * (pa + ta)] = Ca - X; da.coords[V * (pa + ta) + 1] =
  7949. la; X = Ca; la = Ha
  7950. } pa += R
  7951. } return da
  7952. }; a.generalizeOptimizedGeometry = function (Q, V, da, ea, pa, la, L = da, R = ea) {
  7953. Q.lengths.length && (Q.lengths.length = 0); Q.coords.length && (Q.coords.length = 0); if (!V || !V.coords.length) return null; pa = sa[pa]; const { coords: X, lengths: ta } = V; V = k(da, ea); const Ca = k(da && L, ea && R); da = m(da, ea, L, R); if (!ta.length) return da(Q.coords, X, 0, 0, X[0], X[1]), Q.lengths.length && (Q.lengths.length = 0), Q.coords.length = V, Q; ea = 0; la *= la; for (const Ha of ta) {
  7954. if (Ha < pa) { ea += Ha * V; continue } L = Q.coords.length / Ca; R = ea; const Ra =
  7955. ea + (Ha - 1) * V; da(Q.coords, X, Q.coords.length, R, X[R], X[R + 1]); na(Q.coords, X, V, la, da, R, Ra); da(Q.coords, X, Q.coords.length, Ra, X[Ra], X[Ra + 1]); R = Q.coords.length / Ca - L; R >= pa ? Q.lengths.push(R) : Q.coords.length = L * Ca; ea += Ha * V
  7956. } return Q.coords.length ? Q : null
  7957. }; a.getBoundsOptimizedGeometry = function (Q, V, da, ea) {
  7958. if (e.isNone(V) || !V.coords || !V.coords.length) return null; da = k(da, ea); let pa = ea = Number.POSITIVE_INFINITY, la = Number.NEGATIVE_INFINITY, L = Number.NEGATIVE_INFINITY; if (V && V.coords) {
  7959. V = V.coords; for (let R = 0; R < V.length; R +=
  7960. da) { const X = V[R], ta = V[R + 1]; ea = Math.min(ea, X); la = Math.max(la, X); pa = Math.min(pa, ta); L = Math.max(L, ta) }
  7961. } Q[0] = ea; Q[1] = pa; Q[2] = la; Q[3] = L; return Q
  7962. }; a.getQuantizedArea = function (Q, V) { const { coords: da, lengths: ea } = Q; let pa = Q = 0; for (let la = 0; la < ea.length; la++)pa += Da(da, Q, ea[la], V), Q += la; return Math.abs(pa) }; a.getQuantizedBoundsOptimizedGeometry = function (Q, V, da, ea) {
  7963. da = k(da, ea); const { lengths: pa, coords: la } = V; ea = V = Number.POSITIVE_INFINITY; let L = Number.NEGATIVE_INFINITY, R = Number.NEGATIVE_INFINITY, X = 0; for (const ta of pa) {
  7964. let Ca =
  7965. la[X], Ha = la[X + 1]; V = Math.min(Ca, V); ea = Math.min(Ha, ea); L = Math.max(Ca, L); R = Math.max(Ha, R); X += da; for (let Ra = 1; Ra < ta; Ra++, X += da) { const Ua = la[X], Xa = la[X + 1]; Ca += Ua; Ha += Xa; 0 > Ua && (V = Math.min(V, Ca)); 0 < Ua && (L = Math.max(L, Ca)); 0 > Xa ? ea = Math.min(ea, Ha) : 0 < Xa && (R = Math.max(R, Ha)) }
  7966. } Q[0] = V; Q[1] = ea; Q[2] = L; Q[3] = R; return Q
  7967. }; a.getSignedQuantizedRingArea = Da; a.quantizeOptimizedFeatureSet = function (Q, V) {
  7968. const { geometryType: da, features: ea, hasM: pa, hasZ: la } = V; if (!Q) return V; for (let L = 0; L < ea.length; L++) {
  7969. const R = ea[L], X = R.weakClone();
  7970. X.geometry = new q; O(X.geometry, R.geometry, pa, la, da, Q); R.centroid && (X.centroid = new q, O(X.centroid, R.centroid, pa, la, "esriGeometryPoint", Q)); ea[L] = X
  7971. } V.transform = Q; return V
  7972. }; a.quantizeOptimizedGeometry = O; a.quantizeX = g; a.quantizeY = p; a.removeCollinearVectices = function (Q, V, da, ea, pa) {
  7973. if (!V || !V.coords || !V.coords.length) return null; da = sa[da]; const { coords: la, lengths: L } = V; V = m(ea, pa, ea, pa); ea = k(ea, pa); let R = pa = 0, X = 0, ta = 0; for (const Ra of L) {
  7974. R = ta; V(Q.coords, la, R, pa, la[pa], la[pa + 1]); pa += ea; var Ca = la[pa]; let Ua = la[pa +
  7975. 1], Xa = Ca, ja = Ua; var Ha = Ua / Ca; R += ea; V(Q.coords, la, R, pa, Xa, ja); pa += ea; for (let wa = 2; wa < Ra; wa++) { Ca = la[pa]; Ua = la[pa + 1]; const za = Ua / Ca, Ga = Ha === za || !isFinite(Ha) && !isFinite(za); Ha = Ga && isFinite(za) ? 0 <= Ha && 0 <= za || 0 >= Ha && 0 >= za : 0 <= ja && 0 <= Ua || 0 >= ja && 0 >= Ua; Ga && Ha ? (Xa += Ca, ja += Ua) : (Xa = Ca, ja = Ua, R += ea); V(Q.coords, la, R, pa, Xa, ja); pa += ea; Ha = za } R += ea; Ca = (R - ta) / ea; Ca >= da && (Q.lengths[X] = Ca, ta = R, X++)
  7976. } Q.coords.length > ta && (Q.coords.length = ta); Q.lengths.length > X && (Q.lengths.length = X); return Q.coords.length && Q.lengths.length ?
  7977. Q : null
  7978. }; a.removeZMValues = function (Q, V, da, ea, pa, la) { const L = k(da, ea); da = m(da, ea, pa, la); ea = V.coords; Q.coords.length = 0; Q.lengths.length = 0; Q.lengths.push(...V.lengths); for (V = 0; V < ea.length; V += L)da(Q.coords, ea, Q.coords.length, V, ea[V], ea[V + 1]); return Q }; a.unquantizeOptimizedFeatureSet = function (Q) {
  7979. const { transform: V, features: da, hasM: ea, hasZ: pa } = Q; if (!V) return Q; for (const la of da) e.isSome(la.geometry) && ra(la.geometry, la.geometry, ea, pa, V), e.isSome(la.centroid) && ra(la.centroid, la.centroid, ea, pa, V); Q.transform =
  7980. null; return Q
  7981. }; a.unquantizeOptimizedGeometry = ra; a.unquantizeX = t; a.unquantizeY = n; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7982. })
  7983. }, "esri/rest/query/executeAttachmentQuery": function () {
  7984. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../utils", "./operations/queryAttachments", "../support/AttachmentQuery"], function (a, b, c, e, d) {
  7985. function l() {
  7986. l = b._asyncToGenerator(function* (r, q, k) {
  7987. const m = c.parseUrl(r); return e.executeAttachmentQuery(m, d.from(q), { ...k }).then(g =>
  7988. e.processAttachmentQueryResult(g.data.attachmentGroups, m.path))
  7989. }); return l.apply(this, arguments)
  7990. } a.executeAttachmentQuery = function (r, q, k) { return l.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  7991. })
  7992. }, "esri/rest/query/operations/queryAttachments": function () {
  7993. define("exports ../../../kernel ../../../request ../../../core/urlUtils ../../operations/urlUtils ../support/AttachmentInfo".split(" "), function (a, b, c, e, d, l) {
  7994. function r(q) {
  7995. q = q.toJSON();
  7996. q.attachmentTypes && (q.attachmentTypes = q.attachmentTypes.join(",")); q.keywords && (q.keywords = q.keywords.join(",")); q.globalIds && (q.globalIds = q.globalIds.join(",")); q.objectIds && (q.objectIds = q.objectIds.join(",")); q.size && (q.size = q.size.join(",")); return q
  7997. } a.executeAttachmentQuery = function (q, k, m) { k = { query: d.mapParameters({ ...q.query, f: "json", ...r(k) }) }; m && (k = { ...m, ...k, query: { ...m.query, ...k.query } }); return c(q.path + "/queryAttachments", k) }; a.processAttachmentQueryResult = function (q, k) {
  7998. const m = {}; for (const g of q) {
  7999. const { parentObjectId: p,
  8000. parentGlobalId: t, attachmentInfos: n } = g; for (const u of n) { ({ id: q } = u); q = e.addProxy(b.addTokenParameter(`${k}/${p}/attachments/${q}`)); const f = l.fromJSON(u); f.set({ url: q, parentObjectId: p, parentGlobalId: t }); m[p] ? m[p].push(f) : m[p] = [f] }
  8001. } return m
  8002. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8003. })
  8004. }, "esri/rest/query/support/AttachmentInfo": function () {
  8005. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../../layers/support/exifUtils".split(" "),
  8006. function (a, b, c, e, d, l, r, q, k) {
  8007. var m; const g = { 1: { id: 1, rotation: 0, mirrored: !1 }, 2: { id: 2, rotation: 0, mirrored: !0 }, 3: { id: 3, rotation: 180, mirrored: !1 }, 4: { id: 4, rotation: 180, mirrored: !0 }, 5: { id: 5, rotation: -90, mirrored: !0 }, 6: { id: 6, rotation: 90, mirrored: !1 }, 7: { id: 7, rotation: 90, mirrored: !0 }, 8: { id: 8, rotation: -90, mirrored: !1 } }; c = m = function (p) {
  8008. function t(n) {
  8009. n = p.call(this, n) || this; n.contentType = null; n.exifInfo = null; n.id = null; n.globalId = null; n.keywords = null; n.name = null; n.parentGlobalId = null; n.parentObjectId = null; n.size =
  8010. null; n.url = null; return n
  8011. } a._inheritsLoose(t, p); t.prototype.clone = function () { return new m({ contentType: this.contentType, exifInfo: this.exifInfo, id: this.id, globalId: this.globalId, keywords: this.keywords, name: this.name, parentGlobalId: this.parentGlobalId, parentObjectId: this.parentObjectId, size: this.size, url: this.url }) }; a._createClass(t, [{ key: "orientationInfo", get: function () { var { exifInfo: n } = this; n = k.getExifValue({ exifName: "Exif IFD0", tagName: "Orientation", exifInfo: n }); return g[n] || null } }]); return t
  8012. }(c.JSONSupport);
  8013. b.__decorate([e.property({ type: String })], c.prototype, "contentType", void 0); b.__decorate([e.property()], c.prototype, "exifInfo", void 0); b.__decorate([e.property({ readOnly: !0 })], c.prototype, "orientationInfo", null); b.__decorate([e.property({ type: r.Integer })], c.prototype, "id", void 0); b.__decorate([e.property({ type: String })], c.prototype, "globalId", void 0); b.__decorate([e.property({ type: String })], c.prototype, "keywords", void 0); b.__decorate([e.property({ type: String })], c.prototype, "name", void 0); b.__decorate([e.property({ json: { read: !1 } })],
  8014. c.prototype, "parentGlobalId", void 0); b.__decorate([e.property({ json: { read: !1 } })], c.prototype, "parentObjectId", void 0); b.__decorate([e.property({ type: r.Integer })], c.prototype, "size", void 0); b.__decorate([e.property({ json: { read: !1 } })], c.prototype, "url", void 0); return c = m = b.__decorate([q.subclass("esri.layers.support.AttachmentInfo")], c)
  8015. })
  8016. }, "esri/layers/support/exifUtils": function () {
  8017. define(["exports"], function (a) {
  8018. function b(c) {
  8019. const { tagName: e, tags: d } = c; return d && e ? (c = d.find(l => l.name === e)) && c.value ||
  8020. null : null
  8021. } a.getExifValue = function (c) { const { exifInfo: e, exifName: d, tagName: l } = c; return e && d && l ? (c = e.find(r => r.name === d)) ? b({ tagName: l, tags: c.tags }) : null : null }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8022. })
  8023. }, "esri/rest/query/executeForCount": function () {
  8024. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../utils", "./operations/query", "../support/Query"], function (a, b, c, e, d) {
  8025. function l() {
  8026. l = b._asyncToGenerator(function* (r, q, k) {
  8027. r = c.parseUrl(r); return e.executeQueryForCount(r,
  8028. d.from(q), { ...k }).then(m => m.data.count)
  8029. }); return l.apply(this, arguments)
  8030. } a.executeForCount = function (r, q, k) { return l.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8031. })
  8032. }, "esri/rest/query/executeForExtent": function () {
  8033. define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../utils ./operations/query ../support/Query ../../geometry/Extent".split(" "), function (a, b, c, e, d, l, r) {
  8034. function q() {
  8035. q = b._asyncToGenerator(function* (k, m, g) {
  8036. k =
  8037. e.parseUrl(k); return d.executeQueryForExtent(k, l.from(m), { ...g }).then(p => ({ count: p.data.count, extent: r.fromJSON(p.data.extent) }))
  8038. }); return q.apply(this, arguments)
  8039. } a.executeForExtent = function (k, m, g) { return q.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8040. })
  8041. }, "esri/rest/query/executeForIds": function () {
  8042. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../utils", "./operations/query", "../support/Query"], function (a, b, c, e, d) {
  8043. function l() {
  8044. l =
  8045. b._asyncToGenerator(function* (r, q, k) { r = c.parseUrl(r); return e.executeQueryForIds(r, d.from(q), { ...k }).then(m => m.data.objectIds) }); return l.apply(this, arguments)
  8046. } a.executeForIds = function (r, q, k) { return l.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8047. })
  8048. }, "esri/rest/query/executeRelationshipQuery": function () {
  8049. define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/queryRelatedRecords ../support/FeatureSet ../support/RelationshipQuery".split(" "),
  8050. function (a, b, c, e, d, l) {
  8051. function r() { r = b._asyncToGenerator(function* (k, m, g) { m = l.from(m); k = c.parseUrl(k); return e.executeRelationshipQuery(k, m, g).then(p => { const t = p.data, n = {}; Object.keys(t).forEach(u => n[u] = d.fromJSON(t[u])); return n }) }); return r.apply(this, arguments) } function q() { q = b._asyncToGenerator(function* (k, m, g) { m = l.from(m); k = c.parseUrl(k); return e.executeRelationshipQueryForCount(k, m, { ...g }).then(p => p.data) }); return q.apply(this, arguments) } a.executeRelationshipQuery = function (k, m, g) {
  8052. return r.apply(this,
  8053. arguments)
  8054. }; a.executeRelationshipQueryForCount = function (k, m, g) { return q.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8055. })
  8056. }, "esri/rest/query/operations/queryRelatedRecords": function () {
  8057. define(["exports", "../../../chunks/_rollupPluginBabelHelpers", "../../../request", "../../operations/urlUtils"], function (a, b, c, e) {
  8058. function d(m, g) {
  8059. m = m.toJSON(); m.objectIds && (m.objectIds = m.objectIds.join(",")); m.orderByFields && (m.orderByFields = m.orderByFields.join(","));
  8060. !m.outFields || null != g && g.returnCountOnly ? delete m.outFields : m.outFields.includes("*") ? m.outFields = "*" : m.outFields = m.outFields.join(","); m.outSpatialReference && (m.outSR = m.outSR.wkid || JSON.stringify(m.outSR.toJSON()), delete m.outSpatialReference); m.dynamicDataSource && (m.layer = JSON.stringify({ source: m.dynamicDataSource }), delete m.dynamicDataSource); return m
  8061. } function l() {
  8062. l = b._asyncToGenerator(function* (m, g, p) {
  8063. m = yield q(m, g, p); g = m.data; p = g.geometryType; const t = g.spatialReference, n = {}; for (const u of g.relatedRecordGroups) {
  8064. const f =
  8065. { fields: void 0, objectIdFieldName: void 0, geometryType: p, spatialReference: t, hasZ: !!g.hasZ, hasM: !!g.hasM, features: u.relatedRecords }; if (null != u.objectId) n[u.objectId] = f; else for (const h in u) u.hasOwnProperty(h) && "relatedRecords" !== h && (n[u[h]] = f)
  8066. } return { ...m, data: n }
  8067. }); return l.apply(this, arguments)
  8068. } function r() {
  8069. r = b._asyncToGenerator(function* (m, g, p) { m = yield q(m, g, p, { returnCountOnly: !0 }); g = m.data; p = {}; for (const t of g.relatedRecordGroups) null != t.objectId && (p[t.objectId] = t.count); return { ...m, data: p } }); return r.apply(this,
  8070. arguments)
  8071. } function q(m, g) { return k.apply(this, arguments) } function k() { k = b._asyncToGenerator(function* (m, g, p = {}, t) { g = e.mapParameters({ ...m.query, f: "json", ...t, ...d(g, t) }); return c(m.path + "/queryRelatedRecords", { ...p, query: { ...p.query, ...g } }) }); return k.apply(this, arguments) } a.executeRelationshipQuery = function (m, g, p) { return l.apply(this, arguments) }; a.executeRelationshipQueryForCount = function (m, g, p) { return r.apply(this, arguments) }; a.toQueryStringParameters = d; Object.defineProperties(a, {
  8072. __esModule: { value: !0 },
  8073. [Symbol.toStringTag]: { value: "Module" }
  8074. })
  8075. })
  8076. }, "esri/rest/query/executeTopFeaturesQuery": function () {
  8077. define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/queryTopFeatures ../support/FeatureSet ../support/TopFeaturesQuery".split(" "), function (a, b, c, e, d, l) {
  8078. function r() { r = b._asyncToGenerator(function* (q, k, m, g) { q = c.parseUrl(q); g = { ...g }; ({ data: k } = yield e.executeTopFeaturesQuery(q, l.from(k), m, g)); return d.fromJSON(k) }); return r.apply(this, arguments) } a.executeTopFeaturesQuery = function (q,
  8079. k, m, g) { return r.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8080. })
  8081. }, "esri/rest/query/operations/queryTopFeatures": function () {
  8082. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../request ../../../core/maybe ../../../core/urlUtils ../../../geometry/support/jsonUtils ../../../geometry/support/normalizeUtils ../../operations/urlUtils ./queryZScale".split(" "), function (a, b, c, e, d, l, r, q, k) {
  8083. function m(u, f) {
  8084. var h, v; const y = u.geometry;
  8085. u = u.toJSON(); e.isSome(y) && (u.geometry = JSON.stringify(y), u.geometryType = l.getJsonType(y), u.inSR = y.spatialReference.wkid || JSON.stringify(y.spatialReference)); null != (h = u.topFilter) && h.groupByFields && (u.topFilter.groupByFields = u.topFilter.groupByFields.join(",")); null != (v = u.topFilter) && v.orderByFields && (u.topFilter.orderByFields = u.topFilter.orderByFields.join(",")); u.topFilter && (u.topFilter = JSON.stringify(u.topFilter)); u.objectIds && (u.objectIds = u.objectIds.join(",")); u.orderByFields && (u.orderByFields =
  8086. u.orderByFields.join(",")); !u.outFields || null != f && f.returnCountOnly || null != f && f.returnExtentOnly || null != f && f.returnIdsOnly ? delete u.outFields : u.outFields.includes("*") ? u.outFields = "*" : u.outFields = u.outFields.join(","); u.outSR ? u.outSR = u.outSR.wkid || JSON.stringify(u.outSR) : y && u.returnGeometry && (u.outSR = u.inSR); u.returnGeometry && delete u.returnGeometry; if (u.timeExtent) { const { start: B, end: w } = u.timeExtent; if (null != B || null != w) u.time = B === w ? B : `${null == B ? "null" : B},${null == w ? "null" : w}`; delete u.timeExtent } return u
  8087. }
  8088. function g() { g = b._asyncToGenerator(function* (u, f, h, v) { u = yield n(u, f, "json", v); k.applyFeatureSetZUnitScaling(f, h, u.data); return u }); return g.apply(this, arguments) } function p() { p = b._asyncToGenerator(function* (u, f, h) { return e.isSome(f.timeExtent) && f.timeExtent.isEmpty ? { data: { objectIds: [] } } : n(u, f, "json", h, { returnIdsOnly: !0 }) }); return p.apply(this, arguments) } function t() {
  8089. t = b._asyncToGenerator(function* (u, f, h) {
  8090. return e.isSome(f.timeExtent) && f.timeExtent.isEmpty ? { data: { count: 0, extent: null } } : n(u, f, "json",
  8091. h, { returnExtentOnly: !0, returnCountOnly: !0 }).then(v => { const y = v.data; if (y.hasOwnProperty("extent")) return v; if (y.features) throw Error("Layer does not support extent calculation."); if (y.hasOwnProperty("count")) throw Error("Layer does not support extent calculation."); return v })
  8092. }); return t.apply(this, arguments)
  8093. } function n(u, f, h, v = {}, y = {}) {
  8094. const B = "string" === typeof u ? d.urlToObject(u) : u; u = f.geometry ? [f.geometry] : []; v.responseType = "pbf" === h ? "array-buffer" : "json"; return r.normalizeCentralMeridian(u, null,
  8095. v).then(w => { w = w && w[0]; e.isSome(w) && (f = f.clone(), f.geometry = w); w = q.mapParameters({ ...B.query, f: h, ...y, ...m(f, y) }); return c(d.join(B.path, "queryTopFeatures"), { ...v, query: { ...w, ...v.query } }) })
  8096. } a.executeQueryForTopCount = function (u, f, h) { return e.isSome(f.timeExtent) && f.timeExtent.isEmpty ? Promise.resolve({ data: { count: 0 } }) : n(u, f, "json", h, { returnIdsOnly: !0, returnCountOnly: !0 }) }; a.executeQueryForTopExtents = function (u, f, h) { return t.apply(this, arguments) }; a.executeQueryForTopIds = function (u, f, h) {
  8097. return p.apply(this,
  8098. arguments)
  8099. }; a.executeTopFeaturesQuery = function (u, f, h, v) { return g.apply(this, arguments) }; a.queryToQueryStringParameters = m; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8100. })
  8101. }, "esri/rest/query/executeForTopIds": function () {
  8102. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../utils", "./operations/queryTopFeatures", "../support/TopFeaturesQuery"], function (a, b, c, e, d) {
  8103. function l() {
  8104. l = b._asyncToGenerator(function* (r, q, k) {
  8105. r = c.parseUrl(r); return (yield e.executeQueryForTopIds(r,
  8106. d.from(q), { ...k })).data.objectIds
  8107. }); return l.apply(this, arguments)
  8108. } a.executeForTopIds = function (r, q, k) { return l.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8109. })
  8110. }, "esri/rest/query/executeForTopExtents": function () {
  8111. define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../utils ./operations/queryTopFeatures ../support/TopFeaturesQuery ../../geometry/Extent".split(" "), function (a, b, c, e, d, l, r) {
  8112. function q() {
  8113. q = b._asyncToGenerator(function* (k,
  8114. m, g) { k = e.parseUrl(k); m = yield d.executeQueryForTopExtents(k, l.from(m), { ...g }); return { count: m.data.count, extent: r.fromJSON(m.data.extent) } }); return q.apply(this, arguments)
  8115. } a.executeForTopExtents = function (k, m, g) { return q.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8116. })
  8117. }, "esri/rest/query/executeForTopCount": function () {
  8118. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../utils", "./operations/queryTopFeatures", "../support/TopFeaturesQuery"],
  8119. function (a, b, c, e, d) { function l() { l = b._asyncToGenerator(function* (r, q, k) { r = c.parseUrl(r); return (yield e.executeQueryForTopCount(r, d.from(q), { ...k })).data.count }); return l.apply(this, arguments) } a.executeForTopCount = function (r, q, k) { return l.apply(this, arguments) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) })
  8120. }, "esri/tasks/Task": function () {
  8121. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/urlUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  8122. function (a, b, c, e, d, l, r, q, k) {
  8123. c = function (m) {
  8124. function g(...t) { t = m.call(this, ...t) || this; t.requestOptions = null; t.url = null; return t } a._inheritsLoose(g, m); var p = g.prototype; p.normalizeCtorArgs = function (t, n) { return "string" !== typeof t ? t : { url: t, ...n } }; p._parseUrl = function (t) { return t ? e.urlToObject(t) : null }; p._encode = function (t, n, u) {
  8125. const f = {}; for (const v in t) if ("declaredClass" !== v) {
  8126. var h = t[v]; if (null != h && "function" !== typeof h) if (Array.isArray(h)) { f[v] = []; for (let y = 0; y < h.length; y++)f[v][y] = this._encode(h[y]) } else "object" ===
  8127. typeof h ? h.toJSON ? (h = h.toJSON(u && u[v]), f[v] = n ? h : JSON.stringify(h)) : f[v] = n ? h : JSON.stringify(h) : f[v] = h
  8128. } return f
  8129. }; a._createClass(g, [{ key: "parsedUrl", get: function () { return this._parseUrl(this.url) } }]); return g
  8130. }(c); b.__decorate([d.property({ readOnly: !0 })], c.prototype, "parsedUrl", null); b.__decorate([d.property()], c.prototype, "requestOptions", void 0); b.__decorate([d.property({ type: String })], c.prototype, "url", void 0); return c = b.__decorate([k.subclass("esri.tasks.Task")], c)
  8131. })
  8132. }, "esri/views/View": function () {
  8133. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Map ../TimeExtent ../core/Accessor ../core/Collection ../core/CollectionFlattener ../core/Error ../core/Evented ../core/HandleOwner ../core/handleUtils ../core/Loadable ../core/Logger ../core/maybe ../core/Promise ../core/promiseUtils ../core/reactiveUtils ../core/accessorSupport/decorators/aliasOf ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ../core/support/OwningCollection ../geometry/Extent ../geometry/HeightModelInfo ../geometry/SpatialReference ../geometry/support/spatialReferenceUtils ../support/AnalysesCollection ../support/GraphicsCollection ./BasemapView ./LayerViewManager ./Magnifier ./ToolViewManager ./input/Input ./input/ViewEvents ./navigation/Navigation ./support/DefaultsFromMap".split(" "),
  8134. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F, J, M, N, E, G, H, K, S, fa, ha, ba) {
  8135. var O; const na = t.getLogger("esri.views.View"); d = O = function (ra) {
  8136. function Da(sa) {
  8137. var W = ra.call(this, sa) || this; W._userSpatialReference = null; W._cursor = null; W.allLayerViews = new r({ getCollections: () => { var oa, ya, I; return [null == (oa = W.basemapView) ? void 0 : oa.baseLayerViews, null == (ya = W.groundView) ? void 0 : ya.layerViews, W.layerViews, null == (I = W.basemapView) ? void 0 : I.referenceLayerViews] }, getChildrenFunction: oa => oa.layerViews });
  8138. W.groundView = null; W.animation = null; W.basemapView = null; W.fatalError = null; W.extent = null; W.graphics = new N.GraphicsCollection; W.analyses = new M.AnalysesCollection; W.navigating = !1; W.typeSpecificPreconditionsReady = !0; W.layerViews = new l; W.magnifier = new H; W.padding = { left: 0, top: 0, right: 0, bottom: 0 }; W.ready = !1; W.spatialReferenceWarningDelay = 1E3; W.supportsGround = !0; W.timeExtent = null; W.type = null; W.scale = null; W.updating = !1; W.initialExtentRequired = !0; W.input = new S; W.navigation = new ha; W.layerViewManager = null; W.analysisViewManager =
  8139. null; W.isHeightModelInfoRequired = !1; W.width = null; W.height = null; W.resizing = !1; W.suspended = !1; W.viewEvents = new fa.ViewEvents(a._assertThisInitialized(W)); W.persistableViewModels = new l; W._isValid = !1; W._readyCycleForced = !1; W.handles.add(h.watch(() => W.preconditionsReady, oa => {
  8140. oa ? (W._currentSpatialReference = W.spatialReference, O.views.add(a._assertThisInitialized(W))) : (W._currentSpatialReference = null, O.views.remove(a._assertThisInitialized(W))); W.notifyChange("spatialReference"); if (!oa && W.ready) {
  8141. var ya, I;
  8142. null == (ya = W.layerViewManager) ? void 0 : ya.clear(); null == (I = W.toolViewManager) ? void 0 : I.detach(); n.isSome(W.analysisViewManager) && W.analysisViewManager.detach(); W._teardown()
  8143. } else oa && !W.ready && (W._startup(), n.isSome(W.analysisViewManager) && W.analysisViewManager.attach(), W.toolViewManager.attach())
  8144. }, h.sync)); return W
  8145. } a._inheritsLoose(Da, ra); var Ka = Da.prototype; Ka.initialize = function () {
  8146. this.addResolvingPromise(this.validate().then(() => { this._isValid = !0; return h.whenOnce(() => this.ready) })); this.basemapView =
  8147. new E.BasemapView({ view: this }); this.layerViewManager = new G({ view: this, layerViewImporter: { importLayerView: sa => this.importLayerView(sa), hasLayerViewModule: sa => this.hasLayerViewModule(sa) }, supportsGround: this.supportsGround }); this.toolViewManager = new K({ view: this }); this._setupSpatialReferenceLogger(); this.handles.add([h.watch(() => this.initialExtentRequired, sa => this.defaultsFromMap.required = { ...this.defaultsFromMap.required, extent: sa }, { sync: !0, initial: !0 }), h.watch(() => this.ready, sa => {
  8148. this.defaultsFromMap &&
  8149. (this.defaultsFromMap.suspended = sa, this.defaultsFromMap.userSpatialReference = sa ? this.spatialReference : this._userSpatialReference)
  8150. }, { sync: !0 }), h.watch(() => this._userSpatialReference, sa => { this.defaultsFromMap && (this.defaultsFromMap.userSpatialReference = sa) }, { sync: !0, initial: !0 })])
  8151. }; Ka._setupSpatialReferenceLogger = function () {
  8152. var sa = this; let W = null; this.handles.add([h.watch(() => { var oa; return null == (oa = this.defaultsFromMap) ? void 0 : oa.ready }, oa => {
  8153. var ya; const I = 0 < (null == (ya = this.map) ? void 0 : ya.allLayers.length);
  8154. oa && !this.spatialReference && I ? n.isSome(W) || (oa = g.makeHandle(() => W = n.abortMaybe(W)), W = f.createTask(function () { var P = a._asyncToGenerator(function* (Z) { try { yield f.after(sa.spatialReferenceWarningDelay, null, Z) } catch { return } finally { W = null } na.warn("#spatialReference", "no spatial reference could be derived from the currently added map layers") }); return function (Z) { return P.apply(this, arguments) } }()), this.handles.add(oa, "spatial-reference-logger-task")) : this.handles.remove("spatial-reference-logger-task")
  8155. },
  8156. { sync: !0 })])
  8157. }; Ka.destroy = function () {
  8158. if (!this.destroyed) {
  8159. this.viewEvents.destroy(); this.allLayerViews.destroy(); this.navigation && (this.navigation.destroy(), this._set("navigation", null)); this.graphics = n.destroyMaybe(this.graphics); this.analyses = n.destroyMaybe(this.analyses); this.handles.remove("defaultsFromMap"); this.defaultsFromMap.destroy(); this._set("defaultsFromMap", null); n.destroyMaybe(this.analysisViewManager); this.toolViewManager = n.destroyMaybe(this.toolViewManager); this.layerViewManager = n.destroyMaybe(this.layerViewManager);
  8160. this.basemapView = n.destroyMaybe(this.basemapView); this.invalidate(); this._emitter.clear(); this.handles.removeAll(); var sa = this.map; this.map = null; null == sa ? void 0 : sa.destroy()
  8161. }
  8162. }; Ka._startup = function () { this._set("ready", !0) }; Ka._teardown = function () { this._set("ready", !1) }; Ka.whenReady = function () { return Promise.resolve(this) }; Ka.toMap = function () { na.error("#toMap()", "Not implemented on this instance of View"); return null }; Ka._spatialReferenceChanged = function (sa) { }; Ka.whenLayerView = function (sa) { return this.layerViewManager.whenLayerView(sa) };
  8163. Ka.getDefaultSpatialReference = function () { var sa; return null == (sa = this.defaultsFromMap) ? void 0 : sa.spatialReference }; Ka.getDefaultHeightModelInfo = function () { var sa, W, oa; return null != (sa = null != (W = this.map && "heightModelInfo" in this.map ? this.map.heightModelInfo : void 0) ? W : null == (oa = this.defaultsFromMap) ? void 0 : oa.heightModelInfo) ? sa : null }; Ka.importLayerView = function (sa) { throw new q("importLayerView() not implemented"); }; Ka.hasLayerViewModule = function (sa) { return !1 }; Ka.validate = function () {
  8164. var sa = a._asyncToGenerator(function* () { });
  8165. return function () { return sa.apply(this, arguments) }
  8166. }(); Ka.invalidate = function () { this._isValid = !1 }; Ka.getSpatialReferenceSupport = function () { return { constraints: null } }; Ka._validateSpatialReference = function (sa) { return n.isSome(this.getSpatialReferenceSupport({ spatialReference: sa })) }; Ka.when = function (sa, W) {
  8167. this.isResolved() && !this.ready && na.warn("#when()", "Calling view.when() while the view is no longer ready but was already resolved once will resolve immediately. Use reactiveUtils.whenOnce(() \x3d\x3e view.ready).then(...) instead.");
  8168. return ra.prototype.when.call(this, sa, W)
  8169. }; Ka.forceReadyCycle = function () { this.ready && (h.when(() => !1 === this.preconditionsReady, () => this._readyCycleForced = !1, { once: !0 }), this._readyCycleForced = !0) }; Ka.addAndActivateTool = function (sa) { this.toolViewManager.tools.add(sa); this.activeTool = sa }; Ka.tryFatalErrorRecovery = function () { this.fatalError = null }; a._createClass(Da, [{ key: "_defaultsFromMapSettings", get: function () { return {} } }, {
  8170. key: "defaultsFromMap", get: function () {
  8171. return new ba.DefaultsFromMap({
  8172. required: {
  8173. tileInfo: !1,
  8174. heightModelInfo: !1, extent: !1
  8175. }, map: () => this.map, getSpatialReferenceSupport: sa => this.getSpatialReferenceSupport(sa), ...this._defaultsFromMapSettings
  8176. })
  8177. }
  8178. }, { key: "heightModelInfo", get: function () { return this.getDefaultHeightModelInfo() } }, { key: "interacting", get: function () { return this.navigating } }, {
  8179. key: "preconditionsReady", get: function () {
  8180. var sa; return !(this.fatalError || !this._isValid || this._readyCycleForced || !this.map || p.isLoadable(this.map) && !this.map.loaded || 0 === this.width || 0 === this.height || !this.spatialReference ||
  8181. !this._validateSpatialReference(this.spatialReference) || !(this._currentSpatialReference || null != (sa = this.defaultsFromMap) && sa.ready) || !this.typeSpecificPreconditionsReady)
  8182. }
  8183. }, { key: "map", set: function (sa) { var W; const oa = this._get("map"); sa !== oa && (null != (W = sa) && W.destroyed && (na.warn("#map", "The provided map is already destroyed", { map: sa }), sa = null), p.isLoadable(sa) && sa.load().catch(() => { }), this.initialized && (this.forceReadyCycle(), this._currentSpatialReference = null), this._set("map", sa)) } }, {
  8184. key: "spatialReference",
  8185. get: function () { var sa, W; let oa = this._userSpatialReference || this._currentSpatialReference || this.getDefaultSpatialReference() || null; oa && null != (sa = this.defaultsFromMap) && null != (W = sa.required) && W.heightModelInfo && (oa = oa.clone(), oa.vcsWkid = this.defaultsFromMap.vcsWkid, oa.latestVcsWkid = this.defaultsFromMap.latestVcsWkid); return oa }, set: function (sa) { const W = !J.equals(sa, this._get("spatialReference")); this._set("_userSpatialReference", sa); W && (this._set("spatialReference", sa), this._spatialReferenceChanged(sa)) }
  8186. },
  8187. { key: "stationary", get: function () { return !this.animation && !this.navigating && !this.resizing } }, { key: "initialExtent", get: function () { var sa; return null == (sa = this.defaultsFromMap) ? void 0 : sa.extent } }, { key: "cursor", get: function () { const sa = this.toolViewManager ? this.toolViewManager.cursor : null; return n.isSome(sa) ? sa : this._cursor || "default" }, set: function (sa) { this._cursor = sa; this.notifyChange("cursor") } }, { key: "size", get: function () { return [this.width, this.height] } }]); return Da
  8188. }(m.HandleOwnerMixin(k.EventedMixin(u.EsriPromiseMixin(d))));
  8189. d.views = new l; b.__decorate([x.property()], d.prototype, "_userSpatialReference", void 0); b.__decorate([v.aliasOf("toolViewManager.activeTool")], d.prototype, "activeTool", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "allLayerViews", void 0); b.__decorate([x.property()], d.prototype, "groundView", void 0); b.__decorate([x.property()], d.prototype, "animation", void 0); b.__decorate([x.property()], d.prototype, "basemapView", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "_defaultsFromMapSettings",
  8190. null); b.__decorate([x.property()], d.prototype, "defaultsFromMap", null); b.__decorate([x.property()], d.prototype, "fatalError", void 0); b.__decorate([x.property({ type: A })], d.prototype, "extent", void 0); b.__decorate([x.property(C.owningCollectionProperty(N.GraphicsCollection, "graphics"))], d.prototype, "graphics", void 0); b.__decorate([x.property(C.owningCollectionProperty(M.AnalysesCollection, "analyses"))], d.prototype, "analyses", void 0); b.__decorate([x.property({ readOnly: !0, type: D })], d.prototype, "heightModelInfo",
  8191. null); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "interacting", null); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "navigating", void 0); b.__decorate([x.property({ readOnly: !0, dependsOn: "fatalError _isValid _readyCycleForced map map.loaded? width height spatialReference _currentSpatialReference defaultsFromMap.ready typeSpecificPreconditionsReady".split(" ") })], d.prototype, "preconditionsReady", null); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "typeSpecificPreconditionsReady",
  8192. void 0); b.__decorate([x.property({ type: l, readOnly: !0 })], d.prototype, "layerViews", void 0); b.__decorate([x.property({ type: H })], d.prototype, "magnifier", void 0); b.__decorate([x.property({ value: null, type: c })], d.prototype, "map", null); b.__decorate([x.property()], d.prototype, "padding", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "ready", void 0); b.__decorate([x.property({ type: F })], d.prototype, "spatialReference", null); b.__decorate([x.property()], d.prototype, "spatialReferenceWarningDelay", void 0);
  8193. b.__decorate([x.property()], d.prototype, "stationary", null); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "supportsGround", void 0); b.__decorate([x.property({ type: e })], d.prototype, "timeExtent", void 0); b.__decorate([v.aliasOf("toolViewManager.tools")], d.prototype, "tools", void 0); b.__decorate([x.property()], d.prototype, "toolViewManager", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "type", void 0); b.__decorate([x.property({ type: Number })], d.prototype, "scale", void 0); b.__decorate([x.property({ readOnly: !0 })],
  8194. d.prototype, "updating", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "initialExtentRequired", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "initialExtent", null); b.__decorate([x.property()], d.prototype, "cursor", null); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "input", void 0); b.__decorate([x.property({ type: ha, nonNullable: !0 })], d.prototype, "navigation", void 0); b.__decorate([x.property()], d.prototype, "layerViewManager", void 0); b.__decorate([x.property()], d.prototype,
  8195. "analysisViewManager", void 0); b.__decorate([x.property()], d.prototype, "width", void 0); b.__decorate([x.property()], d.prototype, "height", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "resizing", void 0); b.__decorate([x.property({ value: null, readOnly: !0 })], d.prototype, "size", null); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "suspended", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "viewEvents", void 0); b.__decorate([x.property({ readOnly: !0 })], d.prototype, "persistableViewModels",
  8196. void 0); b.__decorate([x.property()], d.prototype, "_isValid", void 0); b.__decorate([x.property()], d.prototype, "_readyCycleForced", void 0); b.__decorate([x.property()], d.prototype, "_currentSpatialReference", void 0); return d = O = b.__decorate([z.subclass("esri.views.View")], d)
  8197. })
  8198. }, "esri/core/support/OwningCollection": function () {
  8199. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../Collection ../collectionUtils ../HandleOwner ../has ../Logger ../maybe ../accessorSupport/decorators/property ../arrayUtils ../accessorSupport/ensureType ../accessorSupport/decorators/subclass".split(" "),
  8200. function (a, b, c, e, d, l, r, q, k, m, g, p, t) {
  8201. q.getLogger("esri.core.support.OwningCollection"); a.OwningCollection = function (n) {
  8202. function u(h) { var v = n.call(this, h) || this; v.handles.add([v.on("before-add", y => { k.isNone(y.item) && y.preventDefault() }), v.on("after-add", y => v._own(y.item)), v.on("after-remove", y => v._release(y.item))]); return v } b._inheritsLoose(u, n); var f = u.prototype; f._ownAll = function () { for (const h of this.items) this._own(h) }; f._releaseAll = function () { for (const h of this.items) this._release(h) }; f._createNewInstance =
  8203. function (h) { return this.itemType ? new (e.ofType(this.itemType.Type))(h) : new e(h) }; b._createClass(u, [{ key: "owner", get: function () { return this._get("owner") }, set: function (h) { h !== this._get("owner") && (this._releaseAll(), this._set("owner", h), this._ownAll()) } }]); return u
  8204. }(l.HandleOwnerMixin(e)); c.__decorate([m.property()], a.OwningCollection.prototype, "owner", null); a.OwningCollection = c.__decorate([t.subclass("esri.core.support.OwningCollection")], a.OwningCollection); a.owningCollectionProperty = function (n, u) {
  8205. return {
  8206. type: n,
  8207. cast: d.castForReferenceSetter, set(f) { f = d.referenceSetter(f, this._get(u), n); f.owner = this; this._set(u, f) }
  8208. }
  8209. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8210. })
  8211. }, "esri/support/AnalysesCollection": function () {
  8212. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/accessorSupport/ensureType ../core/arrayUtils ../core/has ../core/accessorSupport/set ../core/accessorSupport/decorators/subclass ../core/support/OwningCollection".split(" "),
  8213. function (a, b, c, e, d, l, r, q, k, m, g) {
  8214. const p = e.getLogger("esri.support.AnalysesCollection"); a.AnalysesCollection = function (t) { function n(f) { var h = t.call(this, f) || this; h.handles.add(h.on("before-add", v => { d.isNone(v.item) || v.item.parent !== h.owner || (p.warn("Analysis inside the collection must be unique. Not adding this element again."), v.preventDefault()) })); return h } b._inheritsLoose(n, t); var u = n.prototype; u._own = function (f) { f.parent = this.owner }; u._release = function (f) { f.parent = null }; return n }(g.OwningCollection);
  8215. a.AnalysesCollection = c.__decorate([m.subclass("esri.support.AnalysesCollection")], a.AnalysesCollection); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8216. })
  8217. }, "esri/support/GraphicsCollection": function () {
  8218. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Graphic ../core/Logger ../core/accessorSupport/ensureType ../core/arrayUtils ../core/has ../core/accessorSupport/set ../core/accessorSupport/decorators/shared ../core/accessorSupport/decorators/subclass ../core/support/OwningCollection".split(" "),
  8219. function (a, b, c, e, d, l, r, q, k, m, g, p) {
  8220. a.GraphicsCollection = function (t) { function n() { return t.apply(this, arguments) || this } b._inheritsLoose(n, t); var u = n.prototype; u._own = function (f) { f.layer && "remove" in f.layer && f.layer !== this.owner && f.layer.remove(f); f.layer = this.owner }; u._release = function (f) { f.layer === this.owner && (f.layer = null) }; return n }(p.OwningCollection); c.__decorate([m.shared({ Type: e, ensureType: l.ensureType(e) })], a.GraphicsCollection.prototype, "itemType", void 0); a.GraphicsCollection = c.__decorate([g.subclass("esri.support.GraphicsCollection")],
  8221. a.GraphicsCollection); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8222. })
  8223. }, "esri/views/BasemapView": function () {
  8224. define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Collection ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "), function (a, b, c, e, d, l, r, q, k, m, g) {
  8225. a.BasemapView = function (p) {
  8226. function t(n) {
  8227. var u =
  8228. p.call(this, n) || this; u.view = null; u.baseLayerViews = new d; u.referenceLayerViews = new d; u._loadingHandle = l.watch(() => { var f, h; return null == (f = u.view) ? void 0 : null == (h = f.map) ? void 0 : h.basemap }, f => { f && f.load().catch(() => { }) }, l.initial); return u
  8229. } b._inheritsLoose(t, p); t.prototype.destroy = function () { this._set("view", null); this._loadingHandle && (this._loadingHandle.remove(), this._loadingHandle = null) }; b._createClass(t, [{ key: "suspended", get: function () { return this.view ? this.view.suspended : !0 } }, {
  8230. key: "updating", get: function () {
  8231. var n,
  8232. u; if (this.view && this.view.suspended) return !1; const f = null == (n = this.view) ? void 0 : null == (u = n.map) ? void 0 : u.basemap; return f && f.loaded ? this.baseLayerViews.some(h => h.updating) || this.referenceLayerViews.some(h => h.updating) : !1
  8233. }
  8234. }]); return t
  8235. }(e); c.__decorate([r.property({ constructOnly: !0 })], a.BasemapView.prototype, "view", void 0); c.__decorate([r.property({ readOnly: !0 })], a.BasemapView.prototype, "baseLayerViews", void 0); c.__decorate([r.property({ readOnly: !0 })], a.BasemapView.prototype, "referenceLayerViews", void 0);
  8236. c.__decorate([r.property({ readOnly: !0 })], a.BasemapView.prototype, "suspended", null); c.__decorate([r.property({ type: Boolean, readOnly: !0 })], a.BasemapView.prototype, "updating", null); a.BasemapView = c.__decorate([g.subclass("esri.views.BasemapView")], a.BasemapView); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8237. })
  8238. }, "esri/views/LayerViewManager": function () {
  8239. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/CollectionFlattener ../core/Error ../core/HandleOwner ../core/Logger ../core/MapUtils ../core/maybe ../core/promiseUtils ../core/reactiveUtils ../core/scheduling ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/support/WatchUpdatingTracking".split(" "),
  8240. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h) {
  8241. const v = l.getLogger("esri.views.LayerViewManager"); let y = function () {
  8242. function B(x, z, C) { this.layer = x; this.view = z; this.layerViewImporter = C; this._controller = new AbortController; this._deferred = k.createDeferred(); this.done = this._started = !1; k.onAbort(this._controller.signal, () => { const A = new e("cancelled:layerview-create", "layerview creation cancelled", { layer: x }); this._deferred.reject(A) }) } var w = B.prototype; w.destroy = function () {
  8243. this._controller.abort(); const { layerView: x } =
  8244. this; if (x) { var { layer: z, view: C } = this; z.emit("layerview-destroy", { view: C, layerView: x }); C.emit("layerview-destroy", { layer: z, layerView: x }); this.done = !0; this.layerViewImporter = this.view = this.layerView = this.layer = null }
  8245. }; w.start = function () {
  8246. var x = a._asyncToGenerator(function* () {
  8247. if (!this._started) {
  8248. this._started = !0; var { _controller: { signal: z }, layer: C, view: A } = this; this._map = A.map; try {
  8249. var D, F; yield C.load({ signal: z }); "prefetchResources" in C && (yield C.prefetchResources({ signal: z })); let M; if (C.createLayerView) M =
  8250. yield C.createLayerView(A, { signal: z }); else { if (!this.layerViewImporter.hasLayerViewModule(C)) throw new e("layer:view-not-supported", "No layerview implementation was found"); var J = yield this.layerViewImporter.importLayerView(C); k.throwIfAborted(z); M = "default" in J ? new J.default({ layer: C, view: A }) : new J({ layer: C, view: A }) } let N; J = () => { N = q.removeMaybe(N); M.destroyed || M.destroy(); M.layer = null; M.parent = null; M.view = null; this.done = !0 }; N = k.onAbort(z, J); k.throwIfAborted(z); try { yield M.when() } catch (E) {
  8251. throw J(),
  8252. E;
  8253. } (null == (D = this._map) ? 0 : null == (F = D.allLayers) ? 0 : F.includes(C)) ? (this.layerView = M, C.emit("layerview-create", { view: A, layerView: M }), A.emit("layerview-create", { layer: C, layerView: M }), this.done = !0, this._deferred.resolve(M)) : (J(), this._deferred.reject(new e("view:no-layerview-for-layer", "The layer has been removed from the map", { layer: C })))
  8254. } catch (M) {
  8255. C.emit("layerview-create-error", { view: A, error: M }), A.emit("layerview-create-error", { layer: C, error: M }), this.done = !0, this._deferred.reject(new e("layerview:create-error",
  8256. "layerview creation failed", { layer: C, error: M }))
  8257. }
  8258. }
  8259. }); return function () { return x.apply(this, arguments) }
  8260. }(); a._createClass(B, [{ key: "promise", get: function () { return this._deferred.promise } }]); return B
  8261. }(); d = function (B) {
  8262. function w(z) {
  8263. var C = B.call(this, z) || this; C._layerLayerViewInfoMap = new Map; C._watchUpdatingTracking = new h.WatchUpdatingTracking; C.supportsGround = !0; C._preloadLayerViewModules = () => {
  8264. var A; const D = null == (A = C.view.map) ? void 0 : A.allLayers; if (D) for (const F of D) C.layerViewImporter.hasLayerViewModule(F) &&
  8265. C.layerViewImporter.importLayerView(F)
  8266. }; C._reschedule = () => { q.isNone(C._workPromise) && (C._workPromise = k.createDeferred()); C.handles.remove("reschedule"); C.handles.add(g.schedule(C._doWork), "reschedule"); return C._workPromise.promise }; C._doWork = () => {
  8267. var A, D, F, J = C.view.map; C._map !== J && (C.clear(), C._map = J); if (q.isNone(C._workPromise)) C.notifyChange("updating"); else {
  8268. C.handles.remove("reschedule"); C.handles.remove("collection-change"); var M = new c({
  8269. getCollections: () => C._rootCollectionNames.map(N => C.get(N)),
  8270. getChildrenFunction: N => N && "layers" in N ? N.layers : null
  8271. }); for (const N of M) C._createLayerView(N); C._refreshCollections(); for (const [N, E] of C._layerLayerViewInfoMap) M.includes(N) || (C._layerLayerViewInfoMap.delete(E.layer), E.destroy()); M = M.filter(N => "group" === N.type).map(N => N.layers); J = [null == J ? void 0 : null == (A = J.ground) ? void 0 : A.layers, null == J ? void 0 : null == (D = J.basemap) ? void 0 : D.baseLayers, null == J ? void 0 : null == (F = J.basemap) ? void 0 : F.referenceLayers, null == J ? void 0 : J.layers, ...M].filter(N => !!N); C.handles.add(J.map(N =>
  8272. C._watchUpdatingTracking.addOnCollectionChange(() => N, C._reschedule)), "collection-change"); C._workPromise.resolve(); C._workPromise = null
  8273. }
  8274. }; return C
  8275. } a._inheritsLoose(w, B); var x = w.prototype; x.initialize = function () {
  8276. this.handles.add([m.on(() => { var z, C; return null == (z = this.view) ? void 0 : null == (C = z.map) ? void 0 : C.allLayers }, "change", this._preloadLayerViewModules, { onListenerAdd: this._preloadLayerViewModules }), m.watch(() => {
  8277. const z = this.view, C = null == z ? void 0 : z.map; return [null == C ? void 0 : C.basemap, null == C ? void 0 :
  8278. C.ground, null == C ? void 0 : C.layers, null == z ? void 0 : z.ready]
  8279. }, () => this._reschedule(), m.syncAndInitial)]); this._preloadLayerViewModules(); this._reschedule()
  8280. }; x.destroy = function () { this.clear(); this._watchUpdatingTracking.destroy(); this._map = null }; x.clear = function () { if (!this.destroyed) { for (const z of this._layerLayerViewInfoMap.values()) z.destroy(); this._layerLayerViewInfoMap.clear(); this._refreshCollections() } }; x.whenLayerView = function () {
  8281. var z = a._asyncToGenerator(function* (C) {
  8282. yield this._reschedule(); if (!this._layerLayerViewInfoMap.has(C)) throw new e("view:no-layerview-for-layer",
  8283. "No layerview has been found for the layer", { layer: C }); return this._layerLayerViewInfoMap.get(C).promise
  8284. }); return function (C) { return z.apply(this, arguments) }
  8285. }(); x._refreshCollections = function () { for (const [z, C] of this._layersToLayerViews) this._populateLayerViewsOwners(this.get(z), this.get(C), this.view); this.notifyChange("updating"); this.notifyChange("updatingRemaining") }; x._populateLayerViewsOwners = function (z, C, A) {
  8286. if (z && C) {
  8287. var D = 0; for (const F of z) (z = this._layerLayerViewInfoMap.get(F)) && z.layerView &&
  8288. (z = z.layerView, z.layer = F, z.parent = A, C.getItemAt(D) !== z && C.splice(D, 0, z), F.layers && this._populateLayerViewsOwners(F.layers, z.layerViews, z), D += 1); D < C.length && C.splice(D, C.length)
  8289. } else C && C.removeAll()
  8290. }; x._createLayerView = function (z) {
  8291. if (this._layerLayerViewInfoMap.has(z)) this.view.ready && this._layerLayerViewInfoMap.get(z).start(); else {
  8292. z.load().catch(() => { }); this.layerViewImporter.hasLayerViewModule(z) && this.layerViewImporter.importLayerView(z); var C = new y(z, this.view, this.layerViewImporter); C.promise.then(() =>
  8293. this._refreshCollections(), A => { if (!A || !k.isAbortError(A) && "cancelled:layerview-create" !== A.name) { var D, F; v.error(`Failed to create layerview for layer title:'${null != (D = z.title) ? D : "no title"}', id:'${null != (F = z.id) ? F : "no id"}' of type '${z.type}'.`, { layer: z, error: A }) } this._refreshCollections() }); this._layerLayerViewInfoMap.set(z, C); this.view.ready && C.start()
  8294. } this.notifyChange("updating"); this.notifyChange("updatingRemaining")
  8295. }; a._createClass(w, [{
  8296. key: "_layersToLayerViews", get: function () {
  8297. const z = [["view.map.basemap.baseLayers",
  8298. "view.basemapView.baseLayerViews"], ["view.map.layers", "view.layerViews"], ["view.map.basemap.referenceLayers", "view.basemapView.referenceLayerViews"]]; this.supportsGround && z.push(["view.map.ground.layers", "view.groundView.layerViews"]); return new Map(z)
  8299. }
  8300. }, { key: "_rootCollectionNames", get: function () { return Array.from(this._layersToLayerViews.keys()) } }, { key: "updating", get: function () { return q.isSome(this._workPromise) || this._watchUpdatingTracking.updating || r.someMap(this._layerLayerViewInfoMap, z => !z.done) } },
  8301. { key: "updatingRemaining", get: function () { let z = 0; for (const C of this._layerLayerViewInfoMap.values()) C.done || ++z; return z } }]); return w
  8302. }(d.HandleOwner); b.__decorate([p.property()], d.prototype, "_workPromise", void 0); b.__decorate([p.property({ readOnly: !0 })], d.prototype, "_watchUpdatingTracking", void 0); b.__decorate([p.property({ readOnly: !0 })], d.prototype, "_layersToLayerViews", null); b.__decorate([p.property({ readOnly: !0 })], d.prototype, "_rootCollectionNames", null); b.__decorate([p.property()], d.prototype,
  8303. "layerViewImporter", void 0); b.__decorate([p.property()], d.prototype, "supportsGround", void 0); b.__decorate([p.property({ readOnly: !0 })], d.prototype, "updating", null); b.__decorate([p.property({ readOnly: !0 })], d.prototype, "updatingRemaining", null); b.__decorate([p.property({ constructOnly: !0 })], d.prototype, "view", void 0); return d = b.__decorate([f.subclass("esri.views.LayerViewManager")], d)
  8304. })
  8305. }, "esri/views/Magnifier": function () {
  8306. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  8307. function (a, b, c, e, d, l, r, q, k) {
  8308. c = function (m) {
  8309. function g(p) { p = m.call(this, p) || this; p.factor = 1.5; p.offset = e.createScreenPoint(0, 0); p.position = null; p.size = 120; p.maskUrl = null; p.maskEnabled = !0; p.overlayUrl = null; p.overlayEnabled = !0; p.visible = !0; return p } a._inheritsLoose(g, m); a._createClass(g, [{
  8310. key: "version", get: function () {
  8311. this.commitProperty("factor"); this.commitProperty("offset"); this.commitProperty("position"); this.commitProperty("visible"); this.commitProperty("size"); this.commitProperty("maskUrl"); this.commitProperty("maskEnabled");
  8312. this.commitProperty("overlayUrl"); this.commitProperty("overlayEnabled"); return (this._get("version") || 0) + 1
  8313. }
  8314. }]); return g
  8315. }(c); b.__decorate([d.property({ type: Number })], c.prototype, "factor", void 0); b.__decorate([d.property({ nonNullable: !0 })], c.prototype, "offset", void 0); b.__decorate([d.property()], c.prototype, "position", void 0); b.__decorate([d.property({ type: Number, range: { min: 0 } })], c.prototype, "size", void 0); b.__decorate([d.property()], c.prototype, "maskUrl", void 0); b.__decorate([d.property()], c.prototype,
  8316. "maskEnabled", void 0); b.__decorate([d.property()], c.prototype, "overlayUrl", void 0); b.__decorate([d.property()], c.prototype, "overlayEnabled", void 0); b.__decorate([d.property({ readOnly: !0 })], c.prototype, "version", null); b.__decorate([d.property({ type: Boolean })], c.prototype, "visible", void 0); return c = b.__decorate([k.subclass("esri.views.Magnifier")], c)
  8317. })
  8318. }, "esri/views/ToolViewManager": function () {
  8319. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Collection ../core/HandleOwner ../core/handleUtils ../core/has ../core/Logger ../core/maybe ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./3d/support/TextureCollection ./input/InputManager ./input/ViewEvents ./interactive/interactiveToolUtils ./interactive/interfaces ./interactive/ToolViewManagerManipulatorState".split(" "),
  8320. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B) {
  8321. const w = q.getLogger("esri.views.ToolViewManager"); d = function (x) {
  8322. function z(A) { var D = x.call(this, A) || this; D._manipulatorState = new B; D.tools = new e; D.cursor = null; D._forEachTool = F => { for (const J of D.tools.items) if (F(J)) break }; return D } a._inheritsLoose(z, x); var C = z.prototype; C.initialize = function () {
  8323. this.handles.add([this.view.on(h.eventTypes, A => { this._handleInputEvent(A) }, f.ViewEventPriorities.TOOL), ...v.getToolCollectionHandles(this.tools), this.tools.on("before-remove",
  8324. ({ item: A }) => { this._manipulatorState.clearPointers(A, this._forEachTool) }), this.tools.on("change", () => { this._refreshToolWatchers() })])
  8325. }; C.destroy = function () { this.detach(); this.handles.removeAll() }; C.attach = function () {
  8326. "3d" === this.view.type ? (this._set("textures", new u.TextureCollection(this.view._stage, this.view.resourceController.scheduler)), this.handles.add([m.watch(() => { const { state: A } = this.view; return "camera" in A && A.camera }, () => { this._forEachManipulator(A => { if (null != A.onViewChange) A.onViewChange() }) }),
  8327. this.view.elevationProvider.on("elevation-change", A => { this._forEachManipulator(D => { if (null != D.onElevationChange) D.onElevationChange(A) }) }), l.makeHandle(() => this._set("textures", k.destroyMaybe(this.textures)))], "attached")) : this.handles.add(m.watch(() => this.view.extent, () => { this._forEachManipulator(A => { if (null != A.onViewChange) A.onViewChange() }) }))
  8328. }; C.detach = function () { k.isSome(this.activeTool) && (this.activeTool = null); this.tools.removeAll(); this.handles.remove("attached") }; C._forEachManipulator = function (A) {
  8329. this._forEachTool(D => { D.manipulators && D.manipulators.forEach(({ manipulator: F }) => A(F, D)) })
  8330. }; C._handleInputEvent = function (A) {
  8331. let D = !1; const F = { ...A, stopPropagation: () => { D = !0; A.stopPropagation() } }; k.isSome(this.activeTool) ? this.activeTool.handleInputEvent && this.activeTool.handleInputEvent(F) : this._forEachTool(J => { !D && J.visible && J.handleInputEvent(F) }); !D && "key-down" === A.type && "Escape" === A.key && this.activeTool && (A.stopPropagation(), this.activeTool = null); this._manipulatorState.handleInputEvent(F, {
  8332. forEachTool: this._forEachTool,
  8333. activeTool: this.activeTool, setActiveTool: J => { this.activeTool = J }, view: this.view
  8334. }); !D && k.isSome(this.activeTool) && this.activeTool.handleInputEventAfter(F); this._manipulatorState.handleHoverEvent(F, this._forEachTool); this._updateCursor()
  8335. }; C._refreshToolWatchers = function () {
  8336. this.handles.remove("tools"); this._forEachTool(A => {
  8337. if (A instanceof c) {
  8338. const D = m.watch(() => [A.cursor, A.visible, A.editable], () => { v.areToolManipulatorsEditable(A) || this._manipulatorState.clearPointers(A, this._forEachTool); this._updateCursor() });
  8339. this.handles.add(D, "tools")
  8340. } A.manipulators && this.handles.add(A.manipulators.on("change", D => { D.removed.forEach(({ id: F }) => { this._manipulatorState.clearPointers(A, this._forEachTool, !0, F) }); this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool); this._updateCursor() }), "tools")
  8341. }); this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool); this._updateCursor()
  8342. }; C._updateCursor = function () {
  8343. const A = this._manipulatorState.cursor; let D = A; this._forEachTool(F => k.isSome(F.cursor) &&
  8344. F.visible && (k.isNone(A) || !F.preferManipulatorCursor) ? (D = F.cursor, !0) : !1); this._get("cursor") !== D && this._set("cursor", D)
  8345. }; C._removeIncompleteTools = function (A) { this.tools.filter(D => (k.isNone(A) || D !== A) && !D.created && D.removeIncompleteOnCancel).forEach(D => { this.tools.remove(D) }) }; a._createClass(z, [{
  8346. key: "activeTool", set: function (A) {
  8347. if (k.isSome(A) && !this.view.ready) w.error("Cannot set active tool while view is not ready."); else if (A !== this.activeTool) {
  8348. var D = this.activeTool; this._set("activeTool", A); k.isSome(D) &&
  8349. D.deactivate(); k.isSome(A) && A.activate(); this._removeIncompleteTools(A); A = k.isNone(this.activeTool); for (const F of this.tools) F.setEditableFlag(y.EditableFlag.MANAGER, A || F === this.activeTool), D = v.areToolManipulatorsEditable(F), !A && D || this._manipulatorState.clearPointers(F, this._forEachTool, !D); this._updateCursor()
  8350. }
  8351. }
  8352. }, { key: "updating", get: function () { var A, D; return this.updatingHandles.updating || this.tools.some(F => F.updating) || (null != (A = null == (D = this.textures) ? void 0 : D.updating) ? A : !1) } }]); return z
  8353. }(d.HandleOwner);
  8354. b.__decorate([g.property({ constructOnly: !0, nonNullable: !0 })], d.prototype, "view", void 0); b.__decorate([g.property({ readOnly: !0, nonNullable: !0 })], d.prototype, "textures", void 0); b.__decorate([g.property({ value: null })], d.prototype, "activeTool", null); b.__decorate([g.property({ readOnly: !0, type: e })], d.prototype, "tools", void 0); b.__decorate([g.property({ readOnly: !0 })], d.prototype, "cursor", void 0); b.__decorate([g.property({ readOnly: !0 })], d.prototype, "updating", null); return d = b.__decorate([n.subclass("esri.views.ToolViewManager")],
  8355. d)
  8356. })
  8357. }, "esri/views/3d/support/TextureCollection": function () {
  8358. define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/maybe ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../support/Scheduler".split(" "), function (a, b, c, e, d, l, r, q, k, m, g) {
  8359. a.TextureCollection = function (p) {
  8360. function t(u, f) {
  8361. var h; var v = p.call(this,
  8362. {}) || this; v._stage = u; v._textureRequests = new Map; v._frameTask = null != (h = null == f ? void 0 : f.registerTask(g.TaskPriority.TEXTURE_UNLOAD)) ? h : g.ImmediateTask; return v
  8363. } b._inheritsLoose(t, p); var n = t.prototype; n.normalizeCtorArgs = function () { return {} }; n.destroy = function () { p.prototype.destroy.call(this); this._frameTask.remove(); this._textureRequests.forEach(u => this._releaseTextureRequest(u)); this._textureRequests.clear() }; n.fromData = function (u, f, h) {
  8364. const v = this.makeUid(u); u = this._textureRequests.get(v); u || (u =
  8365. { referenceCount: 0, texture: f(), textureAsync: null, abortController: null, onRemove: h }, this._stage && (this._stage.add(u.texture), this._stage.loadImmediate(u.texture)), this._textureRequests.set(v, u)); u.referenceCount++; return { uid: v, texture: u.texture, release: () => this._release(v) }
  8366. }; n._release = function (u) {
  8367. const f = this._textureRequests.get(u); f ? (1 > f.referenceCount && console.warn("TextureCollection: reference count is \x3c 1 for " + u), f.referenceCount--, 1 > f.referenceCount && this._frameTask.schedule(() => this._releaseNow(u))) :
  8368. console.warn(`TextureCollection: texture doesn't exist: '${u}'`)
  8369. }; n._releaseNow = function (u) { if (this._textureRequests) { var f = this._textureRequests.get(u); !f || 0 < f.referenceCount || (this._releaseTextureRequest(f), this._textureRequests.delete(u)) } }; n._releaseTextureRequest = function (u) { if (u.onRemove) u.onRemove(); if (u.texture) { var f; null == (f = this._stage) ? void 0 : f.remove(u.texture) } else u.abortController && (u.abortController.abort(), u.abortController = null) }; n.makeUid = function (u, f = null) {
  8370. return d.isSome(f) ?
  8371. `${u}.${f}px` : u
  8372. }; b._createClass(t, [{ key: "updating", get: function () { return this._frameTask.updating } }, { key: "test", get: function () { return { textureRequests: this._textureRequests } } }]); return t
  8373. }(e); c.__decorate([l.property()], a.TextureCollection.prototype, "_frameTask", void 0); c.__decorate([l.property()], a.TextureCollection.prototype, "updating", null); a.TextureCollection = c.__decorate([m.subclass("esri.views.3d.support.TextureCollection")], a.TextureCollection); Object.defineProperties(a, {
  8374. __esModule: { value: !0 },
  8375. [Symbol.toStringTag]: { value: "Module" }
  8376. })
  8377. })
  8378. }, "esri/views/support/Scheduler": function () {
  8379. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Handles ../../core/Logger ../../core/maybe ../../core/PerformanceSampler ../../core/PooledArray ../../core/promiseUtils ../../core/reactiveUtils ../../core/time ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../layers/support/PromiseQueue ./debugFlags".split(" "),
  8380. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y) {
  8381. function B(G) { return x.has(G) ? x.get(G) : "number" === typeof G ? G : 1 } const w = l.getLogger("esri.views.support.Scheduler"); a.TaskPriority = void 0; (function (G) {
  8382. G.RESOURCE_CONTROLLER = "schedule"; G.SLIDE = "slide"; G.STREAM_DATA_LOADER = "stream loader"; G.ELEVATION_QUERY = "elevation query"; G.TERRAIN_SURFACE = "terrain"; G.SURFACE_GEOMETRY_UPDATES = "surface geometry updates"; G.GRAPHICS_CORE = "Graphics3D"; G.I3S_CONTROLLER = "I3S"; G.POINT_CLOUD_LAYER = "point cloud"; G.FEATURE_TILE_FETCHER =
  8383. "feature fetcher"; G.OVERLAY = "overlay"; G.STAGE = "stage"; G.GRAPHICS_DECONFLICTOR = "graphics deconflictor"; G.FILTER_VISIBILITY = "Graphics3D filter visibility"; G.SCALE_VISIBILITY = "Graphics3D scale visibility"; G.FRUSTUM_VISIBILITY = "Graphics3D frustum visibility"; G.POINT_OF_INTEREST_FREQUENT = "POI frequent"; G.POINT_OF_INTEREST_INFREQUENT = "POI infrequent"; G.LABELER = "labeler"; G.FEATURE_QUERY_ENGINE = "feature query"; G.FEATURE_TILE_TREE = "feature tile tree"; G.FEATURE_TILE_TREE_ACTIVE = "fast feature tile tree"; G.ELEVATION_ALIGNMENT =
  8384. "elevation alignment"; G.TEXT_TEXTURE_ATLAS = "text texture atlas"; G.TEXTURE_UNLOAD = "texture unload"; G.LINE_OF_SIGHT_TOOL = "line of sight tool"; G.LINE_OF_SIGHT_TOOL_INTERACTIVE = "interactive line of sight tool"; G.ELEVATION_PROFILE = "elevation profile"; G.SNAPPING = "snapping"; G.SHADOW_ACCUMULATOR = "shadow accumulator"; G.CLOUDS_GENERATOR = "cloud generator"; G[G.TEST_PRIO = 1] = "TEST_PRIO"
  8385. })(a.TaskPriority || (a.TaskPriority = {})); const x = new Map([[a.TaskPriority.RESOURCE_CONTROLLER, 0], [a.TaskPriority.SLIDE, 0], [a.TaskPriority.STREAM_DATA_LOADER,
  8386. 0], [a.TaskPriority.ELEVATION_QUERY, 0], [a.TaskPriority.TERRAIN_SURFACE, 1], [a.TaskPriority.SURFACE_GEOMETRY_UPDATES, 1], [a.TaskPriority.GRAPHICS_CORE, 2], [a.TaskPriority.I3S_CONTROLLER, 2], [a.TaskPriority.POINT_CLOUD_LAYER, 2], [a.TaskPriority.FEATURE_TILE_FETCHER, 2], [a.TaskPriority.OVERLAY, 4], [a.TaskPriority.STAGE, 4], [a.TaskPriority.GRAPHICS_DECONFLICTOR, 4], [a.TaskPriority.FILTER_VISIBILITY, 4], [a.TaskPriority.SCALE_VISIBILITY, 4], [a.TaskPriority.FRUSTUM_VISIBILITY, 4], [a.TaskPriority.POINT_OF_INTEREST_FREQUENT,
  8387. 6], [a.TaskPriority.POINT_OF_INTEREST_INFREQUENT, 30], [a.TaskPriority.LABELER, 8], [a.TaskPriority.FEATURE_QUERY_ENGINE, 8], [a.TaskPriority.FEATURE_TILE_TREE, 16], [a.TaskPriority.FEATURE_TILE_TREE_ACTIVE, 0], [a.TaskPriority.ELEVATION_ALIGNMENT, 12], [a.TaskPriority.TEXT_TEXTURE_ATLAS, 12], [a.TaskPriority.CLOUDS_GENERATOR, 12], [a.TaskPriority.TEXTURE_UNLOAD, 12], [a.TaskPriority.LINE_OF_SIGHT_TOOL, 16], [a.TaskPriority.LINE_OF_SIGHT_TOOL_INTERACTIVE, 0], [a.TaskPriority.SNAPPING, 0], [a.TaskPriority.SHADOW_ACCUMULATOR,
  8388. 30]]); a.State = void 0; (function (G) { G[G.ANIMATING = 0] = "ANIMATING"; G[G.INTERACTING = 1] = "INTERACTING"; G[G.IDLE = 2] = "IDLE" })(a.State || (a.State = {})); const z = p.Milliseconds(6.5), C = p.Milliseconds(1), A = p.Milliseconds(30), D = p.Milliseconds(1E3 / 30), F = p.Milliseconds(100); var J; (function (G) {
  8389. let H = function (fa) {
  8390. function ha() {
  8391. var O = fa.call(this) || this; O.updating = !0; O._microTaskQueued = !1; O.performanceInfo = { total: new q("total"), tasks: new Map }; O._frameTaskTimes = new Map; O._budget = new S; O._state = a.State.INTERACTING; O._tasks =
  8392. new k; O._runQueue = new k; O._load = 0; O._idleStateCallbacks = new k; O._idleUpdatesStartFired = !1; O._maxReschedule = E; O._forceTask = !1; O._debug = !1; O._debugHandle = g.watch(() => y.SCHEDULER_LOG_SLOW_TASKS, Da => O._debug = Da, g.initial); for (const Da of Object.keys(a.TaskPriority)) O.performanceInfo.tasks.set(a.TaskPriority[Da], new q(a.TaskPriority[Da])); let na; const ra = b._assertThisInitialized(O); O._test = {
  8393. get state() { return r.unwrapOr(na, ra._state) }, set state(Da) { na = Da }, FRAME_SAFETY_BUDGET: z, INTERACTING_BUDGET: D, IDLE_BUDGET: F,
  8394. get availableBudget() { return ra._budget.budget }, usedBudget: 0, getBudget: () => ra._budget, setBudget: Da => ra._budget = Da, updateTask: Da => O._updateTask(Da), getState: Da => O._getState(Da), getRuntime: Da => O._getRuntime(Da), frameTaskTimes: O._frameTaskTimes, resetRuntimes: () => O._resetRuntimes(), getRunning: () => O._getRunning()
  8395. }; return O
  8396. } b._inheritsLoose(ha, fa); var ba = ha.prototype; ba.destroy = function () {
  8397. this._tasks.toArray().forEach(O => O.remove()); this._tasks.clear(); r.removeMaybe(this._debugHandle); this.updating = this._microTaskQueued =
  8398. !1
  8399. }; ba.activate = function () { this._budget.done || this._microTaskQueued || (this._microTaskQueued = !0, queueMicrotask(() => { this._microTaskQueued && (this._microTaskQueued = !1, this._budget.done || (this._maxReschedule = E, this._schedule(), this.frame())) })) }; ba.registerTask = function (O, na) { const ra = B(O); na = new K(this, O, na, ra); this._tasks.push(na); this.performanceInfo.tasks.has(O) || this.performanceInfo.tasks.set(O, new q(O)); return na }; ba.registerIdleStateCallbacks = function (O, na) {
  8400. const ra = { idleBegin: O, idleEnd: na }; this._idleStateCallbacks.push(ra);
  8401. this.state === a.State.IDLE && this._idleUpdatesStartFired && ra.idleBegin(); const Da = this; return { remove: () => this._removeIdleStateCallbacks(ra), set idleBegin(Ka) { Da._idleUpdatesStartFired && (ra.idleEnd(), Da._state === a.State.IDLE && Ka()); ra.idleBegin = Ka }, set idleEnd(Ka) { ra.idleEnd = Ka } }
  8402. }; ba.updateBudget = function (O) {
  8403. this._test.usedBudget = 0; let na = z, ra = O.frameDuration, Da = C; switch (this.state) {
  8404. case a.State.IDLE: na = p.Milliseconds(0); ra = p.Milliseconds(Math.max(F, O.frameDuration)); Da = A; break; case a.State.INTERACTING: ra =
  8405. p.Milliseconds(Math.max(D, O.frameDuration))
  8406. }ra = p.Milliseconds(ra - O.elapsedFrameTime - na); if (this.state !== a.State.IDLE && ra < C && !this._forceTask) return this._forceTask = !0, !1; ra = p.Milliseconds(Math.max(ra, Da)); this._budget.reset(ra, this.state); this._maxReschedule = E; this._updateLoad(); return this._schedule()
  8407. }; ba.frame = function () {
  8408. this._microTaskQueued = this._forceTask = !1; switch (this.state) {
  8409. case a.State.IDLE: this._idleUpdatesStartFired || (this._idleUpdatesStartFired = !0, this._idleStateCallbacks.forAll(O => O.idleBegin()));
  8410. this._runIdle(); break; case a.State.INTERACTING: this._runInteracting(); break; default: this._runAnimating()
  8411. }this._test.usedBudget = this._budget.elapsed
  8412. }; ba.stopFrame = function () { this._budget.reset(p.Milliseconds(0), this._state); this._budget.madeProgress() }; ba._removeIdleStateCallbacks = function (O) { this._idleUpdatesStartFired && O.idleEnd(); this._idleStateCallbacks.removeUnordered(O) }; ba.removeTask = function (O) { this._tasks.removeUnordered(O); this._runQueue.removeUnordered(O) }; ba._updateTask = function (O) {
  8413. this._tasks.forAll(na => { na.name === O && na.setPriority(O) })
  8414. }; ba._getState = function (O) { if (this._runQueue.some(ra => ra.name === O)) return a.TaskState.SCHEDULED; let na = a.TaskState.IDLE; this._tasks.forAll(ra => { ra.name === O && ra.needsUpdate && (1 >= ra.schedulePriority ? na = a.TaskState.READY : na !== a.TaskState.READY && (na = a.TaskState.WAITING)) }); return na }; ba._getRuntime = function (O) { let na = 0; this._tasks.forAll(ra => { ra.name === O && (na += ra.runtime) }); return na }; ba._resetRuntimes = function () { this._tasks.forAll(O => O.runtime = 0) }; ba._getRunning = function () {
  8415. const O =
  8416. new Map; this._tasks.forAll(ra => { ra.needsUpdate && O.set(ra.name, (O.get(ra.name) || 0) + 1) }); if (0 === O.size) return null; let na = ""; O.forEach((ra, Da) => { na = 1 < ra ? na + ` ${ra}x ${Da}` : na + ` ${Da}` }); return na
  8417. }; ba._runIdle = function () { this._run() }; ba._runInteracting = function () { this._run() }; ba._runAnimating = function () { this._run() }; ba._updateLoad = function () { const O = this._tasks.reduce((na, ra) => ra.needsUpdate ? ++na : na, 0); this._load = .9 * this._load + O * (1 - .9) }; ba._schedule = function () {
  8418. if (0 >= this._maxReschedule) return !1; this._runQueue.filterInPlace(O => { if (O.needsUpdate) return !0; O.schedulePriority = O.basePriority; return !1 }); for (this._tasks.forAll(O => { 0 === O.basePriority && O.needsUpdate && !this._runQueue.includes(O) && this._runQueue.unshift(O) }); 0 === this._runQueue.length;) {
  8419. let O = !1, na = 0; this._tasks.forAll(ra => { if (ra.needsUpdate && 0 !== ra.schedulePriority && 0 !== ra.basePriority) switch (O = !0, na = Math.max(na, ra.basePriority), ra.schedulePriority) { case 1: ra.schedulePriority = 0; this._runQueue.push(ra); break; default: --ra.schedulePriority } }); if (!O) return this.updating =
  8420. !1; this._maxReschedule === E && (this._maxReschedule = na); --this._maxReschedule
  8421. } return this.updating = !0
  8422. }; ba._run = function () {
  8423. const O = this._budget.now(); this._startFrameTaskTimes(); do for (; 0 < this._runQueue.length;) {
  8424. var na = this._budget.now(); const ra = this._runQueue.pop(); this._budget.resetProgress(); try { ra.task.runTask(this._budget) } catch (Da) { w.error(`Exception in task "${ra.name}"`, Da) } ra.schedulePriority = ra.basePriority; na = this._budget.now() - na; ra.runtime += na; this._frameTaskTimes.set(ra.priority, this._frameTaskTimes.get(ra.priority) +
  8425. na); this._debug && this._budget.elapsed > 2 * this._budget.budget && console.log("Task", ra.name, "used", this._budget.elapsed, "of max", this._budget.budget, "ms"); if (0 >= this._budget.remaining) { this.updating = this._tasks.some(Da => Da.needsUpdate); this._recordFrameTaskTimes(this._budget.now() - O); return }
  8426. } while (this._schedule()); this.updating = this._tasks.some(ra => ra.needsUpdate); this._recordFrameTaskTimes(this._budget.now() - O)
  8427. }; ba._startFrameTaskTimes = function () {
  8428. for (const O of Object.keys(a.TaskPriority)) this._frameTaskTimes.set(a.TaskPriority[O],
  8429. 0)
  8430. }; ba._recordFrameTaskTimes = function (O) { this._frameTaskTimes.forEach((na, ra) => this.performanceInfo.tasks.get(ra).record(na)); this.performanceInfo.total.record(O) }; b._createClass(ha, [{ key: "load", get: function () { return this._load } }, { key: "state", get: function () { return r.isNone(this._test.state) ? this._state : this._test.state }, set: function (O) { this._state !== O && (this._state = O, this.state !== a.State.IDLE && this._idleUpdatesStartFired && (this._idleUpdatesStartFired = !1, this._idleStateCallbacks.forAll(na => na.idleEnd()))) } },
  8431. { key: "test", get: function () { return this._test } }]); return ha
  8432. }(e); c.__decorate([t.property()], H.prototype, "updating", void 0); H = c.__decorate([h.subclass("esri.views.support.Scheduler")], H); G.Scheduler = H; let K = function (fa) {
  8433. function ha(O, na, ra, Da) {
  8434. var Ka = fa.call(this, {}) || this; Ka._scheduler = O; Ka.name = na; Ka._basePriority = Da; Ka.runtime = 0; Ka._queue = new v.PromiseQueue; Ka._handles = new d; Ka.schedulePriority = Ka._basePriority; Ka.task = r.isSome(ra) ? ra : Ka._queue; Ka._handles.add(g.when(() => Ka.task.running, () => O.activate()));
  8435. return Ka
  8436. } b._inheritsLoose(ha, fa); var ba = ha.prototype; ba.normalizeCtorArgs = function () { return {} }; ba.remove = function () { this.processQueue(M); this._scheduler.removeTask(this); this.schedule = N.schedule; this.reschedule = N.reschedule; this._handles.destroy() }; ba.setPriority = function (O) { this.name = O; O = B(O); if (0 === this._basePriority || 0 !== this.schedulePriority) this.schedulePriority = O; this._basePriority = O }; ba.schedule = function (O, na, ra) { return this._queue.push(O, na, ra) }; ba.reschedule = function (O, na, ra) {
  8437. return this._queue.unshift(O,
  8438. na, ra)
  8439. }; ba.processQueue = function (O) { this._queue.runTask(O) }; b._createClass(ha, [{ key: "updating", get: function () { return this._queue.running } }, { key: "basePriority", get: function () { return this._basePriority } }, { key: "priority", get: function () { return this.name }, set: function (O) { this.setPriority(O) } }, { key: "needsUpdate", get: function () { return this.updating || this.task.running } }]); return ha
  8440. }(e); c.__decorate([t.property({ constructOnly: !0 })], K.prototype, "task", void 0); c.__decorate([t.property({ readOnly: !0 })], K.prototype,
  8441. "updating", null); K = c.__decorate([h.subclass("esri.views.support.SchedulerTask")], K); let S = function () {
  8442. function fa() { this._begin = "undefined" !== typeof performance ? performance.now() : 0; this._budget = 0; this._state = a.State.IDLE; this._didWork = !1; this._enabled = !0 } var ha = fa.prototype; ha.run = function (ba) { if (this.done) return !1; !0 === ba() && (this._didWork = !0); return !0 }; ha.madeProgress = function () { this._didWork = !0 }; ha.reset = function (ba, O) { this._begin = this.now(); this._budget = ba; this._state = O; this._didWork = !1 }; ha.now =
  8443. function () { return performance.now() }; ha.resetProgress = function () { this._didWork = !1 }; b._createClass(fa, [{ key: "done", get: function () { return this._didWork && this.elapsed >= this._budget && this._enabled } }, { key: "budget", get: function () { return this._budget } }, { key: "state", get: function () { return this._state } }, { key: "enabled", get: function () { return this._enabled }, set: function (ba) { this._enabled = ba } }, { key: "remaining", get: function () { return Math.max(this._budget - this.elapsed, 0) } }, {
  8444. key: "elapsed", get: function () {
  8445. return performance.now() -
  8446. this._begin
  8447. }
  8448. }, { key: "hasProgressed", get: function () { return this._didWork } }]); return fa
  8449. }(); G.Budget = S
  8450. })(J || (J = {})); a.TaskState = void 0; (function (G) { G.SCHEDULED = "s"; G.READY = "r"; G.WAITING = "w"; G.IDLE = "i" })(a.TaskState || (a.TaskState = {})); const M = (() => { const G = new J.Budget; G.enabled = !1; return G })(), N = new (function () {
  8451. function G() { } var H = G.prototype; H.remove = function () { }; H.processQueue = function () { }; H.schedule = function (K, S, fa) {
  8452. try {
  8453. if (m.isAborted(S)) {
  8454. const ha = m.createAbortError(); return fa ? Promise.resolve(fa(ha)) :
  8455. Promise.reject(ha)
  8456. } return m.when(K(M))
  8457. } catch (ha) { return Promise.reject(ha) }
  8458. }; H.reschedule = function (K, S, fa) { return this.schedule(K, S, fa) }; return G
  8459. }()), E = Number.MAX_SAFE_INTEGER; a.ImmediateTask = N; a.getTaskPriority = B; a.newScheduler = function () { return new J.Scheduler }; a.noBudget = M; a.taskPriorities = x; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8460. })
  8461. }, "esri/layers/support/PromiseQueue": function () {
  8462. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/promiseUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  8463. function (a, b, c, e, d, l, r, q, k, m) {
  8464. a.PromiseQueue = function (p) {
  8465. function t() { var u = p.apply(this, arguments) || this; u._tasks = []; u.running = !1; return u } b._inheritsLoose(t, p); var n = t.prototype; n.destroy = function () { this.cancelAll() }; n.runTask = function (u) { for (; !u.done && this._process(u);)u.madeProgress() }; n.push = function (u, f, h) { this.running = !0; return new Promise((v, y) => this._tasks.push(new g(v, y, u, f, h))) }; n.unshift = function (u, f, h) { this.running = !0; return new Promise((v, y) => this._tasks.unshift(new g(v, y, u, f, h))) };
  8466. n._process = function (u) { if (0 === this._tasks.length) return !1; const f = this._tasks.shift(); try { const h = d.isAborted(f.signal); if (h && !f.abortCallback) f.reject(d.createAbortError()); else { const v = h ? f.abortCallback(d.createAbortError()) : f.callback(u); d.isPromiseLike(v) ? v.then(f.resolve, f.reject) : f.resolve(v) } } catch (h) { f.reject(h) } this.running = 0 < this._tasks.length; return !0 }; n.cancelAll = function () {
  8467. const u = d.createAbortError(); for (const f of this._tasks) if (f.abortCallback) { const h = f.abortCallback(u); f.resolve(h) } else f.reject(u);
  8468. this._tasks.length = 0; this.running = !1
  8469. }; b._createClass(t, [{ key: "length", get: function () { return this._tasks.length } }]); return t
  8470. }(e); c.__decorate([l.property()], a.PromiseQueue.prototype, "running", void 0); a.PromiseQueue = c.__decorate([m.subclass("esri.layers.support.PromiseQueue")], a.PromiseQueue); let g = function (p, t, n, u, f) { this.resolve = p; this.reject = t; this.callback = n; this.signal = u; this.abortCallback = f }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8471. })
  8472. }, "esri/views/support/debugFlags": function () {
  8473. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  8474. function (a, b, c, e, d, l, r, q) { c = function (k) { function m() { var g = k.apply(this, arguments) || this; g.SCHEDULER_LOG_SLOW_TASKS = !1; g.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES = !1; return g } a._inheritsLoose(m, k); return m }(c); b.__decorate([e.property()], c.prototype, "SCHEDULER_LOG_SLOW_TASKS", void 0); b.__decorate([e.property()], c.prototype, "FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES", void 0); c = b.__decorate([q.subclass("esri.views.support.DebugFlags")], c); return new c })
  8475. }, "esri/views/input/InputManager": function () {
  8476. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Logger ../../core/maybe ../../core/Queue ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../3d/support/PropertiesPool ./keys ./handlers/LatestPointer".split(" "),
  8477. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u) {
  8478. const f = d.getLogger("esri.views.input.InputManager"); a.InputManager = function (w) {
  8479. function x(C) {
  8480. var A = w.call(this, C) || this; A._pointerCaptures = new Map; A._nameToGroup = {}; A._handlers = []; A._currentPropagation = null; A._updateDependenciesAfterPropagation = !1; A._sourceEvents = new Set; A._keyModifiers = new Set; A._activeKeyModifiers = new Set; A._stoppedPropagationEventIds = new Set; A.primaryKey = n.primaryKey; A.latestPointerType = "mouse"; A._propertiesPool = new t.PropertiesPool({ latestPointerLocation: B },
  8481. b._assertThisInitialized(A)); A.latestPointerLocation = null; A.test = { timestamp: void 0, hasCurrentPropagation: () => !!A._currentPropagation }; return A
  8482. } b._inheritsLoose(x, w); var z = x.prototype; z.initialize = function () { this.eventSource.onEventReceived = this._onEventReceived.bind(this); this._installRecognizers() }; z.destroy = function () { const C = Object.keys(this._nameToGroup); for (const A of C) this.uninstallHandlers(A); this._currentPropagation = this.eventSource = null; this._propertiesPool.destroy() }; z.installHandlers =
  8483. function (C, A, D = y.INTERNAL) {
  8484. if (this._nameToGroup[C]) f.error("There is already an InputHandler group registered under the name `" + C + "`"); else if (0 === A.length) f.error("Can't register a group of zero handlers"); else {
  8485. var F = { name: C, handlers: A.map(J => ({ handler: J, active: !0, removed: !1, priorityIndex: 0, groupPriority: D, eventCallback: null, uninstallCallback: null })) }; this._nameToGroup[C] = F; for (C = F.handlers.length - 1; 0 <= C; C--) {
  8486. const J = F.handlers[C]; this._handlers.push(J); J.handler.onInstall({
  8487. updateDependencies: () => { this.updateDependencies() }, emit: (M, N, E, G, H) => { this._emitInputEvent(J.priorityIndex + 1, M, N, E, H, G) }, setPointerCapture: (M, N) => { this._setPointerCapture(F, J, M, N) }, setEventCallback: M => { J.eventCallback = M }, setUninstallCallback: M => { J.uninstallCallback = M }, refreshHasPendingInputs: () => { this.notifyChange("hasPendingInputs") }
  8488. })
  8489. } this.updateDependencies()
  8490. }
  8491. }; z.uninstallHandlers = function (C) {
  8492. const A = this._nameToGroup[C]; A ? (A.handlers.forEach(D => { D.removed = !0; D.uninstallCallback() }), delete this._nameToGroup[C], this._currentPropagation ?
  8493. this._currentPropagation.needsHandlerGarbageCollect = !0 : this._garbageCollectRemovedHandlers()) : f.error("There is no InputHandler group registered under the name `" + C + "`")
  8494. }; z.hasHandlers = function (C) { return void 0 !== this._nameToGroup[C] }; z.updateDependencies = function () {
  8495. if (this._currentPropagation) this._updateDependenciesAfterPropagation = !0; else {
  8496. this._updateDependenciesAfterPropagation = !1; var C = new Set, A = new Set; this._handlersPriority = []; for (var D = this._handlers.length - 1; 0 <= D; D--) {
  8497. var F = this._handlers[D];
  8498. F.priorityIndex = D; this._handlersPriority.push(F)
  8499. } this._handlersPriority = this._sortHandlersPriority(this._handlersPriority); for (D = this._handlersPriority.length - 1; 0 <= D; D--) { F = this._handlersPriority[D]; F.priorityIndex = D; let J = F.handler.hasSideEffects; if (!J) for (const M of F.handler.outgoingEventTypes) if (C.has(M)) { J = !0; break } if (J) for (const M of F.handler.incomingEventMatches) { C.add(M.eventType); for (const N of M.keyModifiers) n.isSystemModifier(N) || A.add(N) } F.active = J } this._sourceEvents = C; this._keyModifiers =
  8500. A; 0 < this._pointerCaptures.size && this._sourceEvents.add("pointer-capture-lost"); 0 < this._keyModifiers.size && (this._sourceEvents.add("key-down"), this._sourceEvents.add("key-up")); this.eventSource && (this.eventSource.activeEvents = this._sourceEvents)
  8501. }
  8502. }; z._setLatestPointer = function (C, A, D) {
  8503. this._get("latestPointerType") !== C && this._set("latestPointerType", C); C = this._get("latestPointerLocation"); if (l.isNone(C) || C.x !== A || C.y !== D) C = this._propertiesPool.get("latestPointerLocation"), C.x = A, C.y = D, this._set("latestPointerLocation",
  8504. C)
  8505. }; z._onEventReceived = function (C, A) { "pointer-capture-lost" === C && this._pointerCaptures.delete(A.native.pointerId); this._updateKeyModifiers(C, A); this._emitInputEventFromSource(C, A, null != this.test.timestamp ? this.test.timestamp : A.native ? A.native.timestamp : void 0, A.native ? A.native.cancelable : void 0) }; z._updateKeyModifiers = function (C, A) {
  8506. if (A) {
  8507. var D = !1, F = () => { if (!D) { const M = new Set; this._activeKeyModifiers.forEach(N => { M.add(N) }); this._activeKeyModifiers = M; D = !0 } }, J = (M, N) => {
  8508. N && !this._activeKeyModifiers.has(M) ?
  8509. (F(), this._activeKeyModifiers.add(M)) : !N && this._activeKeyModifiers.has(M) && (F(), this._activeKeyModifiers.delete(M))
  8510. }; if ("key-down" === C || "key-up" === C) { const M = A.key; this._keyModifiers.has(M) && J(M, "key-down" === C) } C = A.native; J("Alt", !(!C || !C.altKey)); J("Ctrl", !(!C || !C.ctrlKey)); J("Shift", !(!C || !C.shiftKey)); J("Meta", !(!C || !C.metaKey)); J("Primary", this._activeKeyModifiers.has(this.primaryKey))
  8511. }
  8512. }; z._installRecognizers = function () {
  8513. this._latestPointerHandler = new u.LatestPointer((C, A, D) => this._setLatestPointer(C,
  8514. A, D)); this.installHandlers("input-manager-logic", [this._latestPointerHandler], y.ALWAYS); 0 < this.recognizers.length && this.installHandlers("default", this.recognizers, y.INTERNAL)
  8515. }; z._setPointerCapture = function (C, A, D, F) {
  8516. C = C.name + "-" + A.priorityIndex; A = this._pointerCaptures.get(D.pointerId) || new Set; this._pointerCaptures.set(D.pointerId, A); F ? (A.add(C), 1 === A.size && this.eventSource && this.eventSource.setPointerCapture(D, !0)) : A.has(C) && (A.delete(C), 0 === A.size && (this._pointerCaptures.delete(D.pointerId), this.eventSource &&
  8517. this.eventSource.setPointerCapture(D, !1)))
  8518. }; z._garbageCollectRemovedHandlers = function () { this._handlers = this._handlers.filter(C => !C.removed); this.updateDependencies() }; z._emitInputEventFromSource = function (C, A, D, F) { this._emitInputEvent(0, C, A, D, F) }; z._emitInputEvent = function (C, A, D, F, J, M) {
  8519. F = void 0 !== F ? F : this._currentPropagation ? this._currentPropagation.timestamp : performance.now(); C = { event: new h(A, D, F, M || this._activeKeyModifiers, void 0 !== J ? J : !1), priorityIndex: C }; this._currentPropagation ? this._currentPropagation.events.push(C) :
  8520. this._doNewPropagation(C)
  8521. }; z._doNewPropagation = function (C) { this._currentPropagation = { events: new r, currentHandler: null, needsHandlerGarbageCollect: !1, timestamp: C.event.timestamp }; this._currentPropagation.events.push(C); this._continuePropagation() }; z._continuePropagation = function () {
  8522. const C = this._currentPropagation; if (C) {
  8523. for (; 0 < this._currentPropagation.events.length;) {
  8524. const { event: A, priorityIndex: D } = this._currentPropagation.events.pop(), F = A.data && A.data.eventId; if (null == F || !this._stoppedPropagationEventIds.has(F)) for (C.currentHandler =
  8525. this._handlersPriority[D]; C.currentHandler;) {
  8526. if (C.currentHandler.removed) C.needsHandlerGarbageCollect = !0; else { C.currentHandler.active && !A.shouldStopPropagation() && C.currentHandler.eventCallback(A); if (A.shouldStopPropagation()) { null != F && this._stoppedPropagationEventIds.add(F); break } if (A.shouldPausePropagation(() => this._continuePropagation())) { this._pausePropagation({ event: A, priorityIndex: C.currentHandler.priorityIndex + 1 }); return } } C.currentHandler = this._handlersPriority[C.currentHandler.priorityIndex +
  8527. 1]
  8528. }
  8529. } C.needsHandlerGarbageCollect && this._garbageCollectRemovedHandlers(); this.hasPendingInputs || this._stoppedPropagationEventIds.clear(); this._currentPropagation = null; this._updateDependenciesAfterPropagation && this.updateDependencies()
  8530. }
  8531. }; z._pausePropagation = function (C) { const A = new r; for (A.push(C); this._currentPropagation.events.length;)A.push(this._currentPropagation.events.pop()); this._currentPropagation.events = A; this._currentPropagation.currentHandler = null }; z._compareHandlerPriority = function (C, A) {
  8532. if (C.handler.hasSideEffects !==
  8533. A.handler.hasSideEffects) return C.handler.hasSideEffects ? 1 : -1; if (C.groupPriority !== A.groupPriority) return C.groupPriority > A.groupPriority ? -1 : 1; for (const D of C.handler.incomingEventMatches) for (const F of A.handler.incomingEventMatches) { if (D.eventType !== F.eventType) continue; const J = D.keyModifiers.filter(M => F.keyModifiers.includes(M)); if (J.length === D.keyModifiers.length !== (J.length === F.keyModifiers.length)) return D.keyModifiers.length > F.keyModifiers.length ? -1 : 1 } return C.priorityIndex > A.priorityIndex ?
  8534. -1 : 1
  8535. }; z._sortHandlersPriority = function (C) { const A = []; for (const D of C) { for (C = 0; C < A.length && 0 <= this._compareHandlerPriority(D, A[C]);)C++; A.splice(C, 0, D) } return A }; b._createClass(x, [{ key: "hasPendingInputs", get: function () { return this._handlers.some(C => C.handler.hasPendingInputs) } }, { key: "debug", get: function () { const C = A => { const D = this._setPointerCapture; this._setPointerCapture = () => { }; A(); this._setPointerCapture = D }; return { injectEvent: (A, D) => { C(() => { this._onEventReceived(A, D) }) }, disablePointerCapture: C } } }]);
  8536. return x
  8537. }(e); c.__decorate([q.property({ readOnly: !0 })], a.InputManager.prototype, "hasPendingInputs", null); c.__decorate([q.property()], a.InputManager.prototype, "eventSource", void 0); c.__decorate([q.property()], a.InputManager.prototype, "recognizers", void 0); c.__decorate([q.property({ readOnly: !0 })], a.InputManager.prototype, "latestPointerType", void 0); c.__decorate([q.property({ readOnly: !0 })], a.InputManager.prototype, "latestPointerLocation", void 0); a.InputManager = c.__decorate([p.subclass("esri.views.input.InputManager")],
  8538. a.InputManager); let h = function () {
  8539. function w(z, C, A, D, F) { this.type = z; this.data = C; this.timestamp = A; this.modifiers = D; this.cancelable = F; this._propagationState = v.NONE; this._resumeCallback = null } var x = w.prototype; x.stopPropagation = function () { this._propagationState |= v.STOPPED }; x.shouldStopPropagation = function () { return 0 !== (this._propagationState & v.STOPPED) }; x.async = function (z) {
  8540. this._propagationState |= v.PAUSED; const C = (A, D) => {
  8541. this._propagationState &= ~v.PAUSED; const F = this._resumeCallback; this._resumeCallback =
  8542. null; F && F(); if (D) throw A; return A
  8543. }; return ("function" === typeof z ? z() : z).then(A => C(A, !1), A => C(A, !0))
  8544. }; x.shouldPausePropagation = function (z) { return this._propagationState & v.PAUSED ? (this._resumeCallback = z, !0) : !1 }; x.preventDefault = function () { this.data.native.preventDefault() }; return w
  8545. }(); var v; (function (w) { w[w.NONE = 0] = "NONE"; w[w.STOPPED = 1] = "STOPPED"; w[w.PAUSED = 2] = "PAUSED" })(v || (v = {})); const y = { ALWAYS: 1, DEFAULT: 0, TOOL: -1, WIDGET: -2, INTERNAL: -3 }; let B = function () { }; a.ViewEventPriorities = y; Object.defineProperties(a,
  8546. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8547. })
  8548. }, "esri/views/3d/support/PropertiesPool": function () {
  8549. define(["exports", "../../../core/ReentrantObjectPool", "../../../core/accessorSupport/watch"], function (a, b, c) {
  8550. let e = function () {
  8551. function d(r, q) { this.owner = q; this.properties = {}; this.afterDispatchHandle = null; for (const k in r) q = new b.ReentrantObjectPool(r[k], null, null, 2, 2), this.properties[k] = { pool: q, acquired: [] }; this.afterDispatchHandle = c.afterDispatch(() => this._release()) } var l = d.prototype;
  8552. l.destroy = function () { this.afterDispatchHandle && (this.afterDispatchHandle.remove(), this.afterDispatchHandle = null); for (const r in this.properties) { const q = this.properties[r]; for (const k of q.acquired) c.isValueInUse(k) || q.pool.release(k); q.pool.destroy(); q.pool = null; q.acquired = null } this.owner = this.properties = null }; l.get = function (r) { const q = this.owner._get(r); r = this.properties[r]; let k = r.pool.acquire(); for (r.acquired.push(k); k === q;)r.acquired.push(k), k = r.pool.acquire(); return k }; l._release = function () {
  8553. for (const r in this.properties) {
  8554. const q =
  8555. this.properties[r]; let k = 0; for (const m of q.acquired) c.isValueInUse(m) ? q.acquired[k++] = m : q.pool.release(m); q.acquired.length = k
  8556. }
  8557. }; return d
  8558. }(); a.PropertiesPool = e; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8559. })
  8560. }, "esri/views/input/keys": function () {
  8561. define(["exports", "../../core/events", "../../core/has"], function (a, b, c) {
  8562. c = c("mac") ? "Meta" : "Ctrl"; const e = {
  8563. 8: "Backspace", 9: "Tab", 13: "Enter", 27: "Escape", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp",
  8564. 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete"
  8565. }; for (var d = 48; 58 > d; d++)e[d] = String.fromCharCode(d); for (d = 1; 25 > d; d++)e[111 + d] = `F${d}`; for (d = 65; 91 > d; d++)e[d] = [String.fromCharCode(d + 32), String.fromCharCode(d)]; a.eventKey = function (l) { if (void 0 !== l.key) return b.eventKey(l); const r = e[l.keyCode]; return Array.isArray(r) ? l.shiftKey ? r[1] : r[0] : r }; a.isSystemModifier = function (l) { switch (l) { case "Ctrl": case "Alt": case "Shift": case "Meta": case "Primary": return !0 }return !1 }; a.primaryKey = c; Object.defineProperties(a,
  8566. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8567. })
  8568. }, "esri/views/input/handlers/LatestPointer": function () {
  8569. define(["exports", "../../../chunks/_rollupPluginBabelHelpers", "../InputHandler"], function (a, b, c) {
  8570. c = function (e) {
  8571. function d(l) { var r = e.call(this, !0) || this; r._onChange = l; r._value = "mouse"; r._x = null; r._y = null; r.registerIncoming("pointer-move", q => { r._setValue("touch" === q.data.native.pointerType ? "touch" : "mouse", q.data.x, q.data.y) }); return r } b._inheritsLoose(d, e); d.prototype._setValue = function (l,
  8572. r, q) { if (l !== this._value || this._x !== r || this._y !== q) this._value = l, this._x = r, this._y = q, this._onChange(l, r, q) }; return d
  8573. }(c.InputHandler); a.LatestPointer = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8574. })
  8575. }, "esri/views/input/InputHandler": function () {
  8576. define(["exports", "../../chunks/_rollupPluginBabelHelpers", "../../core/Logger", "./EventMatch"], function (a, b, c, e) {
  8577. const d = c.getLogger("esri.views.input.InputHandler"); c = function () {
  8578. function q(m) {
  8579. this._manager = null; this._incoming =
  8580. {}; this._outgoing = {}; this._outgoingEventTypes = this._incomingEventTypes = this._incomingEventMatches = null; this._hasSideEffects = m
  8581. } var k = q.prototype; k.onInstall = function (m) { this._manager ? d.error("This InputHandler has already been registered with an InputManager") : (m.setEventCallback(g => this._handleEvent(g)), m.setUninstallCallback(() => this._onUninstall()), this._manager = m) }; k.onUninstall = function () { }; k.registerIncoming = function (m, g, p) {
  8582. "function" === typeof g ? (p = g, g = []) : g = g || []; m = "string" === typeof m ? new e.EventMatch(m,
  8583. g) : m; const t = () => { this._incomingEventMatches = this._incomingEventTypes = null }; g = n => { const u = this._incoming[n.match.eventType]; u && (n = u.indexOf(n), u.splice(n, 1), t(), this._manager && this._manager.updateDependencies()) }; p = new l(m, p, { onPause: g, onRemove: g, onResume: n => { const u = this._incoming[n.match.eventType]; u && !u.includes(n) && (u.push(n), t(), this._manager && this._manager.updateDependencies()) } }); g = this._incoming[m.eventType]; g || (g = [], this._incoming[m.eventType] = g); g.push(p); t(); this._manager && this._manager.updateDependencies();
  8584. return p
  8585. }; k.registerOutgoing = function (m) { if (this._outgoing[m]) throw Error("There is already a callback registered for this outgoing InputEvent: " + m); const g = new r(m, { onEmit: (p, t, n, u) => { this._manager.emit(p.eventType, t, n, u) }, onRemove: p => { delete this._outgoing[p.eventType]; this._manager.updateDependencies() } }); this._outgoing[m] = g; this._outgoingEventTypes = null; this._manager && this._manager.updateDependencies(); return g }; k.startCapturingPointer = function (m) { this._manager.setPointerCapture(m, !0) }; k.stopCapturingPointer =
  8586. function (m) { this._manager.setPointerCapture(m, !1) }; k.refreshHasPendingInputs = function () { this._manager.refreshHasPendingInputs() }; k._onUninstall = function () { this._manager ? (this.onUninstall(), this._manager = null) : d.error("This InputHandler is not registered with an InputManager") }; k._handleEvent = function (m) { const g = this._incoming[m.type]; if (g) for (const p of g) if (p.match.matches(m) && (p.callback(m), m.shouldStopPropagation())) break }; b._createClass(q, [{
  8587. key: "incomingEventMatches", get: function () {
  8588. if (!this._incomingEventMatches) {
  8589. this._incomingEventMatches =
  8590. []; for (const m in this._incoming) { const g = this._incoming[m]; for (const p of g) this._incomingEventMatches.push(p.match) }
  8591. } return this._incomingEventMatches
  8592. }
  8593. }, { key: "incomingEventTypes", get: function () { this._incomingEventTypes || (this._incomingEventTypes = this.incomingEventMatches.map(m => m.eventType)); return this._incomingEventTypes } }, { key: "outgoingEventTypes", get: function () { this._outgoingEventTypes || (this._outgoingEventTypes = Object.keys(this._outgoing)); return this._outgoingEventTypes } }, {
  8594. key: "hasSideEffects",
  8595. get: function () { return this._hasSideEffects }
  8596. }, { key: "hasPendingInputs", get: function () { return !1 } }]); return q
  8597. }(); let l = function () { function q(m, g, p) { this.match = m; this._callback = g; this._handler = p } var k = q.prototype; k.pause = function () { this._handler.onPause(this) }; k.resume = function () { this._handler.onResume(this) }; k.remove = function () { this._handler.onRemove(this) }; b._createClass(q, [{ key: "callback", get: function () { return this._callback } }]); return q }(), r = function () {
  8598. function q(m, g) {
  8599. this.eventType = m; this._removed =
  8600. !1; this._handler = g
  8601. } var k = q.prototype; k.emit = function (m, g, p) { if (!this._removed) this._handler.onEmit(this, m, g, p) }; k.remove = function () { this._removed = !0; this._handler.onRemove(this) }; return q
  8602. }(); a.InputHandler = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8603. })
  8604. }, "esri/views/input/EventMatch": function () {
  8605. define(["exports"], function (a) {
  8606. let b = function () {
  8607. function c(e, d = []) { this.eventType = e; this.keyModifiers = d } c.prototype.matches = function (e) {
  8608. if (e.type !== this.eventType) return !1;
  8609. if (0 === this.keyModifiers.length) return !0; e = e.modifiers; for (const d of this.keyModifiers) if (!e.has(d)) return !1; return !0
  8610. }; return c
  8611. }(); a.EventMatch = b; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8612. })
  8613. }, "esri/views/input/ViewEvents": function () {
  8614. define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/has ../../core/mathUtils ../../core/screenUtils ./InputHandler ./InputManager ./IViewEvents".split(" "), function (a, b, c, e, d, l, r, q) {
  8615. function k(n) { return !!g[n] }
  8616. function m(n) { for (const u of n) if (!k(u)) return !1; return !0 } c = "click double-click immediate-click immediate-double-click hold drag key-down key-up pointer-down pointer-move pointer-up pointer-drag mouse-wheel pointer-enter pointer-leave gamepad focus blur".split(" "); const g = {}; c.forEach(n => { g[n] = !0 }); let p = function () {
  8617. function n(f) { this.handlers = new Map; this.counter = 0; this.handlerCounts = new Map; this.view = f; this.inputManager = null } var u = n.prototype; u.connect = function (f) {
  8618. f && this.disconnect(); this.inputManager =
  8619. f; this.handlers.forEach(({ handler: h, priority: v }, y) => this.inputManager.installHandlers(y, [h], v))
  8620. }; u.disconnect = function () { this.inputManager && this.handlers.forEach((f, h) => this.inputManager.uninstallHandlers(h)); this.inputManager = null }; u.destroy = function () { this.disconnect(); this.handlers.clear(); this.view = null }; u.on = function (f, h, v, y) {
  8621. const B = Array.isArray(f) ? f : f.split(","); if (!m(B)) return B.some(k) && console.error("Error: registering input events and other events on the view at the same time is not supported."),
  8622. null; if (Array.isArray(h)) f = h; else { var w = h; f = [] } "function" === typeof v ? w = v : y = v; y = null != y ? y : r.ViewEventPriorities.DEFAULT; const x = this._createUniqueGroupName(); v = new t(this.view, B, f, w); this.handlers.set(x, { handler: v, priority: y }); for (const z of B) w = this.handlerCounts.get(z) || 0, this.handlerCounts.set(z, w + 1); this.inputManager && this.inputManager.installHandlers(x, [v], y); return { remove: () => this._removeHandler(x, B) }
  8623. }; u.hasHandler = function (f) { return !!this.handlerCounts.get(f) }; u._removeHandler = function (f, h) {
  8624. if (this.handlers.has(f)) {
  8625. this.handlers.delete(f);
  8626. for (const v of h) h = this.handlerCounts.get(v), void 0 === h ? console.error("Trying to remove handler for event that has no handlers registered: ", v) : 1 === h ? this.handlerCounts.delete(v) : this.handlerCounts.set(v, h - 1)
  8627. } this.inputManager && this.inputManager.uninstallHandlers(f)
  8628. }; u._createUniqueGroupName = function () { this.counter += 1; return `viewEvents_${this.counter}` }; return n
  8629. }(), t = function (n) {
  8630. function u(h, v, y, B) {
  8631. var w = n.call(this, !0) || this; w.view = h; for (const x of v) switch (x) {
  8632. case "click": w.registerIncoming("click",
  8633. y, z => B(w._wrapClick(z))); break; case "double-click": w.registerIncoming("double-click", y, z => B(w._wrapDoubleClick(z))); break; case "immediate-click": w.registerIncoming("immediate-click", y, z => B(w._wrapImmediateClick(z))); break; case "immediate-double-click": w.registerIncoming("immediate-double-click", y, z => B(w._wrapImmediateDoubleClick(z))); break; case "hold": w.registerIncoming("hold", y, z => B(w._wrapHold(z))); break; case "drag": w.registerIncoming("drag", y, z => { (z = w._wrapDrag(z)) && B(z) }); break; case "key-down": w.registerIncoming("key-down",
  8634. y, z => B(w._wrapKeyDown(z))); break; case "key-up": w.registerIncoming("key-up", y, z => B(w._wrapKeyUp(z))); break; case "pointer-down": w.registerIncoming("pointer-down", y, z => B(w._wrapPointer(z, "pointer-down"))); break; case "pointer-move": w.registerIncoming("pointer-move", y, z => B(w._wrapPointer(z, "pointer-move"))); break; case "pointer-up": w.registerIncoming("pointer-up", y, z => B(w._wrapPointer(z, "pointer-up"))); break; case "pointer-drag": w.registerIncoming("pointer-drag", y, z => B(w._wrapPointerDrag(z))); break; case "mouse-wheel": w.registerIncoming("mouse-wheel",
  8635. y, z => B(w._wrapMouseWheel(z))); break; case "pointer-enter": w.registerIncoming("pointer-enter", y, z => B(w._wrapPointer(z, "pointer-enter"))); break; case "pointer-leave": w.registerIncoming("pointer-leave", y, z => B(w._wrapPointer(z, "pointer-leave"))); break; case "gamepad": w.registerIncoming("gamepad", y, z => { B(w._wrapGamepad(z)) }); break; case "focus": w.registerIncoming("focus", y, z => { B(w._wrapFocus(z)) }); break; case "blur": w.registerIncoming("blur", y, z => { B(w._wrapBlur(z)) })
  8636. }return w
  8637. } b._inheritsLoose(u, n); var f = u.prototype;
  8638. f._wrapFocus = function (h) { return { type: "focus", timestamp: h.timestamp, native: h.data.native, cancelable: h.cancelable, stopPropagation: () => h.stopPropagation(), async: v => h.async(v), preventDefault: () => h.preventDefault() } }; f._wrapBlur = function (h) { return { type: "blur", timestamp: h.timestamp, native: h.data.native, cancelable: h.cancelable, stopPropagation: () => h.stopPropagation(), async: v => h.async(v), preventDefault: () => h.preventDefault() } }; f._wrapClick = function (h) {
  8639. const { pointerType: v, button: y, buttons: B, x: w, y: x, native: z,
  8640. eventId: C } = h.data, { cancelable: A, timestamp: D } = h, F = d.createScreenPoint(w, x), J = this._getMapPoint(w, x); return { type: "click", pointerType: v, button: y, buttons: B, x: w, y: x, native: z, timestamp: D, screenPoint: F, mapPoint: J, eventId: C, cancelable: A, stopPropagation: () => h.stopPropagation(), async: M => h.async(M), preventDefault: () => h.preventDefault() }
  8641. }; f._wrapDoubleClick = function (h) {
  8642. const { pointerType: v, button: y, buttons: B, x: w, y: x, native: z, eventId: C } = h.data, { cancelable: A, timestamp: D } = h; return {
  8643. type: "double-click", pointerType: v,
  8644. button: y, buttons: B, x: w, y: x, native: z, timestamp: D, mapPoint: this._getMapPoint(w, x), eventId: C, cancelable: A, stopPropagation: () => h.stopPropagation(), async: F => h.async(F), preventDefault: () => h.preventDefault()
  8645. }
  8646. }; f._wrapImmediateClick = function (h) {
  8647. const { pointerType: v, button: y, buttons: B, x: w, y: x, native: z, eventId: C } = h.data, A = z.pointerId, { cancelable: D, timestamp: F } = h; return {
  8648. type: "immediate-click", pointerId: A, pointerType: v, button: y, buttons: B, x: w, y: x, native: z, timestamp: F, mapPoint: this._getMapPoint(w, x), eventId: C,
  8649. cancelable: D, stopPropagation: () => h.stopPropagation(), async: J => h.async(J), preventDefault: () => h.preventDefault()
  8650. }
  8651. }; f._wrapImmediateDoubleClick = function (h) {
  8652. const { pointerType: v, button: y, buttons: B, x: w, y: x, native: z, eventId: C } = h.data, A = z.pointerId, { cancelable: D, timestamp: F } = h; return {
  8653. type: "immediate-double-click", pointerId: A, pointerType: v, button: y, buttons: B, x: w, y: x, native: z, timestamp: F, mapPoint: this._getMapPoint(w, x), eventId: C, cancelable: D, stopPropagation: () => h.stopPropagation(), async: J => h.async(J), preventDefault: () =>
  8654. h.preventDefault()
  8655. }
  8656. }; f._wrapHold = function (h) { const { pointerType: v, button: y, buttons: B, x: w, y: x, native: z } = h.data, { cancelable: C, timestamp: A } = h; return { type: "hold", pointerType: v, button: y, buttons: B, x: w, y: x, native: z, timestamp: A, mapPoint: this._getMapPoint(w, x), cancelable: C, stopPropagation: () => h.stopPropagation(), async: D => h.async(D), preventDefault: () => h.preventDefault() } }; f._getMapPoint = function (h, v) { return this.view.toMap(d.createScreenPoint(h, v), { exclude: [] }) }; f._wrapDrag = function (h) {
  8657. const v = h.data, { x: y,
  8658. y: B } = v.center, { action: w, pointerType: x, button: z } = v; "start" === w && (this.latestDragStart = v); if (this.latestDragStart) {
  8659. var C = v.pointer.native, A = v.buttons, { cancelable: D, timestamp: F } = h, J = { x: this.latestDragStart.center.x, y: this.latestDragStart.center.y }; "end" === w && (this.latestDragStart = void 0); return {
  8660. type: "drag", action: w, x: y, y: B, origin: J, pointerType: x, button: z, buttons: A, radius: v.radius, angle: e.rad2deg(v.angle), native: C, timestamp: F, cancelable: D, stopPropagation: () => h.stopPropagation(), async: M => h.async(M), preventDefault: () =>
  8661. h.preventDefault()
  8662. }
  8663. }
  8664. }; f._wrapKeyDown = function (h) { const { key: v, repeat: y, native: B } = h.data, { cancelable: w, timestamp: x } = h; return { type: "key-down", key: v, repeat: y, native: B, timestamp: x, cancelable: w, stopPropagation: () => h.stopPropagation(), async: z => h.async(z), preventDefault: () => h.preventDefault() } }; f._wrapKeyUp = function (h) {
  8665. const { key: v, native: y } = h.data, { cancelable: B, timestamp: w } = h; return {
  8666. type: "key-up", key: v, native: y, timestamp: w, cancelable: B, stopPropagation: () => h.stopPropagation(), async: x => h.async(x), preventDefault: () =>
  8667. h.preventDefault()
  8668. }
  8669. }; f._wrapPointer = function (h, v) { const { x: y, y: B, button: w, buttons: x, native: z, eventId: C } = h.data, A = z.pointerId, D = z.pointerType, { cancelable: F, timestamp: J } = h; return { type: v, x: y, y: B, pointerId: A, pointerType: D, button: w, buttons: x, native: z, timestamp: J, eventId: C, cancelable: F, stopPropagation: () => h.stopPropagation(), async: M => h.async(M), preventDefault: () => h.preventDefault() } }; f._wrapPointerDrag = function (h) {
  8670. const { x: v, y, buttons: B, native: w, eventId: x } = h.data.currentEvent, { button: z } = h.data.startEvent,
  8671. C = h.data.startEvent.native.pointerId, A = h.data.startEvent.native.pointerType, D = h.data.action, F = { x: h.data.startEvent.x, y: h.data.startEvent.y }, { cancelable: J, timestamp: M } = h; return { type: "pointer-drag", x: v, y, pointerId: C, pointerType: A, button: z, buttons: B, action: D, origin: F, native: w, timestamp: M, eventId: x, cancelable: J, stopPropagation: () => h.stopPropagation(), async: N => h.async(N), preventDefault: () => h.preventDefault() }
  8672. }; f._wrapMouseWheel = function (h) {
  8673. const { cancelable: v, data: y, timestamp: B } = h, { x: w, y: x, deltaY: z, native: C } =
  8674. y; return { type: "mouse-wheel", x: w, y: x, deltaY: z, native: C, timestamp: B, cancelable: v, stopPropagation: () => h.stopPropagation(), async: A => h.async(A), preventDefault: () => h.preventDefault() }
  8675. }; f._wrapGamepad = function (h) { const { action: v, state: y, device: B } = h.data, { cancelable: w, timestamp: x } = h, { buttons: z, axes: C } = y; return { type: "gamepad", device: B, timestamp: x, action: v, buttons: z, axes: C, cancelable: w, stopPropagation: () => h.stopPropagation(), async: A => h.async(A), preventDefault: () => h.preventDefault() } }; return u
  8676. }(l.InputHandler);
  8677. Object.defineProperty(a, "MouseButton", { enumerable: !0, get: () => q.MouseButton }); a.ViewEvents = p; a.eventTypes = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8678. })
  8679. }, "esri/views/input/IViewEvents": function () { define(["exports"], function (a) { a.MouseButton = void 0; var b = a.MouseButton || (a.MouseButton = {}); b[b.Left = 0] = "Left"; b[b.Middle = 1] = "Middle"; b[b.Right = 2] = "Right"; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/views/interactive/interactiveToolUtils": function () {
  8680. define(["exports",
  8681. "../../core/Logger", "./interfaces"], function (a, b, c) {
  8682. const e = b.getLogger("esri.views.interactive.interactiveToolUtils"); a.areToolManipulatorsEditable = function (d) { return d.visible && d.getEditableFlag(c.EditableFlag.USER) && d.getEditableFlag(c.EditableFlag.MANAGER) }; a.getToolCollectionHandles = function (d) {
  8683. return [d.on("before-add", l => { const r = l.item; if (null == r || d.includes(r)) e.warn("Tool is either already in the list of tools or tool is `null`. Not adding tool."), l.preventDefault(); else r.onAdd() }), d.on("after-remove",
  8684. l => { l = l.item; l.visible = !1; l.active && (l.view.activeTool = null); l.destroy() })]
  8685. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8686. })
  8687. }, "esri/views/interactive/interfaces": function () {
  8688. define(["exports"], function (a) {
  8689. a.EditableFlag = void 0; (function (b) { b[b.USER = 0] = "USER"; b[b.MANAGER = 1] = "MANAGER" })(a.EditableFlag || (a.EditableFlag = {})); a.ManipulatorStateFlags = void 0; (function (b) {
  8690. b[b.None = 0] = "None"; b[b.Unfocused = 1] = "Unfocused"; b[b.Focused = 2] = "Focused"; b[b.Unselected = 4] = "Unselected";
  8691. b[b.Selected = 8] = "Selected"; b[b.All = 15] = "All"
  8692. })(a.ManipulatorStateFlags || (a.ManipulatorStateFlags = {})); a.ManipulatorStateCustomFlags = void 0; (function (b) {
  8693. b[b.None = 0] = "None"; b[b.Custom1 = 16] = "Custom1"; b[b.Custom2 = 32] = "Custom2"; b[b.Custom3 = 64] = "Custom3"; b[b.Custom4 = 128] = "Custom4"; b[b.Custom5 = 256] = "Custom5"; b[b.Custom6 = 512] = "Custom6"; b[b.Custom7 = 1024] = "Custom7"; b[b.Custom8 = 2048] = "Custom8"; b[b.Custom9 = 4096] = "Custom9"; b[b.Custom10 = 8192] = "Custom10"; b[b.Custom11 = 16384] = "Custom11"; b[b.Custom12 = 32768] = "Custom12";
  8694. b[b.All = 65520] = "All"
  8695. })(a.ManipulatorStateCustomFlags || (a.ManipulatorStateCustomFlags = {})); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8696. })
  8697. }, "esri/views/interactive/ToolViewManagerManipulatorState": function () {
  8698. define("../../chunks/_rollupPluginBabelHelpers ../../core/MapUtils ../../core/mathUtils ../../core/maybe ../../core/screenUtils ./interactiveToolUtils ../support/screenUtils".split(" "), function (a, b, c, e, d, l, r) {
  8699. const q = { manipulator: null, tool: null }; return function () {
  8700. function k() {
  8701. this._pointerLocations =
  8702. new Map; this._hoveredManipulators = new Map; this._grabbedManipulators = new Map; this._draggedManipulators = new Map; this._stopDrag = !1; this._currentlyActiveTool = null; this._revertToActiveTool = !1; this._cursor = null
  8703. } var m = k.prototype; m.handleInputEvent = function (g, p) {
  8704. var t = () => g.stopPropagation(); switch (g.type) {
  8705. case "pointer-move": "mouse" === g.pointerType && this._pointerLocations.set(g.pointerId, { x: g.x, y: g.y, pointerType: g.pointerType }); break; case "drag": 0 < this._grabbedManipulators.size && (this._stopDrag = !0); this._stopDrag &&
  8706. (g.stopPropagation(), "end" === g.action && (this._stopDrag = !1)); break; case "pointer-down": if ("mouse" === g.pointerType && 0 !== g.button) break; t = r.createScreenPointFromEvent(g); var n = this._intersect(t, g.pointerType, p.forEachTool); if (e.isNone(n)) break; var u = this._findToolAndManipulatorByKey(n, p.forEachTool, q), f = e.applySome(u, v => v.manipulator); u = e.applySome(u, v => v.tool); !(e.isSome(f) && e.isSome(u) && f.interactive) || f.grabbable && f.grabbableForEvent(g) || !f.grabbing || f.dragging || this._ungrabManipulatorBeforeDragging(f,
  8707. u, g); e.isSome(f) && f.interactive && f.grabbable && f.grabbableForEvent(g) && !f.grabbing && (this._grabbedManipulators.set(g.pointerId, { key: n, start: t, pointerType: g.pointerType }), 1 === this._grabbedManipulators.size && p.activeTool !== n.tool && (this._currentlyActiveTool = p.activeTool, this._revertToActiveTool = !0, p.setActiveTool(n.tool)), f.grabbing = !0, f.events.emit("grab-changed", { action: "start", pointerType: g.pointerType, screenPoint: t }), g.stopPropagation()); break; case "pointer-up": this._handlePointerEnd(g, p); break;
  8708. case "pointer-drag": if ("mouse" === g.pointerType && 0 !== g.button) break; var h = this._grabbedManipulators.get(g.pointerId); t = this._draggedManipulators.get(g.pointerId); n = e.applySome(h || t, ({ key: v }) => v); f = this._findManipulatorByKey(n, p.forEachTool); if (e.isNone(f)) break; u = r.createScreenPointFromEvent(g); u.x = c.clamp(u.x, 0, p.view.width); u.y = c.clamp(u.y, 0, p.view.height); h = e.unwrap(h || t).start; switch (g.action) {
  8709. case "start": case "update": if ("update" === g.action || 1 === this._grabbedManipulators.size) f.dragging = !0, t ?
  8710. f.events.emit("drag", { action: "update", start: h, screenPoint: u }) : f.events.emit("drag", { action: "start", start: h, screenPoint: u, pointerType: g.pointerType }), this._draggedManipulators.set(g.pointerId, { key: e.unwrap(n), start: h }); break; case "end": f.dragging = !1, t && f.events.emit("drag", { action: "end", start: h, screenPoint: u }), this._draggedManipulators.delete(g.pointerId), this._handlePointerEnd(g, p)
  8711. }g.stopPropagation(); break; case "immediate-click": {
  8712. n = r.createScreenPointFromEvent(g); f = this._intersect(n, g.pointerType,
  8713. p.forEachTool); const v = this._findToolAndManipulatorByKey(f, p.forEachTool, q); g.native.shiftKey || p.forEachTool(w => { if ((!e.isSome(v) || v.tool !== w || w.automaticManipulatorSelection) && w.manipulators) { let x = !1; w.manipulators.forEach(({ manipulator: z }) => { z.selected && (z.selected = !1, x = !0) }); x && w.manipulatorSelectionChanged && w.manipulatorSelectionChanged() } }); if (e.isNone(v)) break; const { manipulator: y, tool: B } = v; if (!y.interactive) break; y.selectable && B.automaticManipulatorSelection && (y.selected = !y.selected, B.manipulatorSelectionChanged &&
  8714. B.manipulatorSelectionChanged()); y.events.emit("immediate-click", { screenPoint: n, button: g.button, pointerType: g.pointerType, shiftKey: g.native.shiftKey, stopPropagation: t }); break
  8715. } case "click": t = r.createScreenPointFromEvent(g); n = this._intersect(t, g.pointerType, p.forEachTool); n = this._findManipulatorByKey(n, p.forEachTool); if (e.isNone(n) || !n.interactive) break; n.events.emit(g.type, { screenPoint: t, button: g.button, pointerType: g.pointerType, shiftKey: g.native.shiftKey }); g.stopPropagation(); break; case "double-click": n =
  8716. r.createScreenPointFromEvent(g); f = this._intersect(n, g.pointerType, p.forEachTool); f = this._findManipulatorByKey(f, p.forEachTool); if (e.isNone(f) || !f.interactive) break; f.events.emit("double-click", { screenPoint: n, button: g.button, pointerType: g.pointerType, shiftKey: g.native.shiftKey, stopPropagation: t }); break; case "immediate-double-click": n = r.createScreenPointFromEvent(g), f = this._intersect(n, g.pointerType, p.forEachTool), f = this._findManipulatorByKey(f, p.forEachTool), !e.isNone(f) && f.interactive && f.events.emit("immediate-double-click",
  8717. { screenPoint: n, button: g.button, pointerType: g.pointerType, shiftKey: g.native.shiftKey, stopPropagation: t })
  8718. }this._onFocusChange(p.forEachTool)
  8719. }; m._ungrabManipulatorBeforeDragging = function (g, p, t) { g.grabbing = !1; g.events.emit("grab-changed", { action: "end", pointerType: t.pointerType, screenPoint: r.createScreenPointFromEvent(t) }); this._grabbedManipulators.forEach(({ key: n }, u) => { n.tool === p && p.manipulators.findById(n.manipulatorId) === g && this._grabbedManipulators.delete(u) }) }; m._handlePointerEnd = function (g, p) {
  8720. var t =
  8721. e.applySome(this._grabbedManipulators.get(g.pointerId), ({ key: n }) => n); t = this._findManipulatorByKey(t, p.forEachTool); e.isSome(t) && !t.dragging && (1 === this._grabbedManipulators.size && 0 === this._draggedManipulators.size && this._revertToActiveTool && (p.setActiveTool(this._currentlyActiveTool), this._revertToActiveTool = !1, this._currentlyActiveTool = null), t.grabbing && (t.grabbing = !1, t.events.emit("grab-changed", { action: "end", pointerType: g.pointerType, screenPoint: r.createScreenPointFromEvent(g) })), this._grabbedManipulators.delete(g.pointerId))
  8722. };
  8723. m._cursorFromMap = function (g, p) { let t = null; b.someMap(g, ({ key: n }) => { n = this._findManipulatorByKey(n, p); return e.isSome(n) && n.interactive && "cursor" in n && n.cursor ? (t = n.cursor, !0) : !1 }); return t }; m._onFocusChange = function (g) { this._updateCursor(g); this._updateFocusedManipulatorTools(g) }; m._updateCursor = function (g) {
  8724. this._cursor = 0 < this._grabbedManipulators.size ? this._cursorFromMap(this._grabbedManipulators, g) || "grabbing" : 0 < this._hoveredManipulators.size ? this._cursorFromMap(this._hoveredManipulators, g) || "pointer" :
  8725. null
  8726. }; m._updateFocusedManipulatorTools = function (g) { const p = new Set; this._grabbedManipulators.forEach(({ key: { tool: t } }) => { p.add(t) }); this._hoveredManipulators.forEach(({ key: { tool: t } }) => { p.add(t) }); g(t => { t.hasFocusedManipulators = p.has(t) }) }; m.clearPointers = function (g, p, t = !0, n) {
  8727. const u = f => f.tool === g && (e.isNone(n) || f.manipulatorId === n); this._grabbedManipulators.forEach(({ key: f, pointerType: h }, v) => {
  8728. u(f) && (this._grabbedManipulators.delete(v), f = this._findManipulatorByKey(f, p), e.isSome(f) && (f.grabbing = !1, f.events.emit("grab-changed",
  8729. { action: "end", screenPoint: null, pointerType: h })))
  8730. }); this._draggedManipulators.forEach(({ key: f }, h) => { u(f) && (this._draggedManipulators.delete(h), f = this._findManipulatorByKey(f, p), e.isSome(f) && (f.dragging = !1, f.events.emit("drag", { action: "cancel" }))) }); t && this._hoveredManipulators.forEach(({ key: f }, h) => { u(f) && (this._hoveredManipulators.delete(h), f = this._findManipulatorByKey(f, p), e.isSome(f) && (f.hovering = !1)) }); this._onFocusChange(p)
  8731. }; m._intersect = function (g, p, t) {
  8732. let n = null; t(u => {
  8733. if (null == u.manipulators ||
  8734. !l.areToolManipulatorsEditable(u)) return !1; const f = u.manipulators.intersect(g, p); if (e.isNone(f)) return !1; n = { manipulatorId: f.id, tool: u }; return !0
  8735. }); return n
  8736. }; m.updateHoveredStateFromKnownPointers = function (g) { this._pointerLocations.forEach((p, t) => { this._updateHoveredStateForPointerAtScreenPosition(d.createScreenPoint(p.x, p.y), t, p.pointerType, g) }) }; m.handleHoverEvent = function (g, p) {
  8737. "pointer-up" !== g.type && "immediate-click" !== g.type && "pointer-move" !== g.type || "mouse" !== g.pointerType || this._updateHoveredStateForPointerAtScreenPosition(r.createScreenPointFromEvent(g),
  8738. g.pointerId, g.pointerType, p)
  8739. }; m._updateHoveredStateForPointerAtScreenPosition = function (g, p, t, n) { g = this._intersect(g, t, n); t = this._findManipulatorByKey(g, n); var u = e.applySome(this._hoveredManipulators.get(p), ({ key: f }) => f); u = this._findManipulatorByKey(u, n); e.isSome(t) && !t.interactive && (t = null); u !== t && (e.isSome(u) && (u.hovering = !1), e.isSome(t) ? (t.hovering = !0, this._hoveredManipulators.set(p, { key: e.unwrap(g) })) : this._hoveredManipulators.delete(p), this._onFocusChange(n)) }; m._findManipulatorByKey = function (g,
  8740. p) { return this._findToolAndManipulatorByKey(g, p, q) ? q.manipulator : null }; m._findToolAndManipulatorByKey = function (g, p, t) { if (e.isNone(g)) return null; t.tool = null; t.manipulator = null; p(n => { if (n !== g.tool || null == n.manipulators || !l.areToolManipulatorsEditable(n)) return !1; const u = n.manipulators.findById(g.manipulatorId); return e.isSome(u) ? (t.manipulator = u, t.tool = n, !0) : !1 }); return t.manipulator ? t : null }; a._createClass(k, [{ key: "cursor", get: function () { return this._cursor } }]); return k
  8741. }()
  8742. })
  8743. }, "esri/views/support/screenUtils": function () {
  8744. define(["exports",
  8745. "../../core/has", "../../core/screenUtils"], function (a, b, c) {
  8746. function e(l) { return c.createScreenPoint(l.x, l.y) } function d(l, r) { l = (l instanceof HTMLElement ? l : l.surface).getBoundingClientRect(); return c.createScreenPoint(r.clientX - l.left, r.clientY - l.top) } a.createScreenPointArrayFromEvent = function (l) { return c.createScreenPointArray(l.x, l.y) }; a.createScreenPointFromEvent = e; a.createScreenPointFromNativeEvent = d; a.createScreenPointFromSupportedEvent = function (l, r) { return r instanceof Event ? d(l, r) : e(r) }; a.isSupportedScreenPointEvent =
  8747. function (l) { if (l instanceof Event) return !0; if ("object" === typeof l && "type" in l) switch (l.type) { case "click": case "double-click": case "pointer-down": case "pointer-drag": case "pointer-enter": case "pointer-leave": case "pointer-up": case "pointer-move": case "immediate-click": case "immediate-double-click": case "hold": case "drag": case "mouse-wheel": return !0 }return !1 }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8748. })
  8749. }, "esri/views/input/Input": function () {
  8750. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./gamepad/GamepadSettings".split(" "),
  8751. function (a, b, c, e, d, l, r, q, k) { c = function (m) { function g() { var p = m.apply(this, arguments) || this; p.gamepad = new k; return p } a._inheritsLoose(g, m); return g }(c); b.__decorate([e.property({ readOnly: !0 })], c.prototype, "gamepad", void 0); return c = b.__decorate([q.subclass("esri.views.input.Input")], c) })
  8752. }, "esri/views/input/gamepad/GamepadSettings": function () {
  8753. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/Collection ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./GamepadInputDevice".split(" "),
  8754. function (a, b, c, e, d, l, r, q, k, m) { c = function (g) { function p(...t) { t = g.call(this, ...t) || this; t.devices = new e; t.enabledFocusMode = "document"; return t } a._inheritsLoose(p, g); return p }(c); b.__decorate([d.property({ type: e.ofType(m), readOnly: !0 })], c.prototype, "devices", void 0); b.__decorate([d.property({ type: ["document", "view", "none"] })], c.prototype, "enabledFocusMode", void 0); return c = b.__decorate([k.subclass("esri.views.input.gamepad.GamepadSettings")], c) })
  8755. }, "esri/views/input/gamepad/GamepadInputDevice": function () {
  8756. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
  8757. function (a, b, c, e, d, l, r, q) {
  8758. c = function (g) {
  8759. function p(t) { var n = g.call(this) || this; n.nativeIndex = null; n._detectedDeviceType = "unknown"; "standard" === t.mapping ? n._detectedDeviceType = "standard" : k.test(t.id) ? n._detectedDeviceType = "spacemouse" : n._detectedDeviceType = "unknown"; n.nativeIndex = t.index; return n } a._inheritsLoose(p, g); a._createClass(p, [{ key: "native", get: function () { return (navigator.getGamepads ? navigator.getGamepads() : [])[this.nativeIndex] } }, { key: "deviceType", get: function () { return this._detectedDeviceType } },
  8760. { key: "axisThreshold", get: function () { return m[this.deviceType] } }]); return p
  8761. }(c); b.__decorate([e.property({ nonNullable: !0, readOnly: !0 })], c.prototype, "nativeIndex", void 0); b.__decorate([e.property({ type: String, readOnly: !0 })], c.prototype, "deviceType", null); b.__decorate([e.property({ type: Number, readOnly: !0 })], c.prototype, "axisThreshold", null); c = b.__decorate([q.subclass("esri.views.input.gamepad.GamepadInputDevice")], c); const k = /^(3dconnexion|space(mouse|navigator|pilot|explorer))/i, m = {
  8762. standard: .15, spacemouse: .025,
  8763. unknown: 0
  8764. }; return c
  8765. })
  8766. }, "esri/views/navigation/Navigation": function () {
  8767. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./gamepad/GamepadSettings".split(" "), function (a, b, c, e, d, l, r, q, k) {
  8768. c = function (m) {
  8769. function g(p) {
  8770. p = m.call(this, p) || this; p.browserTouchPanEnabled = !0; p.gamepad = new k; p.momentumEnabled =
  8771. !0; p.mouseWheelZoomEnabled = !0; return p
  8772. } a._inheritsLoose(g, m); return g
  8773. }(c); b.__decorate([e.property({ type: Boolean })], c.prototype, "browserTouchPanEnabled", void 0); b.__decorate([e.property({ type: k, nonNullable: !0 })], c.prototype, "gamepad", void 0); b.__decorate([e.property({ type: Boolean })], c.prototype, "momentumEnabled", void 0); b.__decorate([e.property({ type: Boolean })], c.prototype, "mouseWheelZoomEnabled", void 0); return c = b.__decorate([q.subclass("esri.views.navigation.Navigation")], c)
  8774. })
  8775. }, "esri/views/navigation/gamepad/GamepadSettings": function () {
  8776. define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/has ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../input/gamepad/GamepadInputDevice".split(" "),
  8777. function (a, b, c, e, d, l, r, q, k) {
  8778. c = function (m) { function g(p) { p = m.call(this, p) || this; p.enabled = !0; p.device = null; p.mode = "pan"; p.tiltDirection = "forward-down"; p.velocityFactor = 1; return p } a._inheritsLoose(g, m); return g }(c); b.__decorate([e.property({ type: Boolean, nonNullable: !0 })], c.prototype, "enabled", void 0); b.__decorate([e.property({ type: k })], c.prototype, "device", void 0); b.__decorate([e.property({ type: ["pan", "zoom"], nonNullable: !0 })], c.prototype, "mode", void 0); b.__decorate([e.property({
  8779. type: ["forward-down",
  8780. "forward-up"], nonNullable: !0
  8781. })], c.prototype, "tiltDirection", void 0); b.__decorate([e.property({ type: Number, nonNullable: !0 })], c.prototype, "velocityFactor", void 0); return c = b.__decorate([q.subclass("esri.views.navigation.gamepad.GamepadSettings")], c)
  8782. })
  8783. }, "esri/views/support/DefaultsFromMap": function () {
  8784. define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/maybe ../../core/promiseUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../geometry/support/heightModelInfoUtils ../ViewingMode ./projectionUtils".split(" "),
  8785. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  8786. a.DefaultsFromMap = function (u) {
  8787. function f(v) { v = u.call(this, v) || this; v.required = { tileInfo: !1, heightModelInfo: !1, extent: !1 }; v.defaultSpatialReference = null; v.userSpatialReference = null; v.sourcePreloadCount = 10; v.priorityCollection = null; v.requiresExtentInSpatialReference = !0; v.suspended = !1; v._projectExtentTask = { task: null, input: null, output: null, spatialReference: null }; return v } b._inheritsLoose(f, u); var h = f.prototype; h.destroy = function () {
  8788. this._projectExtentTask.task && (this._projectExtentTask.task =
  8789. d.abortMaybe(this._projectExtentTask.task)); this._set("map", null)
  8790. }; h._narrowDownSpatialReferenceCandidates = function (v, y) { if (d.isNone(v)) return y; const B = []; for (const x of v) for (const z of y) if (x.spatialReference.equals(z.spatialReference)) { v = x.viewingMode; var w = z.viewingMode; v = d.isSome(v) ? d.isSome(w) ? v === w ? v : !1 : v : w; if (!1 !== v) { B.push({ spatialReference: x.spatialReference, viewingMode: v }); break } } return 0 < B.length ? B : null }; h._pickSpatialReferenceCandidate = function (v) {
  8791. const y = this.defaultSpatialReference;
  8792. if (d.isNone(v) || 1 > v.length) return d.isSome(y) ? { spatialReference: y, viewingMode: null } : null; d.isSome(y) && 1 < v.length && v.some(({ spatialReference: B }) => B.equals(y)) && (v = v.filter(({ spatialReference: B }) => B.equals(y))); 1 < v.length && v.some(({ viewingMode: B }) => B !== t.ViewingMode.Local) && (v = v.filter(({ viewingMode: B }) => B !== t.ViewingMode.Local)); return v[0]
  8793. }; h._getSupportedSpatialReferences = function (v) {
  8794. var y = "supportedSpatialReferences" in v && v.supportedSpatialReferences || (v.spatialReference ? [v.spatialReference] : []);
  8795. if (0 === y.length) return []; const B = []; for (const w of y) if (y = this.getSpatialReferenceSupport({ spatialReference: w, layer: v }), d.isSome(y)) { y = d.isSome(y.constraints) ? y.constraints : [{ spatialReference: w, viewingMode: null }]; for (const { spatialReference: x, viewingMode: z } of y) (!this.requiresExtentInSpatialReference || d.isNone(this.userSpatialReference) || x.equals(this.userSpatialReference)) && B.push({ spatialReference: x, viewingMode: z }) } return B
  8796. }; h._pickExtentCandidate = function (v) {
  8797. const y = this.spatialReference; return v.find(({ extent: B }) =>
  8798. y.equals(B.spatialReference)) || v[0]
  8799. }; h._collectLayers = function (v) { var y; if ("loaded" !== this._loadMaybe(null == (y = this.map) ? void 0 : y.call(this))) return { layers: [], updating: !0 }; y = { layers: [], preloading: -1, updating: !1 }; for (const B of v) if (this._collectCollection(B, y), y.preloading === this.sourcePreloadCount) break; return { layers: y.layers, updating: y.updating } }; h._collectCollection = function (v, y) {
  8800. if (v.layers) {
  8801. switch (this._loadMaybe(v.parent)) { case "loading": y.updating = !0; ++y.preloading; return; case "failed": return }for (const B of v.layers) {
  8802. switch (this._loadMaybe(B)) {
  8803. case "failed": continue;
  8804. case "loading": y.updating = !0; ++y.preloading; break; case "loaded": y.updating || y.layers.push(B), "layers" in B && this._collectCollection({ layers: B.layers }, y)
  8805. }if (y.preloading === this.sourcePreloadCount) break
  8806. }
  8807. }
  8808. }; h._loadMaybe = function (v) { return v && "loadStatus" in v ? "not-loaded" === v.loadStatus ? (v.load(), "loading") : v.loadStatus : "loaded" }; b._createClass(f, [{ key: "ready", get: function () { return !this._spatialReferenceTask.updating && !this._tileInfoTask.updating && !this._extentTask.updating } }, {
  8809. key: "heightModelInfoReady",
  8810. get: function () { return !this._heightModelInfoTask.updating }
  8811. }, { key: "spatialReference", get: function () { return d.isSome(this.userSpatialReference) ? this.userSpatialReference : d.unwrap(this._spatialReferenceTask.spatialReference) } }, { key: "extent", get: function () { return d.unwrap(this._extentTask.extent) } }, { key: "heightModelInfo", get: function () { return d.unwrap(this._heightModelInfoTask.heightModelInfo) } }, { key: "vcsWkid", get: function () { return d.unwrap(this._heightModelInfoTask.vcsWkid) } }, { key: "latestVcsWkid", get: function () { return d.unwrap(this._heightModelInfoTask.latestVcsWkid) } },
  8812. { key: "viewingMode", get: function () { return d.isNone(this.userSpatialReference) || this.userSpatialReference.equals(d.unwrap(this._spatialReferenceTask.spatialReference)) ? d.unwrap(this._spatialReferenceTask.viewingMode) : null } }, { key: "tileInfo", get: function () { return d.unwrap(this._tileInfoTask.tileInfo) } }, {
  8813. key: "mapCollections", get: function () {
  8814. var v, y, B, w; const x = null == (v = this.map) ? void 0 : v.call(this); v = []; d.isSome(this.priorityCollection) && v.push(this.priorityCollection); v.push({
  8815. parent: null == x ? void 0 : x.basemap,
  8816. layers: null == x ? void 0 : null == (y = x.basemap) ? void 0 : y.baseLayers
  8817. }, { layers: null == x ? void 0 : x.layers }, { parent: null == x ? void 0 : x.ground, layers: null == x ? void 0 : null == (B = x.ground) ? void 0 : B.layers }, { parent: null == x ? void 0 : x.basemap, layers: null == x ? void 0 : null == (w = x.basemap) ? void 0 : w.referenceLayers }); return v
  8818. }
  8819. }, { key: "_allLayers", get: function () { return this._collectLayers(this.mapCollections) } }, {
  8820. key: "_spatialReferenceTask", get: function () {
  8821. if (this.suspended) {
  8822. var v; return null != (v = this._get("_spatialReferenceTask")) ?
  8823. v : { updating: !1 }
  8824. } const { layers: y, updating: B } = this._allLayers; v = null; for (var w of y) { var x = this._getSupportedSpatialReferences(w); 0 < x.length && (x = this._narrowDownSpatialReferenceCandidates(v, x), d.isSome(x) && (v = x)); if (d.isSome(v) && 1 === v.length) break } if (B && (d.isNone(v) || 1 !== v.length)) return { updating: !0 }; w = this._pickSpatialReferenceCandidate(v); return { spatialReference: d.isSome(w) ? w.spatialReference : null, viewingMode: d.isSome(w) ? w.viewingMode : null, updating: !1 }
  8825. }
  8826. }, {
  8827. key: "_tileInfoTask", get: function () {
  8828. var v,
  8829. y, B, w, x, z, C; if (!this.required.tileInfo) { var A; return null != (A = this._get("_tileInfoTask")) ? A : { updating: !1 } } if (!this.spatialReference) return { updating: this._spatialReferenceTask.updating }; const { layers: D, updating: F } = this._collectLayers([{ parent: null == (v = this.map) ? void 0 : null == (y = v.call(this)) ? void 0 : y.basemap, layers: null == (B = this.map) ? void 0 : null == (w = B.call(this)) ? void 0 : null == (x = w.basemap) ? void 0 : x.baseLayers }, { layers: null == (z = this.map) ? void 0 : null == (C = z.call(this)) ? void 0 : C.layers }]); return D && 0 < D.length &&
  8830. "tileInfo" in D[0] ? (v = D[0].tileInfo, { tileInfo: v && v.spatialReference.equals(this.spatialReference) ? v : null, updating: !1 }) : { updating: F }
  8831. }
  8832. }, {
  8833. key: "_heightModelInfoTask", get: function () {
  8834. var v; if (!this.required.heightModelInfo || this.suspended && null != (v = this._get("_heightModelInfoTask")) && v.heightModelInfo) { var y; return null != (y = this._get("_heightModelInfoTask")) ? y : { updating: !1 } } const { layers: B, updating: w } = this._allLayers; for (const C of B) if (p.supportsHeightModelInfo(C) && (v = p.deriveHeightModelInfoFromLayer(C))) {
  8835. var x,
  8836. z; return { heightModelInfo: v, vcsWkid: null == (x = C.spatialReference) ? void 0 : x.vcsWkid, latestVcsWkid: null == (z = C.spatialReference) ? void 0 : z.latestVcsWkid, updating: !1 }
  8837. } return { updating: w }
  8838. }
  8839. }, {
  8840. key: "_extentCandidatesTask", get: function () {
  8841. if (this.suspended || !this.required.extent) { var v; return null != (v = this._get("_extentCandidatesTask")) ? v : { updating: !1 } } if (!this.spatialReference) return { updating: this._spatialReferenceTask.updating }; var y = this._allLayers; v = y.updating; const B = []; for (const z of y.layers) {
  8842. var w; y = "fullExtents" in
  8843. z && z.fullExtents || (d.isSome(z.fullExtent) ? [z.fullExtent] : []); var x = this.requiresExtentInSpatialReference ? null : y[0]; if (x = null != (w = y.find(C => C.spatialReference.equals(this.spatialReference))) ? w : x) return { candidates: [{ extent: x, layer: z }], updating: !1 }; if (0 < this._getSupportedSpatialReferences(z).length) for (const C of y) B.push({ extent: C, layer: z })
  8844. } return { candidates: B, updating: v }
  8845. }
  8846. }, {
  8847. key: "_extentTask", get: function () {
  8848. var v = this; const { candidates: y, updating: B } = this._extentCandidatesTask; if (B) return { updating: B };
  8849. if (d.isNone(y) || 0 === y.length) return { updating: !1 }; if (!this.spatialReference) return { updating: this._spatialReferenceTask.updating }; const w = this._pickExtentCandidate(y), x = this.spatialReference; if (w.extent.equals(this._projectExtentTask.input) && x.equals(this._projectExtentTask.spatialReference)) return { extent: this._projectExtentTask.output, updating: d.isSome(this._projectExtentTask.task) && !this._projectExtentTask.task.finished }; d.isSome(this._projectExtentTask.task) && (this._projectExtentTask.task = d.abortMaybe(this._projectExtentTask.task));
  8850. this._projectExtentTask = { input: w.extent.clone(), output: null, spatialReference: x.clone(), task: l.createTask(function () { var z = b._asyncToGenerator(function* (C) { try { const A = yield n.projectWithEngineOrService(w.extent, x, w.layer.portalItem, C); v._projectExtentTask = { ...v._projectExtentTask, task: null, output: A } } catch (A) { l.isAborted(C) || (v._projectExtentTask = { ...v._projectExtentTask, task: null }) } }); return function (C) { return z.apply(this, arguments) } }()) }; return { updating: !0 }
  8851. }
  8852. }]); return f
  8853. }(e); c.__decorate([r.property()],
  8854. a.DefaultsFromMap.prototype, "required", void 0); c.__decorate([r.property({ constructOnly: !0 })], a.DefaultsFromMap.prototype, "map", void 0); c.__decorate([r.property({ constructOnly: !0 })], a.DefaultsFromMap.prototype, "getSpatialReferenceSupport", void 0); c.__decorate([r.property()], a.DefaultsFromMap.prototype, "defaultSpatialReference", void 0); c.__decorate([r.property()], a.DefaultsFromMap.prototype, "userSpatialReference", void 0); c.__decorate([r.property()], a.DefaultsFromMap.prototype, "sourcePreloadCount", void 0);
  8855. c.__decorate([r.property()], a.DefaultsFromMap.prototype, "priorityCollection", void 0); c.__decorate([r.property()], a.DefaultsFromMap.prototype, "requiresExtentInSpatialReference", void 0); c.__decorate([r.property()], a.DefaultsFromMap.prototype, "suspended", void 0); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "ready", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "heightModelInfoReady", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype,
  8856. "spatialReference", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "extent", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "heightModelInfo", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "vcsWkid", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "latestVcsWkid", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "viewingMode", null); c.__decorate([r.property({ readOnly: !0 })],
  8857. a.DefaultsFromMap.prototype, "tileInfo", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "mapCollections", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "_allLayers", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "_spatialReferenceTask", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "_tileInfoTask", null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "_heightModelInfoTask",
  8858. null); c.__decorate([r.property({ readOnly: !0 })], a.DefaultsFromMap.prototype, "_extentCandidatesTask", null); c.__decorate([r.property()], a.DefaultsFromMap.prototype, "_extentTask", null); c.__decorate([r.property()], a.DefaultsFromMap.prototype, "_projectExtentTask", void 0); a.DefaultsFromMap = c.__decorate([g.subclass("esri.views.support.DefaultsFromMap")], a.DefaultsFromMap); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8859. })
  8860. }, "esri/geometry/support/heightModelInfoUtils": function () {
  8861. define("exports ../../core/has ../../core/Error ../../core/maybe ../HeightModelInfo ../../layers/support/arcgisLayerUrl".split(" "),
  8862. function (a, b, c, e, d, l) {
  8863. function r(u, f, h) { if (!q(u) || !q(f)) return t.Unsupported; if (null == u || null == f) return t.Ok; if (!h && u.heightUnit !== f.heightUnit) return t.Units; if (u.heightModel !== f.heightModel) return t.HeightModel; switch (u.heightModel) { case "gravity-related-height": return t.Ok; case "ellipsoidal": return u.vertCRS === f.vertCRS ? t.Ok : t.CRS; default: return t.Unsupported } } function q(u) { return null == u || null != u.heightModel && null != u.heightUnit } function k(u) {
  8864. const f = u.url && l.parse(u.url); return (null != (u.spatialReference &&
  8865. u.spatialReference.vcsWkid) || !e.isSome(f) || "ImageServer" !== f.serverType) && "heightModelInfo" in u && u.heightModelInfo ? u.heightModelInfo : g(u) ? d.deriveUnitFromSR(n, u.spatialReference) : null
  8866. } function m(u) { if ("unknown" === u.type || !("capabilities" in u)) return !1; switch (u.type) { case "csv": case "feature": case "geojson": case "subtype-group": case "ogc-feature": case "wfs": return !0; case "imagery": case "map-image": case "map-notes": case "tile": case "vector-tile": case "scene": case null: return !1; default: return !1 } } function g(u) {
  8867. return m(u) ?
  8868. !!(u.capabilities && u.capabilities.data && u.capabilities.data.supportsZ) : p(u)
  8869. } function p(u) { switch (u.type) { case "building-scene": case "elevation": case "integrated-mesh": case "point-cloud": case "scene": case "voxel": return !0 }return !1 } var t; (function (u) { u[u.Ok = 0] = "Ok"; u[u.Units = 1] = "Units"; u[u.HeightModel = 2] = "HeightModel"; u[u.CRS = 3] = "CRS"; u[u.Unsupported = 4] = "Unsupported" })(t || (t = {})); const n = new d({ heightModel: "gravity-related-height" }); a.deriveHeightModelInfoFromLayer = k; a.rejectLayerError = function (u, f,
  8870. h) {
  8871. const v = k(u), y = r(v, f, h); if (v) { const B = d.deriveUnitFromSR(v, u.spatialReference).heightUnit; if (!h && B !== v.heightUnit) return f = new c("layerview:unmatched-height-unit", `The vertical units of the layer must match the horizontal units (${B})`, { horizontalUnit: B }), new c("layerview:unsupported-height-model-info", "The vertical coordinate system of the layer is not supported", { heightModelInfo: v, error: f }) } if (!("heightModelInfo" in u && null != u.heightModelInfo || null != u.spatialReference) && g(u) || y === t.Unsupported) return new c("layerview:unsupported-height-model-info",
  8872. "The vertical coordinate system of the layer is not supported", { heightModelInfo: v }); switch (y) {
  8873. case t.Units: return u = v.heightUnit || "unknown", h = f.heightUnit || "unknown", u = new c("layerview:incompatible-height-unit", `The vertical units of the layer (${u}) must match the vertical units of the scene (${h})`, { layerUnit: u, sceneUnit: h }), new c("layerview:incompatible-height-model-info", "The vertical coordinate system of the layer is incompatible with the scene", {
  8874. layerHeightModelInfo: v, sceneHeightModelInfo: f,
  8875. error: u
  8876. }); case t.HeightModel: return u = v.heightModel || "unknown", h = f.heightModel || "unknown", u = new c("layerview:incompatible-height-model", `The height model of the layer (${u}) must match the height model of the scene (${h})`, { layerHeightModel: u, sceneHeightModel: h }), new c("layerview:incompatible-height-model-info", "The vertical coordinate system of the layer is incompatible with the scene", { layerHeightModelInfo: v, sceneHeightModelInfo: f, error: u }); case t.CRS: return u = v.vertCRS || "unknown", h = f.vertCRS ||
  8877. "unknown", u = new c("layerview:incompatible-vertical-datum", `The vertical datum of the layer (${u}) must match the vertical datum of the scene (${h})`, { layerDatum: u, sceneDatum: h }), new c("layerview:incompatible-height-model-info", "The vertical coordinate system of the layer is incompatible with the scene", { layerHeightModelInfo: v, sceneHeightModelInfo: f, error: u })
  8878. }return null
  8879. }; a.supportsHeightModelInfo = function (u) { return null != u.layers || p(u) || m(u) || "heightModelInfo" in u }; a.validateWebSceneError = function (u,
  8880. f) { if (!u) return null; if (!q(u)) return new c("webscene:unsupported-height-model-info", "The vertical coordinate system of the scene is not supported", { heightModelInfo: u }); const h = u.heightUnit; u = d.deriveUnitFromSR(u, f).heightUnit; return h !== u ? new c("webscene:incompatible-height-unit", `The vertical units of the scene (${h}) must match the horizontal units of the scene (${u})`, { verticalUnit: h, horizontalUnit: u }) : null }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8881. })
  8882. },
  8883. "esri/views/ViewingMode": function () { define(["exports"], function (a) { a.ViewingMode = void 0; (function (b) { b[b.Global = 1] = "Global"; b[b.Local = 2] = "Local" })(a.ViewingMode || (a.ViewingMode = {})); a.stringFromViewingMode = function (b) { return b === a.ViewingMode.Global ? "global" : "local" }; a.viewingModeFromString = function (b) { return "global" === b ? a.ViewingMode.Global : a.ViewingMode.Local }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/views/support/projectionUtils": function () {
  8884. define(["require",
  8885. "exports", "../../chunks/_rollupPluginBabelHelpers", "../../core/promiseUtils", "../../geometry/projection"], function (a, b, c, e, d) {
  8886. function l(p) { return r.apply(this, arguments) } function r() { r = c._asyncToGenerator(function* (p) { m || (m = (new Promise((t, n) => a(["../../portal/support/geometryServiceUtils"], t, n))).then(t => g = t)); yield m; e.throwIfAborted(p) }); return r.apply(this, arguments) } function q(p, t, n, u) { return k.apply(this, arguments) } function k() {
  8887. k = c._asyncToGenerator(function* (p, t, n, u) {
  8888. if (!p) return null; const f =
  8889. p.spatialReference; if (d.isLoaded() || d.canProjectWithoutEngine(f, t)) return d.project(p, t); if (g) return g.projectGeometry(p, t, n, u); yield Promise.race([l(u), d.load(u)]); return q(p, t, n, u)
  8890. }); return k.apply(this, arguments)
  8891. } let m = null, g; b.projectWithEngineOrService = q; Object.defineProperties(b, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8892. })
  8893. }, "esri/views/ViewAnimation": function () {
  8894. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/Promise ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/has ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
  8895. function (a, b, c, e, d, l, r, q, k, m) {
  8896. e = function (g) {
  8897. function p(n) { n = g.call(this, n) || this; n.state = "running"; n.target = null; return n } a._inheritsLoose(p, g); var t = p.prototype; t.initialize = function () { this.addResolvingPromise(new Promise((n, u) => this._dfd = { resolve: n, reject: u })) }; t.stop = function () { "stopped" !== this.state && "finished" !== this.state && (this._set("state", "stopped"), this._dfd.reject(new c("ViewAnimation stopped"))) }; t.finish = function () {
  8898. "stopped" !== this.state && "finished" !== this.state && (this._set("state", "finished"),
  8899. this._dfd.resolve())
  8900. }; t.update = function (n, u) { u || (u = d.isPromiseLike(n) ? "waiting-for-target" : "running"); this._set("target", n); this._set("state", u) }; a._createClass(p, [{ key: "done", get: function () { return "finished" === this.state || "stopped" === this.state } }]); return p
  8901. }(e.EsriPromise); b.__decorate([l.property({ readOnly: !0 })], e.prototype, "done", null); b.__decorate([l.property({ readOnly: !0, type: String })], e.prototype, "state", void 0); b.__decorate([l.property()], e.prototype, "target", void 0); e = b.__decorate([m.subclass("esri.views.ViewAnimation")],
  8902. e); (e || (e = {})).State = { RUNNING: "running", STOPPED: "stopped", FINISHED: "finished", WAITING_FOR_TARGET: "waiting-for-target" }; return e
  8903. })
  8904. }, "esri/views/layers/LayerView": function () {
  8905. define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Evented ../../core/HandleOwner ../../core/Identifiable ../../core/Logger ../../core/maybe ../../core/Promise ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/has ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
  8906. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n) {
  8907. c = function (u) {
  8908. function f(v) { v = u.call(this, v) || this; v.layer = null; v.parent = null; return v } a._inheritsLoose(f, u); var h = f.prototype; h.initialize = function () { this.when().catch(v => { if ("layerview:create-error" !== v.name) { const y = this.layer && this.layer.id || "no id", B = this.layer && this.layer.title || "no title"; r.getLogger(this.declaredClass).error("#resolve()", `Failed to resolve layer view (layer title: '${B}', id: '${y}')`, v) } }) }; h.canResume = function () {
  8909. var v, y, B; return this.visible &&
  8910. (null == (v = this.layer) ? void 0 : v.loaded) && !(null != (y = this.parent) && y.suspended) && (null == (B = this.view) ? void 0 : B.ready) || !1
  8911. }; h.getSuspendInfo = function () { const v = this.parent && this.parent.suspended ? this.parent.suspendInfo : {}; this.view && this.view.ready || (v.viewNotReady = !0); this.layer && this.layer.loaded || (v.layerNotLoaded = !0); this.visible || (v.layerInvisible = !0); return v }; h.isUpdating = function () { return !1 }; a._createClass(f, [{
  8912. key: "fullOpacity", get: function () {
  8913. return q.unwrapOr(this.get("layer.opacity"), 1) * q.unwrapOr(this.get("parent.fullOpacity"),
  8914. 1)
  8915. }
  8916. }, { key: "suspended", get: function () { return !this.canResume() } }, { key: "suspendInfo", get: function () { return this.getSuspendInfo() } }, { key: "legendEnabled", get: function () { var v; return !this.suspended && !0 === (null == (v = this.layer) ? void 0 : v.legendEnabled) } }, { key: "updating", get: function () { var v; return !!(null != (v = this.updatingHandles) && v.updating || this.isUpdating()) } }, { key: "updatingProgress", get: function () { return this.updating ? 0 : 1 } }, {
  8917. key: "visible", get: function () { var v; return !0 === (null == (v = this.layer) ? void 0 : v.visible) },
  8918. set: function (v) { void 0 === v ? this._clearOverride("visible") : this._override("visible", v) }
  8919. }]); return f
  8920. }(d.HandleOwnerMixin(l.IdentifiableMixin(k.EsriPromiseMixin(e.EventedMixin(c))))); b.__decorate([m.property()], c.prototype, "fullOpacity", null); b.__decorate([m.property()], c.prototype, "layer", void 0); b.__decorate([m.property()], c.prototype, "parent", void 0); b.__decorate([m.property({ readOnly: !0 })], c.prototype, "suspended", null); b.__decorate([m.property({ readOnly: !0 })], c.prototype, "suspendInfo", null); b.__decorate([m.property({ readOnly: !0 })],
  8921. c.prototype, "legendEnabled", null); b.__decorate([m.property({ type: Boolean, readOnly: !0 })], c.prototype, "updating", null); b.__decorate([m.property({ readOnly: !0 })], c.prototype, "updatingProgress", null); b.__decorate([m.property()], c.prototype, "visible", null); b.__decorate([m.property()], c.prototype, "view", void 0); return c = b.__decorate([n.subclass("esri.views.layers.LayerView")], c)
  8922. })
  8923. }, "esri/widgets/Widget": function () {
  8924. define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../intl ../core/domUtils ../core/Evented ../core/events ../core/Handles ../core/has ../core/lang ../core/Logger ../core/maybe ../core/Promise ../core/promiseUtils ../core/reactiveUtils ../core/uuid ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/subclass ../core/accessorSupport/tracking ../core/accessorSupport/tracking/SimpleTrackingTarget ../libs/maquette-advanced-projector/projector ../chunks/componentsUtils ./support/jsxWidgetSupport ./support/tests ./support/vnodeCache ./support/widgetUtils ../intl/locale ../intl/messages".split(" "),
  8925. function (a, b, c, e, d, l, r, q, k, m, g, p, t, n, u, f, h, v, y, B, w, x, z, C, A, D, F, J) {
  8926. function M(K, S) { for (const fa in S) null != K[fa] && ("object" === typeof K[fa] && "object" === typeof S[fa] ? M(K[fa], S[fa]) : K[fa] = S[fa]); return K } const N = m.getLogger("esri.widgets.Widget"); let E = 0; const G = w.createAdvancedProjector({
  8927. postProcessProjectionOptions(K) {
  8928. const S = K.eventHandlerInterceptor, fa = /capture$/i; K.eventHandlerInterceptor = (ha, ba, O, na) => {
  8929. const ra = S(ha, ba, O, na), Da = fa.test(ha); ha = ha.replace(fa, ""); if (!(ha.toLowerCase() in O) || Da) {
  8930. const Ka =
  8931. ha[2].toLowerCase() + ha.slice(3), sa = oa => ra.call(O, oa); O.addEventListener(Ka, sa, Da); const W = na.afterRemoved; na.afterRemoved = oa => { null == W ? void 0 : W(oa); O.removeEventListener(Ka, sa, Da) }
  8932. } return ra
  8933. }
  8934. }, handleInterceptedEvent(K, S, fa, ha) { const { eventPhase: ba, type: O } = ha, na = ba === Event.CAPTURING_PHASE; let ra = `on${O}${na ? "capture" : ""}`; S = S.properties; if (!(ra in S || (ra = `on${O[0].toUpperCase()}${O.slice(1)}${na ? "Capture" : ""}`, ra in S))) return; A.clearVNodeCache(); K.scheduleRender(); S[ra].call(S.bind || fa, ha) }
  8935. }); let H =
  8936. !1; c = function (K) {
  8937. function S(ha, ba) {
  8938. var O = K.call(this, ha, ba) || this; O._attached = !1; O._internalHandles = new r; O._projector = G; O._readyForTrueRender = !1; O.domNode = null; O.iconClass = "esri-icon-checkbox-unchecked"; O.label = O.declaredClass.split(".").pop(); O.visible = !0; O.key = a._assertThisInitialized(O); O._loadLocale = t.debounce(a._asyncToGenerator(function* () {
  8939. if (O._messageBundleProps && O._messageBundleProps.length) {
  8940. const Ka = yield t.eachAlways(O._messageBundleProps.map(function () {
  8941. var sa = a._asyncToGenerator(function* ({ bundlePath: W,
  8942. propertyName: oa }) { W = yield J.fetchMessageBundle(W); O.uiStrings && Object.keys(O.uiStrings) && (W = M(k.clone(W), O.uiStrings)); O[oa] = W }); return function (W) { return sa.apply(this, arguments) }
  8943. }())); for (const sa of Ka) sa.error && N.error("widget-intl:locale-error", O.declaredClass, sa.error)
  8944. } yield O.loadLocale()
  8945. })); x.commitAssetPath(); const na = "esri-widget-uid-" + u.generateUUID(), ra = O.render.bind(a._assertThisInitialized(O)); O._trackingTarget = new B.SimpleTrackingTarget(() => O.scheduleRender()); const Da = () => {
  8946. var Ka;
  8947. if (!O._readyForTrueRender || O.destroyed) return null; if (!O.visible) return { vnodeSelector: "div", properties: { key: na, class: "", styles: { display: "none" } }, domNode: void 0, children: void 0, text: void 0 }; const sa = ra(); let { properties: W } = sa; W || (sa.properties = W = {}); let { key: oa, styles: ya } = W; oa || (W.key = na); ya || (W.styles = ya = {}); ya.display || (ya.display = ""); let I = 0; null == (Ka = sa.children) ? void 0 : Ka.forEach(P => { if (!z.isWidgetConstructor(P.vnodeSelector)) { var { properties: Z } = P; Z || (P.properties = Z = {}); Z.key || (Z.key = `${O.id}--${I++}`) } });
  8948. return z.processWidgets(a._assertThisInitialized(O), sa)
  8949. }; O.render = () => { if (H) return Da(); let Ka = A.getVNodeCache(a._assertThisInitialized(O)); if (Ka) return Ka; O._trackingTarget.clear(); H = !0; try { Ka = y.runTracked(O._trackingTarget, Da) } catch (sa) { throw console.error(sa), sa; } finally { H = !1 } A.setVNodeCache(a._assertThisInitialized(O), Ka); return Ka }; O.addResolvingPromise(O._resourcesFetch = O.beforeFirstRender().then(() => { O._readyForTrueRender = !0; O._postInitialize() })); C.registerLoading(O._resourcesFetch); return O
  8950. }
  8951. a._inheritsLoose(S, K); var fa = S.prototype; fa.normalizeCtorArgs = function (ha, ba) { ha = { ...ha }; ba && (ha.container = ba); return ha }; fa.postInitialize = function () { }; fa.beforeFirstRender = function () { return Promise.all([this.loadDependencies(), this._loadLocale()]).then(() => { }).catch(t.throwIfNotAbortError) }; fa.loadDependencies = function () { var ha = a._asyncToGenerator(function* () { }); return function () { return ha.apply(this, arguments) } }(); fa.loadLocale = function () {
  8952. var ha = a._asyncToGenerator(function* () { }); return function () {
  8953. return ha.apply(this,
  8954. arguments)
  8955. }
  8956. }(); fa.destroy = function () { this.destroyed || (g.destroyMaybe(this._trackingTarget), g.destroyMaybe(this.viewModel), this._detach(this.container), this._set("container", null), this._internalHandles.destroy(), this._emitter.clear(), this.render = () => null, this._projector = null, A.deleteVNodeCache(this)) }; fa.castContainer = function (ha) { return e.byId(ha) }; fa.render = function () { throw Error("not implemented"); }; fa.scheduleRender = function () { this.destroyed || (A.deleteVNodeCache(this), this._projector.scheduleRender()) };
  8957. fa.classes = function (...ha) { return D.classes.apply(this, ha) }; fa.renderNow = function () { A.deleteVNodeCache(this); this._projector.renderNow() }; fa._postInitialize = function () {
  8958. var ha, ba = this; this.destroyed || (this.scheduleRender(), null != (ha = this._delegatedEventNames) && ha.length && this._internalHandles.add(n.watch(() => this.viewModel, (O, na) => {
  8959. na && this._internalHandles.remove("delegated-events"); O && l.isEventTarget(O) && this._internalHandles.add(this._delegatedEventNames.map(ra => l.on(O, ra, Da => { this.emit(ra, Da) })),
  8960. "delegated-events")
  8961. }, n.initial)), this.postInitialize(), ha = function () { var O = a._asyncToGenerator(function* () { yield ba._loadLocale().catch(t.throwIfNotAbortError); ba.scheduleRender() }); return function () { return O.apply(this, arguments) } }(), this._internalHandles.add([F.onLocaleChange(ha), n.watch(() => this.uiStrings, ha), n.when(() => this.container, O => { this.destroyed || this._attach(O) }, { initial: !0, once: !0 })]))
  8962. }; fa._attach = function (ha) { ha && (this._projector.merge(ha, this.render), this._attached = !0) }; fa._detach =
  8963. function (ha) { ha && this._attached && (this._projector.detach(this.render), ha.parentNode && ha.parentNode.removeChild(ha), this._attached = !1) }; a._createClass(S, [{ key: "container", set: function (ha) { this._get("container") || this._set("container", ha) } }, { key: "id", get: function () { return this._get("id") || this.get("container.id") || Date.now().toString(16) + "-widget-" + E++ }, set: function (ha) { ha && this._set("id", ha) } }, { key: "renderable", get: function () { return this._resourcesFetch } }, { key: "test", get: function () { return { projector: this._projector } } }]);
  8964. return S
  8965. }(p.EsriPromiseMixin(d.EventedAccessor)); c[z.WIDGET_SYMBOL] = !0; b.__decorate([f.property()], c.prototype, "_readyForTrueRender", void 0); b.__decorate([f.property({ value: null })], c.prototype, "container", null); b.__decorate([h.cast("container")], c.prototype, "castContainer", null); b.__decorate([f.property({ aliasOf: "container" })], c.prototype, "domNode", void 0); b.__decorate([f.property()], c.prototype, "iconClass", void 0); b.__decorate([f.property()], c.prototype, "id", null); b.__decorate([f.property()], c.prototype,
  8966. "label", void 0); b.__decorate([f.property()], c.prototype, "renderable", null); b.__decorate([f.property()], c.prototype, "uiStrings", void 0); b.__decorate([f.property()], c.prototype, "viewModel", void 0); b.__decorate([f.property()], c.prototype, "visible", void 0); b.__decorate([f.property()], c.prototype, "key", void 0); b.__decorate([f.property()], c.prototype, "children", void 0); b.__decorate([f.property()], c.prototype, "afterCreate", void 0); b.__decorate([f.property()], c.prototype, "afterUpdate", void 0); b.__decorate([f.property()],
  8967. c.prototype, "afterRemoved", void 0); return c = b.__decorate([v.subclass("esri.widgets.Widget")], c)
  8968. })
  8969. }, "esri/core/domUtils": function () {
  8970. define(["exports"], function (a) {
  8971. const b = (() => { if ("function" === typeof Element.prototype.closest) return (e, d) => e.closest(d); const c = Element.prototype.matches || Element.prototype.msMatchesSelector; return (e, d) => { do { if (c.call(e, d)) return e; e = e.parentElement } while (null !== e && 1 === e.nodeType); return null } })(); a.byId = function (c) {
  8972. return "string" === typeof c ? document.getElementById(c) :
  8973. c
  8974. }; a.closest = b; a.empty = function (c) { for (; c.hasChildNodes();)c.removeChild(c.firstChild) }; a.insertAfter = function (c, e) { const d = e.parentNode; d && (d.lastChild === e ? d.appendChild(c) : d.insertBefore(c, e.nextSibling)) }; a.insertBefore = function (c, e) { const d = e.parentNode; d && d.insertBefore(c, e) }; a.remove = function (c) { c.parentNode && c.parentNode.removeChild(c) }; a.reparent = function (c, e) { for (; ;) { const d = c.firstChild; if (!d) break; e.appendChild(d) } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  8975. })
  8976. },
  8977. "esri/core/uuid": function () { define(["exports"], function (a) { const b = "randomUUID" in crypto; a.generateUUID = function () { if (b) return crypto.randomUUID(); const c = crypto.getRandomValues(new Uint16Array(8)); c[3] = c[3] & 4095 | 16384; c[4] = c[4] & 16383 | 32768; return c[0].toString(16) + c[1].toString(16) + "-" + c[2].toString(16) + "-" + c[3].toString(16) + "-" + c[4].toString(16) + "-" + c[5].toString(16) + c[6].toString(16) + c[7].toString(16) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) },
  8978. "esri/libs/maquette-advanced-projector/projector": function () {
  8979. define(["exports", "../maquette/dom", "../maquette/projector", "./advanced-projector-options", "./utils"], function (a, b, c, e, d) {
  8980. const l = (k, m) => { const g = []; for (; k && k !== m;)g.push(k), k = k.parentNode; return g }, r = (k, m) => k.find(m), q = (k, m, g = !1) => { let p = k; m.forEach((t, n) => { var u; const f = null != (u = p) && u.children ? r(p.children, h => h.domNode === t) : void 0; if (!g || f || n === m.length - 1) p = f }); return p }; a.createAdvancedProjector = k => {
  8981. let m; const g = {
  8982. ...e.defaultAdvancedProjectorOptions,
  8983. ...k
  8984. }, p = d.applyDefaultProjectionOptions(g), t = p.performanceLogger; let n = !0, u, f = !1; const h = [], v = [], y = (w, x, z) => {
  8985. let C; p.eventHandlerInterceptor = (D, F, J, M) => function (N) {
  8986. t("domEvent", N); var E = l(N.currentTarget, C.domNode); const G = E.some(K => { var S; return customElements.get(null == K ? void 0 : null == (S = K.tagName) ? void 0 : S.toLowerCase()) }); N.eventPhase !== Event.CAPTURING_PHASE && G ? (E = N.composedPath(), E = E.slice(E.indexOf(N.currentTarget), E.indexOf(C.domNode)).filter(K => K.getRootNode() === K.ownerDocument).reverse(),
  8987. E = q(C.getLastRender(), E, !0)) : (E.reverse(), E = q(C.getLastRender(), E)); let H; E && (H = g.handleInterceptedEvent(m, E, this, N)); t("domEventProcessed", N); return H
  8988. }; null == g.postProcessProjectionOptions ? void 0 : g.postProcessProjectionOptions(p); const A = z(); C = w(x, A, p); h.push(C); v.push(z); g.afterFirstVNodeRendered && g.afterFirstVNodeRendered(C, A)
  8989. }; let B = () => {
  8990. u = void 0; if (n) {
  8991. n = !1; t("renderStart", void 0); for (let w = 0; w < h.length; w++) { const x = v[w](); t("rendered", void 0); h[w].update(x); t("patched", void 0) } t("renderDone",
  8992. void 0); n = !0
  8993. }
  8994. }; g.modifyDoRenderImplementation && (B = g.modifyDoRenderImplementation(B, h, v)); return m = {
  8995. renderNow: B, scheduleRender: () => { u || f || (u = requestAnimationFrame(B)) }, stop: () => { u && (cancelAnimationFrame(u), u = void 0); f = !0 }, resume: () => { f = !1; n = !0; m.scheduleRender() }, append: (w, x) => { y(b.dom.append, w, x) }, insertBefore: (w, x) => { y(b.dom.insertBefore, w, x) }, merge: (w, x) => { y(b.dom.merge, w, x) }, replace: (w, x) => { y(b.dom.replace, w, x) }, detach: w => {
  8996. for (let x = 0; x < v.length; x++)if (v[x] === w) return v.splice(x, 1), h.splice(x,
  8997. 1)[0]; throw Error("renderFunction was not found");
  8998. }
  8999. }
  9000. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9001. })
  9002. }, "esri/libs/maquette/dom": function () {
  9003. define(["exports", "./projection"], function (a, b) {
  9004. const c = { namespace: void 0, performanceLogger: () => { }, eventHandlerInterceptor: void 0, styleApplyer: (e, d, l) => { "-" === d.charAt(0) ? e.style.setProperty(d, l) : e.style[d] = l } }; a.applyDefaultProjectionOptions = e => b.extend(c, e); a.dom = {
  9005. create: (e, d) => {
  9006. d = b.extend(c, d); b.createDom(e, document.createElement("div"),
  9007. void 0, d); return b.createProjection(e, d)
  9008. }, append: (e, d, l) => { l = b.extend(c, l); b.createDom(d, e, void 0, l); return b.createProjection(d, l) }, insertBefore: (e, d, l) => { l = b.extend(c, l); b.createDom(d, e.parentNode, e, l); return b.createProjection(d, l) }, merge: (e, d, l) => { l = b.extend(c, l); d.domNode = e; b.initPropertiesAndChildren(e, d, l); return b.createProjection(d, l) }, replace: (e, d, l) => { l = b.extend(c, l); b.createDom(d, e.parentNode, e, l); e.parentNode.removeChild(e); return b.createProjection(d, l) }
  9009. }; Object.defineProperties(a, {
  9010. __esModule: { value: !0 },
  9011. [Symbol.toStringTag]: { value: "Module" }
  9012. })
  9013. })
  9014. }, "esri/libs/maquette/projection": function () {
  9015. define(["exports", "../../widgets/support/widgetUtils"], function (a, b) {
  9016. let c = [], e = (y, B) => { let w = {}; Object.keys(y).forEach(x => { w[x] = y[x] }); B && Object.keys(B).forEach(x => { w[x] = B[x] }); return w }, d = (y, B) => y.vnodeSelector !== B.vnodeSelector ? !1 : y.properties && B.properties ? y.properties.key !== B.properties.key ? !1 : y.properties.bind === B.properties.bind : !y.properties && !B.properties, l = y => {
  9017. if ("string" !== typeof y) throw Error("Style values must be strings");
  9018. }, r = (y, B, w, x) => { let z = y[B]; if ("" !== z.vnodeSelector) { var C = z.properties; if (!(C && (void 0 === C.key ? C.bind : C.key))) for (C = 0; C < y.length; C++)if (C !== B && d(y[C], z)) throw Error(`${w.vnodeSelector} had a ${z.vnodeSelector} child ${"added" === x ? x : "removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`); } }, q = [], k = !1, m = y => { (y.children || []).forEach(m); y.properties && y.properties.afterRemoved && y.properties.afterRemoved.apply(y.properties.bind || y.properties, [y.domNode]) },
  9019. g = () => { k = !1; q.forEach(m); q.length = 0 }, p = y => { q.push(y); k || (k = !0, "undefined" !== typeof window && "requestIdleCallback" in window ? window.requestIdleCallback(g, { timeout: 16 }) : setTimeout(g, 16)) }, t = y => { let B = y.domNode; if (y.properties) { let w = y.properties.exitAnimation; if (w) { B.style.pointerEvents = "none"; w(B, () => { B.parentNode && (B.parentNode.removeChild(B), p(y)) }, y.properties); return } } B.parentNode && (B.parentNode.removeChild(B), p(y)) }, n = (y, B, w) => {
  9020. if (B) {
  9021. var x = w.eventHandlerInterceptor, z = Object.keys(B), C = z.length; for (let M =
  9022. 0; M < C; M++) {
  9023. var A = z[M]; let N = B[A]; if ("className" === A) throw Error('Property "className" is not supported, use "class".'); if ("class" === A) v(y, N, !0); else if ("classes" === A) { A = Object.keys(N); var D = A.length; for (var F = 0; F < D; F++) { var J = A[F]; N[J] && y.classList.add(J) } } else if ("styles" === A) for (A = Object.keys(N), D = A.length, F = 0; F < D; F++) { J = A[F]; let E = N[J]; E && (l(E), w.styleApplyer(y, J, E)) } else "key" !== A && null !== N && void 0 !== N && (D = typeof N, "function" === D ? (0 === A.lastIndexOf("on", 0) && (x && (N = x(A, N, y, B)), "oninput" === A && function () {
  9024. let E =
  9025. N; N = function (G) { E.apply(this, [G]); G.target["oninput-value"] = G.target.value }
  9026. }()), y[A] = N) : "http://www.w3.org/2000/svg" === w.namespace ? "href" === A ? y.setAttributeNS("http://www.w3.org/1999/xlink", A, N) : y.setAttribute(A, N) : "string" === D && "value" !== A ? "innerHTML" === A ? y[A] = b.renderingSanitizer.sanitize(N) : y.setAttribute(A, N) : y[A] = N)
  9027. }
  9028. }
  9029. }, u = (y, B, w) => {
  9030. var x = B.children; if (x) for (let z of x) f(z, y, void 0, w); B.text && (y.textContent = B.text); n(y, B.properties, w); B.properties && B.properties.afterCreate && B.properties.afterCreate.apply(B.properties.bind ||
  9031. B.properties, [y, w, B.vnodeSelector, B.properties, B.children])
  9032. }, f = (y, B, w, x) => {
  9033. let z; var C = 0; let A = y.vnodeSelector, D = B.ownerDocument; if ("" === A) z = y.domNode = D.createTextNode(y.text), void 0 !== w ? B.insertBefore(z, w) : B.appendChild(z); else {
  9034. for (let J = 0; J <= A.length; ++J) {
  9035. var F = A.charAt(J); if (J === A.length || "." === F || "#" === F) F = A.charAt(C - 1), C = A.slice(C, J), "." === F ? z.classList.add(C) : "#" === F ? z.id = C : ("svg" === C && (x = e(x, { namespace: "http://www.w3.org/2000/svg" })), void 0 !== x.namespace ? z = y.domNode = D.createElementNS(x.namespace,
  9036. C) : (z = y.domNode = y.domNode || D.createElement(C), "input" === C && y.properties && void 0 !== y.properties.type && z.setAttribute("type", y.properties.type)), void 0 !== w ? B.insertBefore(z, w) : z.parentNode !== B && B.appendChild(z)), C = J + 1
  9037. } u(z, y, x)
  9038. }
  9039. }, h, v = (y, B, w) => { B && B.split(" ").forEach(x => { x && y.classList.toggle(x, w) }) }; h = (y, B, w) => {
  9040. let x = y.domNode; if (y === B) return !1; let z = !1; if ("" === B.vnodeSelector) {
  9041. if (B.text !== y.text) return y = x.ownerDocument.createTextNode(B.text), x.parentNode.replaceChild(y, x), B.domNode = y, !0; B.domNode =
  9042. x
  9043. } else {
  9044. 0 === B.vnodeSelector.lastIndexOf("svg", 0) && (w = e(w, { namespace: "http://www.w3.org/2000/svg" })); y.text !== B.text && (z = !0, void 0 === B.text ? x.removeChild(x.firstChild) : x.textContent = B.text); B.domNode = x; var C = y.children; var A = B.children, D = w; if (C === A) C = !1; else {
  9045. C = C || c; A = A || c; for (var F = C.length, J = A.length, M = 0, N = 0, E = !1; N < J;) {
  9046. var G = M < F ? C[M] : void 0, H = A[N]; if (void 0 !== G && d(G, H)) E = h(G, H, D) || E, M++; else {
  9047. b: { G = C; var K = H, S = M + 1; if ("" !== K.vnodeSelector) for (; S < G.length; S++)if (d(G[S], K)) { G = S; break b } G = -1 } if (0 <= G) {
  9048. for (; M <
  9049. G; M++)t(C[M]), r(C, M, B, "removed"); E = h(C[G], H, D) || E; M = G + 1
  9050. } else f(H, x, M < F ? C[M].domNode : void 0, D), H.properties && (G = H.properties.enterAnimation) && G(H.domNode, H.properties), r(A, N, B, "added")
  9051. } N++
  9052. } if (F > M) for (; M < F; M++)t(C[M]), r(C, M, B, "removed"); C = E
  9053. } z = C || z; C = y.properties; A = B.properties; D = w; if (A) {
  9054. F = !1; J = Object.keys(A); N = J.length; for (E = 0; E < N; E++)if (G = J[E], H = A[G], M = C[G], "class" === G) M !== H && (v(x, M, !1), v(x, H, !0)); else if ("classes" === G) {
  9055. G = x.classList; K = Object.keys(H); S = K.length; for (var fa = 0; fa < S; fa++) {
  9056. var ha = K[fa];
  9057. let ba = !!H[ha]; ba !== !!M[ha] && (F = !0, ba ? G.add(ha) : G.remove(ha))
  9058. }
  9059. } else if ("styles" === G) for (G = Object.keys(H), K = G.length, S = 0; S < K; S++)fa = G[S], ha = H[fa], ha !== M[fa] && (F = !0, ha ? (l(ha), D.styleApplyer(x, fa, ha)) : D.styleApplyer(x, fa, "")); else H || "string" !== typeof M || (H = ""), "value" === G ? (K = x[G], K !== H && (x["oninput-value"] ? K === x["oninput-value"] : H !== M) && (x[G] = H, x["oninput-value"] = void 0), H !== M && (F = !0)) : H !== M && (M = typeof H, "function" === M && D.eventHandlerInterceptor || ("http://www.w3.org/2000/svg" === D.namespace ? "href" ===
  9060. G ? x.setAttributeNS("http://www.w3.org/1999/xlink", G, H) : x.setAttribute(G, H) : "string" === M ? "innerHTML" === G ? x[G] = b.renderingSanitizer.sanitize(H) : "role" === G && "" === H ? x.removeAttribute(G) : x.setAttribute(G, H) : x[G] !== H && (x[G] = H), F = !0)); C = F
  9061. } else C = void 0; z = C || z; B.properties && B.properties.afterUpdate && B.properties.afterUpdate.apply(B.properties.bind || B.properties, [x, w, B.vnodeSelector, B.properties, B.children])
  9062. } z && B.properties && B.properties.updateAnimation && B.properties.updateAnimation(x, B.properties, y.properties);
  9063. return !1
  9064. }; a.createDom = f; a.createProjection = (y, B) => ({ getLastRender: () => y, update: w => { if (y.vnodeSelector !== w.vnodeSelector) throw Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)"); let x = y; y = w; h(x, w, B) }, domNode: y.domNode }); a.extend = e; a.initPropertiesAndChildren = u; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9065. })
  9066. }, "esri/widgets/support/widgetUtils": function () {
  9067. define("exports ../../core/ArrayPool ../../core/handleUtils ../../core/has ../../core/Logger ./vnodeCache".split(" "),
  9068. function (a, b, c, e, d, l) {
  9069. function r() {
  9070. return {
  9071. "align-content": !1, "align-items": !1, "align-self": !1, "alignment-adjust": !1, "alignment-baseline": !1, all: !1, "anchor-point": !1, animation: !1, "animation-delay": !1, "animation-direction": !1, "animation-duration": !1, "animation-fill-mode": !1, "animation-iteration-count": !1, "animation-name": !1, "animation-play-state": !1, "animation-timing-function": !1, azimuth: !1, "backface-visibility": !1, background: !0, "background-attachment": !0, "background-clip": !0, "background-color": !0,
  9072. "background-image": !0, "background-origin": !0, "background-position": !0, "background-repeat": !0, "background-size": !0, "baseline-shift": !1, binding: !1, bleed: !1, "bookmark-label": !1, "bookmark-level": !1, "bookmark-state": !1, border: !0, "border-bottom": !0, "border-bottom-color": !0, "border-bottom-left-radius": !0, "border-bottom-right-radius": !0, "border-bottom-style": !0, "border-bottom-width": !0, "border-collapse": !0, "border-color": !0, "border-image": !0, "border-image-outset": !0, "border-image-repeat": !0, "border-image-slice": !0,
  9073. "border-image-source": !0, "border-image-width": !0, "border-left": !0, "border-left-color": !0, "border-left-style": !0, "border-left-width": !0, "border-radius": !0, "border-right": !0, "border-right-color": !0, "border-right-style": !0, "border-right-width": !0, "border-spacing": !0, "border-style": !0, "border-top": !0, "border-top-color": !0, "border-top-left-radius": !0, "border-top-right-radius": !0, "border-top-style": !0, "border-top-width": !0, "border-width": !0, bottom: !1, "box-decoration-break": !0, "box-shadow": !0, "box-sizing": !0,
  9074. "box-snap": !0, "box-suppress": !0, "break-after": !0, "break-before": !0, "break-inside": !0, "caption-side": !1, chains: !1, clear: !0, clip: !1, "clip-path": !1, "clip-rule": !1, color: !0, "color-interpolation-filters": !0, "column-count": !1, "column-fill": !1, "column-gap": !1, "column-rule": !1, "column-rule-color": !1, "column-rule-style": !1, "column-rule-width": !1, "column-span": !1, "column-width": !1, columns: !1, contain: !1, content: !1, "counter-increment": !1, "counter-reset": !1, "counter-set": !1, crop: !1, cue: !1, "cue-after": !1, "cue-before": !1,
  9075. cursor: !1, direction: !1, display: !0, "display-inside": !0, "display-list": !0, "display-outside": !0, "dominant-baseline": !1, elevation: !1, "empty-cells": !1, filter: !1, flex: !1, "flex-basis": !1, "flex-direction": !1, "flex-flow": !1, "flex-grow": !1, "flex-shrink": !1, "flex-wrap": !1, "float": !1, "float-offset": !1, "flood-color": !1, "flood-opacity": !1, "flow-from": !1, "flow-into": !1, font: !0, "font-family": !0, "font-feature-settings": !0, "font-kerning": !0, "font-language-override": !0, "font-size": !0, "font-size-adjust": !0, "font-stretch": !0,
  9076. "font-style": !0, "font-synthesis": !0, "font-variant": !0, "font-variant-alternates": !0, "font-variant-caps": !0, "font-variant-east-asian": !0, "font-variant-ligatures": !0, "font-variant-numeric": !0, "font-variant-position": !0, "font-weight": !0, grid: !1, "grid-area": !1, "grid-auto-columns": !1, "grid-auto-flow": !1, "grid-auto-rows": !1, "grid-column": !1, "grid-column-end": !1, "grid-column-start": !1, "grid-row": !1, "grid-row-end": !1, "grid-row-start": !1, "grid-template": !1, "grid-template-areas": !1, "grid-template-columns": !1,
  9077. "grid-template-rows": !1, "hanging-punctuation": !1, height: !0, hyphens: !1, icon: !1, "image-orientation": !1, "image-resolution": !1, "ime-mode": !1, "initial-letters": !1, "inline-box-align": !1, "justify-content": !1, "justify-items": !1, "justify-self": !1, left: !1, "letter-spacing": !0, "lighting-color": !0, "line-box-contain": !1, "line-break": !1, "line-grid": !1, "line-height": !1, "line-snap": !1, "line-stacking": !1, "line-stacking-ruby": !1, "line-stacking-shift": !1, "line-stacking-strategy": !1, "list-style": !0, "list-style-image": !0,
  9078. "list-style-position": !0, "list-style-type": !0, margin: !0, "margin-bottom": !0, "margin-left": !0, "margin-right": !0, "margin-top": !0, "marker-offset": !1, "marker-side": !1, marks: !1, mask: !1, "mask-box": !1, "mask-box-outset": !1, "mask-box-repeat": !1, "mask-box-slice": !1, "mask-box-source": !1, "mask-box-width": !1, "mask-clip": !1, "mask-image": !1, "mask-origin": !1, "mask-position": !1, "mask-repeat": !1, "mask-size": !1, "mask-source-type": !1, "mask-type": !1, "max-height": !0, "max-lines": !1, "max-width": !0, "min-height": !0, "min-width": !0,
  9079. "move-to": !1, "nav-down": !1, "nav-index": !1, "nav-left": !1, "nav-right": !1, "nav-up": !1, "object-fit": !1, "object-position": !1, opacity: !1, order: !1, orphans: !1, outline: !1, "outline-color": !1, "outline-offset": !1, "outline-style": !1, "outline-width": !1, overflow: !1, "overflow-wrap": !1, "overflow-x": !1, "overflow-y": !1, padding: !0, "padding-bottom": !0, "padding-left": !0, "padding-right": !0, "padding-top": !0, page: !1, "page-break-after": !1, "page-break-before": !1, "page-break-inside": !1, "page-policy": !1, pause: !1, "pause-after": !1,
  9080. "pause-before": !1, perspective: !1, "perspective-origin": !1, pitch: !1, "pitch-range": !1, "play-during": !1, position: !1, "presentation-level": !1, quotes: !1, "region-fragment": !1, resize: !1, rest: !1, "rest-after": !1, "rest-before": !1, richness: !1, right: !1, rotation: !1, "rotation-point": !1, "ruby-align": !1, "ruby-merge": !1, "ruby-position": !1, "shape-image-threshold": !1, "shape-outside": !1, "shape-margin": !1, size: !1, speak: !1, "speak-as": !1, "speak-header": !1, "speak-numeral": !1, "speak-punctuation": !1, "speech-rate": !1, stress: !1,
  9081. "string-set": !1, "tab-size": !1, "table-layout": !1, "text-align": !0, "text-align-last": !0, "text-combine-upright": !0, "text-decoration": !0, "text-decoration-color": !0, "text-decoration-line": !0, "text-decoration-skip": !0, "text-decoration-style": !0, "text-emphasis": !0, "text-emphasis-color": !0, "text-emphasis-position": !0, "text-emphasis-style": !0, "text-height": !0, "text-indent": !0, "text-justify": !0, "text-orientation": !0, "text-overflow": !0, "text-shadow": !0, "text-space-collapse": !0, "text-transform": !0, "text-underline-position": !0,
  9082. "text-wrap": !0, top: !1, transform: !1, "transform-origin": !1, "transform-style": !1, transition: !1, "transition-delay": !1, "transition-duration": !1, "transition-property": !1, "transition-timing-function": !1, "unicode-bidi": !1, "vertical-align": !1, visibility: !1, "voice-balance": !1, "voice-duration": !1, "voice-family": !1, "voice-pitch": !1, "voice-range": !1, "voice-rate": !1, "voice-stress": !1, "voice-volume": !1, volume: !1, "white-space": !1, widows: !1, width: !0, "will-change": !1, "word-break": !0, "word-spacing": !0, "word-wrap": !0,
  9083. "wrap-flow": !1, "wrap-through": !1, "writing-mode": !1, "z-index": !1
  9084. }
  9085. } function q(ja) { ja = ja || {}; var wa = {}, za; for (za in ja) wa[za] = ja[za]; ja = wa; ja.whiteList = ja.whiteList || S.whiteList; ja.onAttr = ja.onAttr || S.onAttr; ja.onIgnoreAttr = ja.onIgnoreAttr || S.onIgnoreAttr; ja.safeAttrValue = ja.safeAttrValue || S.safeAttrValue; this.options = ja } function k() {
  9086. return {
  9087. a: ["target", "href", "title"], abbr: ["title"], address: [], area: ["shape", "coords", "href", "alt"], article: [], aside: [], audio: "autoplay controls crossorigin loop muted preload src".split(" "),
  9088. b: [], bdi: ["dir"], bdo: ["dir"], big: [], blockquote: ["cite"], br: [], caption: [], center: [], cite: [], code: [], col: ["align", "valign", "span", "width"], colgroup: ["align", "valign", "span", "width"], dd: [], del: ["datetime"], details: ["open"], div: [], dl: [], dt: [], em: [], figcaption: [], figure: [], font: ["color", "size", "face"], footer: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], header: [], hr: [], i: [], img: ["src", "alt", "title", "width", "height"], ins: ["datetime"], li: [], mark: [], nav: [], ol: [], p: [], pre: [], s: [], section: [], small: [], span: [], sub: [],
  9089. summary: [], sup: [], strong: [], strike: [], table: ["width", "border", "align", "valign"], tbody: ["align", "valign"], td: ["width", "rowspan", "colspan", "align", "valign"], tfoot: ["align", "valign"], th: ["width", "rowspan", "colspan", "align", "valign"], thead: ["align", "valign"], tr: ["rowspan", "align", "valign"], tt: [], u: [], ul: [], video: "autoplay controls crossorigin loop muted playsinline poster preload src height width".split(" ")
  9090. }
  9091. } function m(ja) { return ja.replace(ra, "\x26lt;").replace(Da, "\x26gt;") } function g(ja) {
  9092. return ja.replace(Ka,
  9093. "\x26quot;")
  9094. } function p(ja) { return ja.replace(sa, '"') } function t(ja) { return ja.replace(W, function (wa, za) { return "x" === za[0] || "X" === za[0] ? String.fromCharCode(parseInt(za.substr(1), 16)) : String.fromCharCode(parseInt(za, 10)) }) } function n(ja) { return ja.replace(oa, ":").replace(ya, " ") } function u(ja) { for (var wa = "", za = 0, Ga = ja.length; za < Ga; za++)wa += 32 > ja.charCodeAt(za) ? " " : ja.charAt(za); return O.trim(wa) } function f(ja) { ja = p(ja); ja = t(ja); ja = n(ja); return ja = u(ja) } function h(ja) { ja = g(ja); return ja = m(ja) } function v(ja,
  9095. wa) { for (; wa < ja.length; wa++) { var za = ja[wa]; if (" " !== za) return "\x3d" === za ? wa : -1 } } function y(ja, wa) { for (; 0 < wa; wa--) { var za = ja[wa]; if (" " !== za) return "\x3d" === za ? wa : -1 } } function B(ja) { var wa = '"' === ja[0] && '"' === ja[ja.length - 1] || "'" === ja[0] && "'" === ja[ja.length - 1] ? !0 : !1; return wa ? ja.substr(1, ja.length - 2) : ja } function w(ja) { var wa = L.spaceIndex(ja); if (-1 === wa) return { html: "", closing: "/" === ja[ja.length - 2] }; ja = L.trim(ja.slice(wa + 1, -1)); (wa = "/" === ja[ja.length - 1]) && (ja = L.trim(ja.slice(0, -1))); return { html: ja, closing: wa } }
  9096. function x(ja) {
  9097. ja = ja || {}; var wa = {}, za; for (za in ja) wa[za] = ja[za]; ja = wa; ja.stripIgnoreTag && (ja.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), ja.onIgnoreTag = ea.onIgnoreTagStripAll); ja.whiteList = ja.whiteList || ja.allowList || ea.whiteList; ja.onTag = ja.onTag || ea.onTag; ja.onTagAttr = ja.onTagAttr || ea.onTagAttr; ja.onIgnoreTag = ja.onIgnoreTag || ea.onIgnoreTag; ja.onIgnoreTagAttr = ja.onIgnoreTagAttr || ea.onIgnoreTagAttr; ja.safeAttrValue = ja.safeAttrValue ||
  9098. ea.safeAttrValue; ja.escapeHtml = ja.escapeHtml || ea.escapeHtml; this.options = ja; !1 === ja.css ? this.cssFilter = !1 : (ja.css = ja.css || {}, this.cssFilter = new da(ja.css))
  9099. } function z(ja) { ja = null == ja ? void 0 : ja.closest("[dir]"); return null !== ja && ja instanceof HTMLElement && "rtl" === ja.dir || "rtl" === document.dir } e = Object.prototype; var C = Function.prototype.toString, A = e.hasOwnProperty, D = C.call(Object), F = e.toString, J = function (ja, wa) { return function (za) { return ja(wa(za)) } }(Object.getPrototypeOf, Object), M = function (ja) {
  9100. var wa;
  9101. if (!(wa = !(ja && "object" == typeof ja) || "[object Object]" != F.call(ja)) && (wa = !1, null != ja && "function" != typeof ja.toString)) try { wa = !!(ja + "") } catch (za) { } if (wa) return !1; ja = J(ja); if (null === ja) return !0; ja = A.call(ja, "constructor") && ja.constructor; return "function" == typeof ja && ja instanceof ja && C.call(ja) == D
  9102. }, N = { exports: {} }, E = {}; e = { exports: {} }; var G = {}, H = /javascript\s*:/gim; G.whiteList = r(); G.getDefaultWhiteList = r; G.onAttr = function (ja, wa, za) { }; G.onIgnoreAttr = function (ja, wa, za) { }; G.safeAttrValue = function (ja, wa) {
  9103. return H.test(wa) ?
  9104. "" : wa
  9105. }; var K = { indexOf: function (ja, wa) { var za; if (Array.prototype.indexOf) return ja.indexOf(wa); var Ga = 0; for (za = ja.length; Ga < za; Ga++)if (ja[Ga] === wa) return Ga; return -1 }, forEach: function (ja, wa, za) { var Ga; if (Array.prototype.forEach) return ja.forEach(wa, za); var Na = 0; for (Ga = ja.length; Na < Ga; Na++)wa.call(za, ja[Na], Na, ja) }, trim: function (ja) { return String.prototype.trim ? ja.trim() : ja.replace(/(^\s*)|(\s*$)/g, "") }, trimRight: function (ja) { return String.prototype.trimRight ? ja.trimRight() : ja.replace(/(\s*$)/g, "") } },
  9106. S = G, fa = function (ja, wa) { function za() { if (!Na) { var Ea = K.trim(ja.slice(ca, ma)), Oa = Ea.indexOf(":"); if (-1 !== Oa) { var Ia = K.trim(Ea.slice(0, Oa)); Oa = K.trim(Ea.slice(Oa + 1)); Ia && (Ea = wa(ca, Ba.length, Ia, Oa, Ea)) && (Ba += Ea + "; ") } } ca = ma + 1 } ja = K.trimRight(ja); ";" !== ja[ja.length - 1] && (ja += ";"); for (var Ga = ja.length, Na = !1, ca = 0, ma = 0, Ba = ""; ma < Ga; ma++) { var xa = ja[ma]; if ("/" === xa && "*" === ja[ma + 1]) { xa = ja.indexOf("*/", ma + 2); if (-1 === xa) break; ma = xa + 1; ca = ma + 1; Na = !1 } else "(" === xa ? Na = !0 : ")" === xa ? Na = !1 : ";" === xa ? Na || za() : "\n" === xa && za() } return K.trim(Ba) };
  9107. q.prototype.process = function (ja) { ja = (ja || "").toString(); if (!ja) return ""; var wa = this.options, za = wa.whiteList, Ga = wa.onAttr, Na = wa.onIgnoreAttr, ca = wa.safeAttrValue; return fa(ja, function (ma, Ba, xa, Ea, Oa) { var Ia = za[xa], Ta = !1; !0 === Ia ? Ta = Ia : "function" === typeof Ia ? Ta = Ia(Ea) : Ia instanceof RegExp && (Ta = Ia.test(Ea)); !0 !== Ta && (Ta = !1); if (Ea = ca(xa, Ea)) { ma = { position: Ba, sourcePosition: ma, source: Oa, isWhite: Ta }; if (Ta) return Ta = Ga(xa, Ea, ma), void 0 === Ta || null === Ta ? xa + ":" + Ea : Ta; Ta = Na(xa, Ea, ma); if (void 0 !== Ta && null !== Ta) return Ta } }) };
  9108. (function (ja, wa) { wa = ja.exports = function (Ga, Na) { return (new q(Na)).process(Ga) }; wa.FilterCSS = q; for (var za in G) wa[za] = G[za] })(e, e.exports); var ha = {
  9109. indexOf: function (ja, wa) { var za; if (Array.prototype.indexOf) return ja.indexOf(wa); var Ga = 0; for (za = ja.length; Ga < za; Ga++)if (ja[Ga] === wa) return Ga; return -1 }, forEach: function (ja, wa, za) { var Ga; if (Array.prototype.forEach) return ja.forEach(wa, za); var Na = 0; for (Ga = ja.length; Na < Ga; Na++)wa.call(za, ja[Na], Na, ja) }, trim: function (ja) {
  9110. return String.prototype.trim ? ja.trim() :
  9111. ja.replace(/(^\s*)|(\s*$)/g, "")
  9112. }, spaceIndex: function (ja) { return (ja = /\s|\n|\t/.exec(ja)) ? ja.index : -1 }
  9113. }, ba = e.exports.getDefaultWhiteList, O = ha, na = new e.exports.FilterCSS, ra = /</g, Da = />/g, Ka = /"/g, sa = /&quot;/g, W = /&#([a-zA-Z0-9]*);?/gim, oa = /&colon;?/gim, ya = /&newline;?/gim, I = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, P = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, Z = /u\s*r\s*l\s*\(.*/gi; E.whiteList = k(); E.getDefaultWhiteList = k; E.onTag = function (ja, wa, za) { }; E.onIgnoreTag =
  9114. function (ja, wa, za) { }; E.onTagAttr = function (ja, wa, za) { }; E.onIgnoreTagAttr = function (ja, wa, za) { }; E.safeAttrValue = function (ja, wa, za, Ga) {
  9115. za = f(za); if ("href" === wa || "src" === wa) { za = O.trim(za); if ("#" === za) return "#"; if ("http://" !== za.substr(0, 7) && "https://" !== za.substr(0, 8) && "mailto:" !== za.substr(0, 7) && "tel:" !== za.substr(0, 4) && "data:image/" !== za.substr(0, 11) && "ftp://" !== za.substr(0, 6) && "./" !== za.substr(0, 2) && "../" !== za.substr(0, 3) && "#" !== za[0] && "/" !== za[0]) return "" } else if ("background" === wa) {
  9116. if (I.lastIndex = 0,
  9117. I.test(za)) return ""
  9118. } else if ("style" === wa) { P.lastIndex = 0; if (P.test(za)) return ""; Z.lastIndex = 0; if (Z.test(za) && (I.lastIndex = 0, I.test(za))) return ""; !1 !== Ga && (Ga = Ga || na, za = Ga.process(za)) } return za = h(za)
  9119. }; E.escapeHtml = m; E.escapeQuote = g; E.unescapeQuote = p; E.escapeHtmlEntities = t; E.escapeDangerHtml5Entities = n; E.clearNonPrintableCharacter = u; E.friendlyAttrValue = f; E.escapeAttrValue = h; E.onIgnoreTagStripAll = function () { return "" }; E.StripTagBody = function (ja, wa) {
  9120. "function" !== typeof wa && (wa = function () { }); var za = !Array.isArray(ja),
  9121. Ga = [], Na = !1; return { onIgnoreTag: function (ca, ma, Ba) { var xa = za ? !0 : -1 !== O.indexOf(ja, ca); if (xa) { if (Ba.isClosing) return Ga.push([!1 !== Na ? Na : Ba.position, Ba.position + 10]), Na = !1, "[/removed]"; Na || (Na = Ba.position); return "[removed]" } return wa(ca, ma, Ba) }, remove: function (ca) { var ma = "", Ba = 0; O.forEach(Ga, function (xa) { ma += ca.slice(Ba, xa[0]); Ba = xa[1] }); return ma += ca.slice(Ba) } }
  9122. }; E.stripCommentTag = function (ja) {
  9123. for (var wa = "", za = 0; za < ja.length;) {
  9124. var Ga = ja.indexOf("\x3c!--", za); if (-1 === Ga) { wa += ja.slice(za); break } wa +=
  9125. ja.slice(za, Ga); za = ja.indexOf("--\x3e", Ga); if (-1 === za) break; za += 3
  9126. } return wa
  9127. }; E.stripBlankChar = function (ja) { ja = ja.split(""); ja = ja.filter(function (wa) { wa = wa.charCodeAt(0); return 127 === wa ? !1 : 31 >= wa ? 10 === wa || 13 === wa ? !0 : !1 : !0 }); return ja.join("") }; E.cssFilter = na; E.getDefaultCSSWhiteList = ba; var Q = {}, V = /[^a-zA-Z0-9_:\.\-]/gim; Q.parseTag = function (ja, wa, za) {
  9128. var Ga = "", Na = 0, ca = !1, ma = !1, Ba = 0, xa = ja.length, Ea = "", Oa = ""; Ba = 0; a: for (; Ba < xa; Ba++)if (Oa = ja.charAt(Ba), !1 === ca) "\x3c" === Oa && (ca = Ba); else if (!1 === ma) if ("\x3c" ===
  9129. Oa) Ga += za(ja.slice(Na, Ba)), Na = ca = Ba; else if ("\x3e" === Oa) Ga += za(ja.slice(Na, ca)), Na = Oa = ja.slice(ca, Ba + 1), Ea = ha.spaceIndex(Na), Na = -1 === Ea ? Na.slice(1, -1) : Na.slice(1, Ea + 1), Na = ha.trim(Na).toLowerCase(), "/" === Na.slice(0, 1) && (Na = Na.slice(1)), "/" === Na.slice(-1) && (Na = Na.slice(0, -1)), Ea = Na, Ga += wa(ca, Ga.length, Ea, Oa, "\x3c/" === Oa.slice(0, 2)), Na = Ba + 1, ca = !1; else { if ('"' === Oa || "'" === Oa) { Ea = 1; for (var Ia = ja.charAt(Ba - Ea); "" === Ia.trim() || "\x3d" === Ia;) { if ("\x3d" === Ia) { ma = Oa; continue a } Ia = ja.charAt(Ba - ++Ea) } } } else Oa ===
  9130. ma && (ma = !1); Na < ja.length && (Ga += za(ja.substr(Na))); return Ga
  9131. }; Q.parseAttr = function (ja, wa) {
  9132. function za(Ea, Oa) { Ea = ha.trim(Ea); Ea = Ea.replace(V, "").toLowerCase(); 1 > Ea.length || (Ea = wa(Ea, Oa || "")) && Na.push(Ea) } for (var Ga = 0, Na = [], ca = !1, ma = ja.length, Ba = 0; Ba < ma; Ba++) {
  9133. var xa = ja.charAt(Ba); if (!1 === ca && "\x3d" === xa) ca = ja.slice(Ga, Ba), Ga = Ba + 1; else {
  9134. if (!1 !== ca && Ba === Ga && ('"' === xa || "'" === xa) && "\x3d" === ja.charAt(Ba - 1)) if (xa = ja.indexOf(xa, Ba + 1), -1 === xa) break; else {
  9135. Ga = ha.trim(ja.slice(Ga + 1, xa)); za(ca, Ga); ca = !1; Ba = xa; Ga =
  9136. Ba + 1; continue
  9137. } /\s|\n|\t/.test(xa) && (ja = ja.replace(/\s|\n|\t/g, " "), !1 === ca ? (xa = v(ja, Ba), -1 === xa ? (Ga = ha.trim(ja.slice(Ga, Ba)), za(Ga), ca = !1, Ga = Ba + 1) : Ba = xa - 1) : (xa = y(ja, Ba - 1), -1 === xa && (Ga = ha.trim(ja.slice(Ga, Ba)), Ga = B(Ga), za(ca, Ga), ca = !1, Ga = Ba + 1)))
  9138. }
  9139. } Ga < ja.length && (!1 === ca ? za(ja.slice(Ga)) : za(ca, B(ha.trim(ja.slice(Ga))))); return ha.trim(Na.join(" "))
  9140. }; var da = e.exports.FilterCSS, ea = E, pa = Q.parseTag, la = Q.parseAttr, L = ha; x.prototype.process = function (ja) {
  9141. ja = (ja || "").toString(); if (!ja) return ""; var wa = this.options,
  9142. za = wa.whiteList, Ga = wa.onTag, Na = wa.onIgnoreTag, ca = wa.onTagAttr, ma = wa.onIgnoreTagAttr, Ba = wa.safeAttrValue, xa = wa.escapeHtml, Ea = this.cssFilter; wa.stripBlankChar && (ja = ea.stripBlankChar(ja)); wa.allowCommentTag || (ja = ea.stripCommentTag(ja)); var Oa = !1; wa.stripIgnoreTagBody && (Oa = ea.StripTagBody(wa.stripIgnoreTagBody, Na), Na = Oa.onIgnoreTag); ja = pa(ja, function (Ia, Ta, Qa, Za, $a) {
  9143. Ia = { sourcePosition: Ia, position: Ta, isClosing: $a, isWhite: za.hasOwnProperty(Qa) }; Ta = Ga(Qa, Za, Ia); if (void 0 !== Ta && null !== Ta) return Ta; if (Ia.isWhite) {
  9144. if (Ia.isClosing) return "\x3c/" +
  9145. Qa + "\x3e"; Ia = w(Za); var cb = za[Qa]; Ta = la(Ia.html, function (qa, fb) { var hb = -1 !== L.indexOf(cb, qa), gb = ca(Qa, qa, fb, hb); if (void 0 !== gb && null !== gb) return gb; if (hb) return (fb = Ba(Qa, qa, fb, Ea)) ? qa + '\x3d"' + fb + '"' : qa; gb = ma(Qa, qa, fb, hb); if (void 0 !== gb && null !== gb) return gb }); Za = "\x3c" + Qa; Ta && (Za += " " + Ta); Ia.closing && (Za += " /"); return Za + "\x3e"
  9146. } Ta = Na(Qa, Za, Ia); return void 0 !== Ta && null !== Ta ? Ta : xa(Za)
  9147. }, xa); Oa && (ja = Oa.remove(ja)); return ja
  9148. }; (function (ja, wa) {
  9149. function za(ca, ma) { return (new Ga(ma)).process(ca) } var Ga = x; wa =
  9150. ja.exports = za; wa.filterXSS = za; wa.FilterXSS = Ga; for (var Na in E) wa[Na] = E[Na]; for (Na in Q) wa[Na] = Q[Na]; "undefined" !== typeof self && "undefined" !== typeof DedicatedWorkerGlobalScope && self instanceof DedicatedWorkerGlobalScope && (self.filterXSS = ja.exports)
  9151. })(N, N.exports); e = function () {
  9152. function ja(wa, za) {
  9153. var Ga = this; this.arcgisWhiteList = {
  9154. a: ["href", "style", "target"], abbr: ["title"], audio: ["autoplay", "controls", "loop", "muted", "preload"], b: [], br: [], dd: ["style"], div: ["align", "style"], dl: ["style"], dt: ["style"], em: [],
  9155. figcaption: ["style"], figure: ["style"], font: ["color", "face", "size", "style"], h1: ["style"], h2: ["style"], h3: ["style"], h4: ["style"], h5: ["style"], h6: ["style"], hr: [], i: [], img: "alt border height src style width".split(" "), li: [], ol: [], p: ["style"], source: ["media", "src", "type"], span: ["style"], strong: [], sub: ["style"], sup: ["style"], table: "border cellpadding cellspacing height style width".split(" "), tbody: [], tr: ["align", "height", "style", "valign"], td: "align colspan height nowrap rowspan style valign width".split(" "),
  9156. th: "align colspan height nowrap rowspan style valign width".split(" "), u: [], ul: [], video: "autoplay controls height loop muted poster preload width".split(" ")
  9157. }; this.allowedProtocols = "http https mailto iform tel flow lfmobile arcgis-navigator arcgis-appstudio-player arcgis-survey123 arcgis-collector arcgis-workforce arcgis-explorer arcgis-trek2there arcgis-quickcapture mspbi comgooglemaps pdfefile pdfehttp pdfehttps boxapp boxemm awb awbs gropen radarscope".split(" "); this.arcgisFilterOptions = {
  9158. allowCommentTag: !0,
  9159. safeAttrValue: function (ca, ma, Ba, xa) { return "a" === ca && "href" === ma || ("img" === ca || "source" === ca) && "src" === ma ? Ga.sanitizeUrl(Ba) : N.exports.safeAttrValue(ca, ma, Ba, xa) }
  9160. }; if (wa && !za) var Na = wa; else wa && za ? (Na = Object.create(this.arcgisFilterOptions), Object.keys(wa).forEach(function (ca) { "whiteList" === ca ? Na.whiteList = Ga._extendObjectOfArrays([Ga.arcgisWhiteList, wa.whiteList || {}]) : Na[ca] = wa[ca] })) : (Na = Object.create(this.arcgisFilterOptions), Na.whiteList = this.arcgisWhiteList); this.xssFilterOptions = Na; this._xssFilter =
  9161. new N.exports.FilterXSS(Na)
  9162. } ja.prototype.sanitize = function (wa, za) { void 0 === za && (za = {}); switch (typeof wa) { case "number": return isNaN(wa) || !isFinite(wa) ? null : wa; case "boolean": return wa; case "string": return this._xssFilter.process(wa); case "object": return this._iterateOverObject(wa, za); default: if (!za.allowUndefined || "undefined" !== typeof wa) return null } }; ja.prototype.sanitizeUrl = function (wa, za) {
  9163. za = (null !== za && void 0 !== za ? za : {}).isProtocolRequired; za = void 0 === za ? !0 : za; var Ga = this._trim(wa.substring(0,
  9164. wa.indexOf(":"))), Na = "/" === wa, ca = /^#/.test(wa), ma = Ga && -1 < this.allowedProtocols.indexOf(Ga.toLowerCase()); return Na || ca || ma ? N.exports.escapeAttrValue(wa) : Ga || za ? "" : N.exports.escapeAttrValue("https://".concat(wa))
  9165. }; ja.prototype.sanitizeHTMLAttribute = function (wa, za, Ga, Na) { return "function" === typeof this.xssFilterOptions.safeAttrValue ? this.xssFilterOptions.safeAttrValue(wa, za, Ga, Na) : N.exports.safeAttrValue(wa, za, Ga, Na) }; ja.prototype.validate = function (wa, za) {
  9166. void 0 === za && (za = {}); za = this.sanitize(wa, za);
  9167. return { isValid: wa === za, sanitized: za }
  9168. }; ja.prototype._extendObjectOfArrays = function (wa) { var za = {}; wa.forEach(function (Ga) { Object.keys(Ga).forEach(function (Na) { Array.isArray(Ga[Na]) && Array.isArray(za[Na]) ? za[Na] = za[Na].concat(Ga[Na]) : za[Na] = Ga[Na] }) }); return za }; ja.prototype._iterateOverObject = function (wa, za) {
  9169. var Ga = this; void 0 === za && (za = {}); try {
  9170. var Na = !1, ca = void 0; if (Array.isArray(wa)) ca = wa.reduce(function (ma, Ba) { var xa = Ga.validate(Ba, za); if (xa.isValid) return ma.concat([Ba]); Na = !0; return ma.concat([xa.sanitized]) },
  9171. []); else if (M(wa)) ca = Object.keys(wa).reduce(function (ma, Ba) { var xa = wa[Ba], Ea = Ga.validate(xa, za); Ea.isValid ? ma[Ba] = xa : (Na = !0, ma[Ba] = Ea.sanitized); return ma }, {}); else return za.allowUndefined && "undefined" === typeof wa ? void 0 : null; return Na ? ca : wa
  9172. } catch (ma) { return null }
  9173. }; ja.prototype._trim = function (wa) { return String.prototype.trim ? wa.trim() : wa.replace(/(^\s*)|(\s*$)/g, "") }; return ja
  9174. }(); var R, X, ta = function (ja) {
  9175. if ("WebkitTransition" in ja.style) R = "webkitTransitionEnd", X = "webkitAnimationEnd"; else if ("transition" in
  9176. ja.style) R = "transitionend", X = "animationend"; else throw Error("Your browser is not supported!");
  9177. }, Ca = function (ja, wa) { void 0 === wa && (wa = ja + "-active"); return function (za) { R || ta(za); var Ga = !1, Na = function (ca) { Ga || (Ga = !0, za.removeEventListener(R, Na), za.removeEventListener(X, Na), za.classList.remove(ja), za.classList.remove(wa)) }; za.classList.add(ja); za.addEventListener(R, Na); za.addEventListener(X, Na); requestAnimationFrame(function () { za.classList.add(wa) }) } }, Ha = function (ja, wa) {
  9178. void 0 === wa && (wa = ja + "-active");
  9179. return function (za, Ga) { R || ta(za); var Na = !1, ca = function (ma) { Na || (Na = !0, za.removeEventListener(R, ca), za.removeEventListener(X, ca), Ga()) }; za.classList.add(ja); za.addEventListener(R, ca); za.addEventListener(X, ca); requestAnimationFrame(function () { za.classList.add(wa) }) }
  9180. }; const Ra = d.getLogger("esri.widgets.support.widgetUtils"); d = (() => {
  9181. const ja = new Map, wa = new ResizeObserver(za => { l.clearVNodeCache(); for (const Ga of za) ja.get(Ga.target)(Ga) }); return (za, Ga, Na) => {
  9182. ja.has(za) && Ra.error("Already observing element",
  9183. za); ja.set(za, Ga); wa.observe(za, Na); return c.makeHandle(() => { wa.unobserve(za); ja.delete(za) })
  9184. }
  9185. })(); ba = "dd dl dt h1 h2 h3 h4 h5 h6 sub sup animate animatetransform circle clippath defs ellipse g image line lineargradient marker mask path pattern polygon polyline radialgradient rect stop svg switch symbol text textpath tspan use".split(" "); const Ua = ba.reduce((ja, wa) => { ja[wa] = []; return ja }, {}), Xa = "align alink alt bgcolor border cellpadding cellspacing class color cols colspan coords d dir face height hspace ismap lang marginheight marginwidth multiple nohref noresize noshade nowrap ref rel rev rows rowspan scrolling shape span summary tabindex title usemap valign value vlink vspace width".split(" ");
  9186. e = new e({ whiteList: Ua, onTagAttr: (ja, wa, za) => { ja = `${wa}="${za}"`; if (Xa.includes(wa)) return ja }, stripIgnoreTag: !0, stripIgnoreTagBody: ["script", "style"] }, !0); a.additionalAllowedTags = ba; a.classes = function (ja) { const wa = b.acquire(); for (var za = 0; za < arguments.length; za++) { const Ga = arguments[za], Na = typeof Ga; if ("string" === Na) wa.push(Ga); else if (Array.isArray(Ga)) wa.push.apply(wa, Ga); else if ("object" === Na) for (const ca in Ga) Ga[ca] && wa.push(ca) } za = wa.join(" "); b.release(wa); return za }; a.cssTransition = function (ja,
  9187. wa) { return ("enter" === ja ? Ca : Ha)(wa) }; a.discardNode = function (ja) { this[ja.getAttribute("data-node-ref")] = null }; a.getDir = function (ja) { return z(ja) ? "rtl" : "ltr" }; a.isActivationKey = function (ja) { return "Enter" === ja || " " === ja }; a.isRTL = z; a.keepMenuItemWithinView = function (ja, wa) { const za = ja.getBoundingClientRect(); wa = wa.getBoundingClientRect(); const Ga = za.top, Na = wa.top; (za.top + za.height > wa.top + wa.height || Ga < Na) && ja.scrollIntoView({ block: "end" }) }; a.onResize = d; a.renderingSanitizer = e; a.safeAttrs = Xa; a.storeNode =
  9188. function (ja) { this[ja.getAttribute("data-node-ref")] = ja }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9189. })
  9190. }, "esri/widgets/support/vnodeCache": function () { define(["exports"], function (a) { const b = new Map; a.clearVNodeCache = function () { b.clear() }; a.deleteVNodeCache = function (c) { b.delete(c) }; a.getVNodeCache = function (c) { return b.get(c) }; a.setVNodeCache = function (c, e) { b.set(c, e) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) },
  9191. "esri/libs/maquette/projector": function () {
  9192. define(["exports", "./dom"], function (a, b) {
  9193. let c; c = Array.prototype.find ? (l, r) => l.find(r) : (l, r) => l.filter(r)[0]; let e = (l, r) => { let q = l; r.forEach(k => { q = q && q.children ? c(q.children, m => m.domNode === k) : void 0 }); return q }, d = (l, r, q) => {
  9194. let k = function (m) {
  9195. q("domEvent", m); var g = r(); { var p = m.currentTarget; var t = g.domNode; let u = []; for (; p && p !== t;)u.push(p), p = p.parentNode; p = u } p.reverse(); g = e(g.getLastRender(), p); l.scheduleRender(); let n; g && (n = g.properties[`on${m.type}`].apply(g.properties.bind ||
  9196. this, arguments)); q("domEventProcessed", m); return n
  9197. }; return (m, g, p, t) => k
  9198. }; a.createProjector = l => {
  9199. let r, q = b.applyDefaultProjectionOptions(l), k = q.performanceLogger, m = !0, g, p = !1, t = [], n = [], u = (h, v, y) => { let B; q.eventHandlerInterceptor = d(r, () => B, k); B = h(v, y(), q); t.push(B); n.push(y) }, f = () => { g = void 0; if (m) { m = !1; k("renderStart", void 0); for (let h = 0; h < t.length; h++) { let v = n[h](); k("rendered", void 0); t[h].update(v); k("patched", void 0) } k("renderDone", void 0); m = !0 } }; return r = {
  9200. renderNow: f, scheduleRender: () => {
  9201. g || p || (g =
  9202. requestAnimationFrame(f))
  9203. }, stop: () => { g && (cancelAnimationFrame(g), g = void 0); p = !0 }, resume: () => { p = !1; m = !0; r.scheduleRender() }, append: (h, v) => { u(b.dom.append, h, v) }, insertBefore: (h, v) => { u(b.dom.insertBefore, h, v) }, merge: (h, v) => { u(b.dom.merge, h, v) }, replace: (h, v) => { u(b.dom.replace, h, v) }, detach: h => { for (let v = 0; v < n.length; v++)if (n[v] === h) return n.splice(v, 1), t.splice(v, 1)[0]; throw Error("renderFunction was not found"); }
  9204. }
  9205. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9206. })
  9207. },
  9208. "esri/libs/maquette-advanced-projector/advanced-projector-options": function () { define(["exports"], function (a) { a.defaultAdvancedProjectorOptions = { handleInterceptedEvent: (b, c, e, d) => { b.scheduleRender(); return c.properties[`on${d.type}`].apply(c.properties.bind || e, [d]) } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/libs/maquette-advanced-projector/utils": function () {
  9209. define(["exports"], function (a) {
  9210. const b = {
  9211. namespace: void 0, performanceLogger: () => { }, eventHandlerInterceptor: void 0,
  9212. styleApplyer: (c, e, d) => { c.style[e] = d }
  9213. }; a.applyDefaultProjectionOptions = c => ({ ...b, ...c }); Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9214. })
  9215. }, "esri/chunks/componentsUtils": function () {
  9216. define(["exports", "../assets", "../core/has", "../core/urlUtils"], function (a, b, c, e) {
  9217. let d, l, r, q = !1, k = !1, m = !1, g = !1, p = !1; const t = "undefined" !== typeof window ? window : {}; null; const n = t.document || { head: {} }; c = t.HTMLElement || class { }; const u = {
  9218. $flags$: 0, $resourcesUrl$: "", jmp: ca => ca(), raf: ca =>
  9219. requestAnimationFrame(ca), ael: (ca, ma, Ba, xa) => ca.addEventListener(ma, Ba, xa), rel: (ca, ma, Ba, xa) => ca.removeEventListener(ma, Ba, xa), ce: (ca, ma) => new CustomEvent(ca, ma)
  9220. }, f = (() => { let ca = !1; try { n.addEventListener("e", null, Object.defineProperty({}, "passive", { get() { ca = !0 } })) } catch (ma) { } return ca })(); a: { try { new CSSStyleSheet; var h = "function" === typeof (new CSSStyleSheet).replace; break a } catch (ca) { } h = !1 } const v = h, y = (ca, ma, Ba, xa) => {
  9221. Ba && Ba.map(([Ea, Oa, Ia]) => {
  9222. const Ta = Ea & 4 ? n : Ea & 8 ? t : Ea & 16 ? n.body : ca, Qa = B(ma, Ia), Za = f ?
  9223. { passive: 0 !== (Ea & 1), capture: 0 !== (Ea & 2) } : 0 !== (Ea & 2); u.ael(Ta, Oa, Qa, Za); (ma.$rmListeners$ = ma.$rmListeners$ || []).push(() => u.rel(Ta, Oa, Qa, Za))
  9224. })
  9225. }, B = (ca, ma) => Ba => { try { ca.$hostElement$[ma](Ba) } catch (xa) { Ra(xa) } }, w = (ca, ma) => () => { }, x = new WeakMap, z = (ca, ma, Ba) => { let xa = Ua.get(ca); v && Ba ? (xa = xa || new CSSStyleSheet, xa.replace(ma)) : xa = ma; Ua.set(ca, xa) }, C = (ca, ma) => "sc-" + (ma && ca.$flags$ & 32 ? ca.$tagName$ + "-" + ma : ca.$tagName$), A = ca => Xa.map(ma => ma(ca)).find(ma => !!ma), D = {}, F = ca => {
  9226. ca = typeof ca; return "object" === ca || "function" ===
  9227. ca
  9228. }, J = (ca, ma, ...Ba) => {
  9229. let xa = null, Ea = null, Oa = null, Ia = !1, Ta = !1, Qa = []; const Za = $a => { for (let cb = 0; cb < $a.length; cb++)if (xa = $a[cb], Array.isArray(xa)) Za(xa); else if (null != xa && "boolean" !== typeof xa) { if (Ia = "function" !== typeof ca && !F(xa)) xa = String(xa); Ia && Ta ? Qa[Qa.length - 1].$text$ += xa : Qa.push(Ia ? M(null, xa) : xa); Ta = Ia } }; Za(Ba); if (ma) { ma.key && (Ea = ma.key); ma.name && (Oa = ma.name); { const $a = ma.className || ma.class; $a && (ma.class = "object" !== typeof $a ? $a : Object.keys($a).filter(cb => $a[cb]).join(" ")) } } if ("function" ===
  9230. typeof ca) return ca(null === ma ? {} : ma, Qa, E); Ba = M(ca, null); Ba.$attrs$ = ma; 0 < Qa.length && (Ba.$children$ = Qa); Ba.$key$ = Ea; Ba.$name$ = Oa; return Ba
  9231. }, M = (ca, ma) => ({ $flags$: 0, $tag$: ca, $text$: ma, $elm$: null, $children$: null, $attrs$: null, $key$: null, $name$: null }), N = {}, E = { forEach: (ca, ma) => ca.map(G).forEach(ma), map: (ca, ma) => ca.map(G).map(ma).map(H) }, G = ca => ({ vattrs: ca.$attrs$, vchildren: ca.$children$, vkey: ca.$key$, vname: ca.$name$, vtag: ca.$tag$, vtext: ca.$text$ }), H = ca => {
  9232. if ("function" === typeof ca.vtag) {
  9233. var ma = Object.assign({},
  9234. ca.vattrs); ca.vkey && (ma.key = ca.vkey); ca.vname && (ma.name = ca.vname); return J(ca.vtag, ma, ...ca.vchildren || [])
  9235. } ma = M(ca.vtag, ca.vtext); ma.$attrs$ = ca.vattrs; ma.$children$ = ca.vchildren; ma.$key$ = ca.vkey; ma.$name$ = ca.vname; return ma
  9236. }, K = (ca, ma, Ba, xa, Ea, Oa) => {
  9237. if (Ba !== xa) {
  9238. let Qa = ma in ca, Za = ma.toLowerCase(); if ("class" === ma) { ca = ca.classList; const $a = Ba ? Ba.split(S) : [], cb = xa ? xa.split(S) : []; ca.remove(...$a.filter(qa => qa && !cb.includes(qa))); ca.add(...cb.filter(qa => qa && !$a.includes(qa))) } else if ("style" === ma) {
  9239. for (var Ia in Ba) xa &&
  9240. null != xa[Ia] || (Ia.includes("-") ? ca.style.removeProperty(Ia) : ca.style[Ia] = ""); for (var Ta in xa) Ba && xa[Ta] === Ba[Ta] || (Ta.includes("-") ? ca.style.setProperty(Ta, xa[Ta]) : ca.style[Ta] = xa[Ta])
  9241. } else if ("key" !== ma) if ("ref" === ma) xa && xa(ca); else if (ca.__lookupSetter__(ma) || "o" !== ma[0] || "n" !== ma[1]) {
  9242. Ia = F(xa); if ((Qa || Ia && null !== xa) && !Ea) try { if (ca.tagName.includes("-")) ca[ma] = xa; else if (Ta = null == xa ? "" : xa, "list" === ma) Qa = !1; else if (null == Ba || ca[ma] != Ta) ca[ma] = Ta } catch ($a) { } Ba = !1; Za !== (Za = Za.replace(/^xlink:?/, "")) &&
  9243. (ma = Za, Ba = !0); if (null == xa || !1 === xa) { if (!1 !== xa || "" === ca.getAttribute(ma)) Ba ? ca.removeAttributeNS("http://www.w3.org/1999/xlink", ma) : ca.removeAttribute(ma) } else (!Qa || Oa & 4 || Ea) && !Ia && (xa = !0 === xa ? "" : xa, Ba ? ca.setAttributeNS("http://www.w3.org/1999/xlink", ma, xa) : ca.setAttribute(ma, xa))
  9244. } else ma = "-" === ma[2] ? ma.slice(3) : Za in t ? Za.slice(2) : Za[2] + ma.slice(3), Ba && u.rel(ca, ma, Ba, !1), xa && u.ael(ca, ma, xa, !1)
  9245. }
  9246. }, S = /\s/, fa = (ca, ma, Ba, xa) => {
  9247. const Ea = 11 === ma.$elm$.nodeType && ma.$elm$.host ? ma.$elm$.host : ma.$elm$; ca = ca &&
  9248. ca.$attrs$ || D; const Oa = ma.$attrs$ || D; for (xa in ca) xa in Oa || K(Ea, xa, ca[xa], void 0, Ba, ma.$flags$); for (xa in Oa) K(Ea, xa, ca[xa], Oa[xa], Ba, ma.$flags$)
  9249. }, ha = (ca, ma, Ba, xa) => {
  9250. ma = ma.$children$[Ba]; let Ea = 0, Oa; q || (m = !0, "slot" === ma.$tag$ && (d && xa.classList.add(d + "-s"), ma.$flags$ |= ma.$children$ ? 2 : 1)); if (null !== ma.$text$) xa = ma.$elm$ = n.createTextNode(ma.$text$); else if (ma.$flags$ & 1) xa = ma.$elm$ = n.createTextNode(""); else {
  9251. g || (g = "svg" === ma.$tag$); xa = ma.$elm$ = n.createElementNS(g ? "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml",
  9252. ma.$flags$ & 2 ? "slot-fb" : ma.$tag$); g && "foreignObject" === ma.$tag$ && (g = !1); fa(null, ma, g); null != d && xa["s-si"] !== d && xa.classList.add(xa["s-si"] = d); if (ma.$children$) for (Ea = 0; Ea < ma.$children$.length; ++Ea)(Oa = ha(ca, ma, Ea, xa)) && xa.appendChild(Oa); "svg" === ma.$tag$ ? g = !1 : "foreignObject" === xa.tagName && (g = !0)
  9253. } xa["s-hn"] = r; ma.$flags$ & 3 && (xa["s-sr"] = !0, xa["s-cr"] = l, xa["s-sn"] = ma.$name$ || "", (Ba = ca && ca.$children$ && ca.$children$[Ba]) && Ba.$tag$ === ma.$tag$ && ca.$elm$ && ba(ca.$elm$, !1)); return xa
  9254. }, ba = (ca, ma) => {
  9255. u.$flags$ |=
  9256. 1; ca = ca.childNodes; for (let Ba = ca.length - 1; 0 <= Ba; Ba--) { const xa = ca[Ba]; xa["s-hn"] !== r && xa["s-ol"] && ((xa["s-ol"] ? xa["s-ol"] : xa).parentNode.insertBefore(xa, Da(xa)), xa["s-ol"].remove(), xa["s-ol"] = void 0, m = !0); ma && ba(xa, ma) } u.$flags$ &= -2
  9257. }, O = (ca, ma, Ba, xa, Ea, Oa) => { let Ia = ca["s-cr"] && ca["s-cr"].parentNode || ca, Ta; Ia.shadowRoot && Ia.tagName === r && (Ia = Ia.shadowRoot); for (; Ea <= Oa; ++Ea)xa[Ea] && (Ta = ha(null, Ba, Ea, ca)) && (xa[Ea].$elm$ = Ta, Ia.insertBefore(Ta, Da(ma))) }, na = (ca, ma, Ba, xa, Ea) => {
  9258. for (; ma <= Ba; ++ma)if (xa = ca[ma]) Ea =
  9259. xa.$elm$, I(xa), k = !0, Ea["s-ol"] ? Ea["s-ol"].remove() : ba(Ea, !0), Ea.remove()
  9260. }, ra = (ca, ma) => ca.$tag$ === ma.$tag$ ? "slot" === ca.$tag$ ? ca.$name$ === ma.$name$ : ca.$key$ === ma.$key$ : !1, Da = ca => ca && ca["s-ol"] || ca, Ka = (ca, ma) => {
  9261. const Ba = ma.$elm$ = ca.$elm$, xa = ca.$children$, Ea = ma.$children$, Oa = ma.$tag$; var Ia = ma.$text$; if (null === Ia) {
  9262. g = "svg" === Oa ? !0 : "foreignObject" === Oa ? !1 : g; "slot" !== Oa && fa(ca, ma, g); if (null !== xa && null !== Ea) {
  9263. {
  9264. var Ta = Ia = ca = 0, Qa = 0; let Za = xa.length - 1, $a = xa[0], cb = xa[Za], qa = Ea.length - 1, fb = Ea[0], hb = Ea[qa]; for (; ca <=
  9265. Za && Ia <= qa;)if (null == $a) $a = xa[++ca]; else if (null == cb) cb = xa[--Za]; else if (null == fb) fb = Ea[++Ia]; else if (null == hb) hb = Ea[--qa]; else if (ra($a, fb)) Ka($a, fb), $a = xa[++ca], fb = Ea[++Ia]; else if (ra(cb, hb)) Ka(cb, hb), cb = xa[--Za], hb = Ea[--qa]; else if (ra($a, hb)) "slot" !== $a.$tag$ && "slot" !== hb.$tag$ || ba($a.$elm$.parentNode, !1), Ka($a, hb), Ba.insertBefore($a.$elm$, cb.$elm$.nextSibling), $a = xa[++ca], hb = Ea[--qa]; else if (ra(cb, fb)) "slot" !== $a.$tag$ && "slot" !== hb.$tag$ || ba(cb.$elm$.parentNode, !1), Ka(cb, fb), Ba.insertBefore(cb.$elm$,
  9266. $a.$elm$), cb = xa[--Za], fb = Ea[++Ia]; else { Ta = -1; for (Qa = ca; Qa <= Za; ++Qa)if (xa[Qa] && null !== xa[Qa].$key$ && xa[Qa].$key$ === fb.$key$) { Ta = Qa; break } 0 <= Ta ? (Qa = xa[Ta], Qa.$tag$ !== fb.$tag$ ? Qa = ha(xa && xa[Ia], ma, Ta, Ba) : (Ka(Qa, fb), xa[Ta] = void 0, Qa = Qa.$elm$)) : Qa = ha(xa && xa[Ia], ma, Ia, Ba); fb = Ea[++Ia]; Qa && (Ta = $a.$elm$, (Ta["s-ol"] ? Ta["s-ol"] : Ta).parentNode.insertBefore(Qa, Da($a.$elm$))) } ca > Za ? O(Ba, null == Ea[qa + 1] ? null : Ea[qa + 1].$elm$, ma, Ea, Ia, qa) : Ia > qa && na(xa, ca, Za)
  9267. }
  9268. } else null !== Ea ? (null !== ca.$text$ && (Ba.textContent = ""), O(Ba,
  9269. null, ma, Ea, 0, Ea.length - 1)) : null !== xa && na(xa, 0, xa.length - 1); g && "svg" === Oa && (g = !1)
  9270. } else (ma = Ba["s-cr"]) ? ma.parentNode.textContent = Ia : ca.$text$ !== Ia && (Ba.data = Ia)
  9271. }, sa = ca => {
  9272. ca = ca.childNodes; let ma, Ba, xa, Ea, Oa, Ia; Ba = 0; for (xa = ca.length; Ba < xa; Ba++)if (ma = ca[Ba], 1 === ma.nodeType) {
  9273. if (ma["s-sr"]) for (Oa = ma["s-sn"], ma.hidden = !1, Ea = 0; Ea < xa; Ea++)if (Ia = ca[Ea].nodeType, ca[Ea]["s-hn"] !== ma["s-hn"] || "" !== Oa) { if (1 === Ia && Oa === ca[Ea].getAttribute("slot")) { ma.hidden = !0; break } } else if (1 === Ia || 3 === Ia && "" !== ca[Ea].textContent.trim()) {
  9274. ma.hidden =
  9275. !0; break
  9276. } sa(ma)
  9277. }
  9278. }, W = [], oa = ca => {
  9279. let ma, Ba, xa, Ea, Oa, Ia = 0, Ta = ca.childNodes, Qa = Ta.length; for (; Ia < Qa; Ia++) {
  9280. ca = Ta[Ia]; if (ca["s-sr"] && (ma = ca["s-cr"]) && ma.parentNode) for (Ba = ma.parentNode.childNodes, xa = ca["s-sn"], Oa = Ba.length - 1; 0 <= Oa; Oa--)ma = Ba[Oa], ma["s-cn"] || ma["s-nr"] || ma["s-hn"] === ca["s-hn"] || (ya(ma, xa) ? (Ea = W.find(Za => Za.$nodeToRelocate$ === ma), k = !0, ma["s-sn"] = ma["s-sn"] || xa, Ea ? Ea.$slotRefNode$ = ca : W.push({ $slotRefNode$: ca, $nodeToRelocate$: ma }), ma["s-sr"] && W.map(Za => {
  9281. ya(Za.$nodeToRelocate$, ma["s-sn"]) &&
  9282. (Ea = W.find($a => $a.$nodeToRelocate$ === ma)) && !Za.$slotRefNode$ && (Za.$slotRefNode$ = Ea.$slotRefNode$)
  9283. })) : W.some(Za => Za.$nodeToRelocate$ === ma) || W.push({ $nodeToRelocate$: ma })); 1 === ca.nodeType && oa(ca)
  9284. }
  9285. }, ya = (ca, ma) => 1 === ca.nodeType ? null === ca.getAttribute("slot") && "" === ma || ca.getAttribute("slot") === ma ? !0 : !1 : ca["s-sn"] === ma ? !0 : "" === ma, I = ca => { ca.$attrs$ && ca.$attrs$.ref && ca.$attrs$.ref(null); ca.$children$ && ca.$children$.map(I) }, P = (ca, ma) => {
  9286. const Ba = ca.$hostElement$; var xa = ca.$cmpMeta$, Ea = ca.$vnode$ || M(null, null);
  9287. const Oa = ma && ma.$tag$ === N ? ma : J(null, null, ma); r = Ba.tagName; xa.$attrsToReflect$ && (Oa.$attrs$ = Oa.$attrs$ || {}, xa.$attrsToReflect$.map(([Ia, Ta]) => Oa.$attrs$[Ta] = Ba[Ia])); Oa.$tag$ = null; Oa.$flags$ |= 4; ca.$vnode$ = Oa; Oa.$elm$ = Ea.$elm$ = Ba.shadowRoot || Ba; d = Ba["s-sc"]; l = Ba["s-cr"]; q = 0 !== (xa.$flags$ & 1); k = !1; Ka(Ea, Oa); u.$flags$ |= 1; if (m) {
  9288. oa(Oa.$elm$); let Ia, Ta; for (xa = 0; xa < W.length; xa++)Ea = W[xa], ca = Ea.$nodeToRelocate$, ca["s-ol"] || (Ea = n.createTextNode(""), Ea["s-nr"] = ca, ca.parentNode.insertBefore(ca["s-ol"] = Ea, ca));
  9289. for (xa = 0; xa < W.length; xa++)if (Ea = W[xa], ca = Ea.$nodeToRelocate$, Ea.$slotRefNode$) { ma = Ea.$slotRefNode$.parentNode; Ia = Ea.$slotRefNode$.nextSibling; for (Ea = ca["s-ol"]; Ea = Ea.previousSibling;)if ((Ta = Ea["s-nr"]) && Ta["s-sn"] === ca["s-sn"] && ma === Ta.parentNode && (Ta = Ta.nextSibling, !Ta || !Ta["s-nr"])) { Ia = Ta; break } (Ia || ma === ca.parentNode) && ca.nextSibling === Ia || ca === Ia || (!ca["s-hn"] && ca["s-ol"] && (ca["s-hn"] = ca["s-ol"].parentNode.nodeName), ma.insertBefore(ca, Ia)) } else 1 === ca.nodeType && (ca.hidden = !0)
  9290. } k && sa(Oa.$elm$);
  9291. u.$flags$ &= -2; W.length = 0
  9292. }, Z = (ca, ma) => { ca.$flags$ |= 16; return Na(() => Q(ca, ma)) }, Q = (ca, ma) => { const Ba = ca.$hostElement$, xa = w("scheduleUpdate", ca.$cmpMeta$.$tagName$); let Ea; Ea = ma ? da(Ba, "componentWillLoad") : da(Ba, "componentWillUpdate"); Ea = ea(Ea, () => da(Ba, "componentWillRender")); xa(); return ea(Ea, () => V(ca, Ba, ma)) }, V = async (ca, ma, Ba) => {
  9293. var xa = ca.$hostElement$, Ea = w("update", ca.$cmpMeta$.$tagName$); xa["s-rc"]; if (Ba) {
  9294. {
  9295. var Oa = ca.$cmpMeta$; Ba = ca.$hostElement$; xa = Oa.$flags$; const Ta = w("attachStyles", Oa.$tagName$);
  9296. { var Ia = Ba.shadowRoot ? Ba.shadowRoot : Ba.getRootNode(); Oa = C(Oa, ca.$modeName$); let Qa = Ua.get(Oa); Ia = 11 === Ia.nodeType ? Ia : n; if (Qa) if ("string" === typeof Qa) { Ia = Ia.head || Ia; let Za = x.get(Ia), $a; Za || x.set(Ia, Za = new Set); Za.has(Oa) || ($a = n.createElement("style"), $a.innerHTML = Qa, Ia.insertBefore($a, Ia.querySelector("link")), Za && Za.add(Oa)) } else Ia.adoptedStyleSheets.includes(Qa) || (Ia.adoptedStyleSheets = [...Ia.adoptedStyleSheets, Qa]); Ia = Oa } xa & 10 && (Ba["s-sc"] = Ia, Ba.classList.add(Ia + "-h"), xa & 2 && Ba.classList.add(Ia +
  9297. "-s")); Ta()
  9298. }
  9299. } Ba = w("render", ca.$cmpMeta$.$tagName$); try { ma = ma.render && ma.render(), ca.$flags$ &= -17, ca.$flags$ |= 2, P(ca, ma) } catch (Ta) { Ra(Ta, ca.$hostElement$) } Ba(); Ea(); Ea = ca.$hostElement$; ma = w("postUpdate", ca.$cmpMeta$.$tagName$); ca.$ancestorComponent$; da(Ea, "componentDidRender"); ca.$flags$ & 64 ? da(Ea, "componentDidUpdate") : (ca.$flags$ |= 64, da(Ea, "componentDidLoad")); ma()
  9300. }, da = (ca, ma, Ba) => { if (ca && ca[ma]) try { return ca[ma](Ba) } catch (xa) { Ra(xa) } }, ea = (ca, ma) => ca && ca.then ? ca.then(ma) : ma(), pa = (ca, ma) => {
  9301. if (null !=
  9302. ca && !F(ca)) { if (ma & 4) return "false" === ca ? !1 : "" === ca || !!ca; if (ma & 2) return parseFloat(ca); if (ma & 1) return String(ca) } return ca
  9303. }, la = (ca, ma, Ba, xa) => {
  9304. const Ea = Ha.get(ca), Oa = Ea.$instanceValues$.get(ma), Ia = Ea.$flags$; Ba = pa(Ba, xa.$members$[ma][0]); const Ta = Number.isNaN(Oa) && Number.isNaN(Ba); Ba === Oa || Ta || (Ea.$instanceValues$.set(ma, Ba), xa.$watchers$ && Ia & 128 && (xa = xa.$watchers$[ma]) && xa.map(Qa => { try { ca[Qa](Ba, Oa, ma) } catch (Za) { Ra(Za, ca) } }), 2 !== (Ia & 18) || ca.componentShouldUpdate && !1 === ca.componentShouldUpdate(Ba,
  9305. Oa, ma) || Z(Ea, !1))
  9306. }, L = (ca, ma, Ba) => {
  9307. if (ma.$members$) {
  9308. ca.watchers && (ma.$watchers$ = ca.watchers); Ba = Object.entries(ma.$members$); const xa = ca.prototype; Ba.map(([Ea, [Oa]]) => { (Oa & 31 || Oa & 32) && Object.defineProperty(xa, Ea, { get() { return Ha.get(this).$instanceValues$.get(Ea) }, set(Ia) { la(this, Ea, Ia, ma) }, configurable: !0, enumerable: !0 }) }); {
  9309. const Ea = new Map; xa.attributeChangedCallback = function (Oa, Ia, Ta) {
  9310. u.jmp(() => {
  9311. const Qa = Ea.get(Oa); if (this.hasOwnProperty(Qa)) Ta = this[Qa], delete this[Qa]; else if (xa.hasOwnProperty(Qa) &&
  9312. "number" === typeof this[Qa] && this[Qa] == Ta) return; this[Qa] = null === Ta && "boolean" === typeof this[Qa] ? !1 : Ta
  9313. })
  9314. }; ca.observedAttributes = Ba.filter(([, Oa]) => Oa[0] & 15).map(([Oa, Ia]) => { const Ta = Ia[1] || Oa; Ea.set(Ta, Oa); Ia[0] & 512 && ma.$attrsToReflect$.push([Oa, Ta]); return Ta })
  9315. }
  9316. } return ca
  9317. }, R = async (ca, ma, Ba, xa, Ea) => {
  9318. 0 === (ma.$flags$ & 32) && (Ea = ca.constructor, ma.$flags$ |= 32, customElements.whenDefined(Ba.$tagName$).then(() => ma.$flags$ |= 128), Ea.style && (xa = Ea.style, "string" !== typeof xa && (xa = xa[ma.$modeName$ = A(ca)]), ca = C(Ba,
  9319. ma.$modeName$), Ua.has(ca) || (Ea = w("registerStyles", Ba.$tagName$), z(ca, xa, !!(Ba.$flags$ & 1)), Ea()))); ma.$ancestorComponent$; Z(ma, !0)
  9320. }, X = ca => { if (0 === (u.$flags$ & 1)) { const ma = Ha.get(ca), Ba = ma.$cmpMeta$, xa = w("connectedCallback", Ba.$tagName$); ma.$flags$ & 1 ? y(ca, ma, Ba.$listeners$) : (ma.$flags$ |= 1, Ba.$flags$ & 12 && ta(ca), Ba.$members$ && Object.entries(Ba.$members$).map(([Ea, [Oa]]) => { Oa & 31 && ca.hasOwnProperty(Ea) && (Oa = ca[Ea], delete ca[Ea], ca[Ea] = Oa) }), R(ca, ma, Ba)); xa() } }, ta = ca => {
  9321. const ma = ca["s-cr"] = n.createComment("");
  9322. ma["s-cn"] = !0; ca.insertBefore(ma, ca.firstChild)
  9323. }, Ca = ca => { 0 === (u.$flags$ & 1) && (ca = Ha.get(ca), ca.$rmListeners$ && (ca.$rmListeners$.map(ma => ma()), ca.$rmListeners$ = void 0)) }, Ha = new WeakMap, Ra = (ca, ma) => (0, console.error)(ca, ma), Ua = new Map, Xa = [], ja = [], wa = [], za = ca => { for (let ma = 0; ma < ca.length; ma++)try { ca[ma](performance.now()) } catch (Ba) { Ra(Ba) } ca.length = 0 }, Ga = () => { za(ja); za(wa); (p = 0 < ja.length) && u.raf(Ga) }, Na = ((ca, ma) => Ba => { ca.push(Ba); p || (p = !0, ma && u.$flags$ & 4 ? (Ba = Ga, Promise.resolve(void 0).then(Ba)) : u.raf(Ga)) })(wa,
  9324. !0); a.Build = { isDev: !1, isBrowser: !0, isServer: !1, isTesting: !1 }; a.Fragment = (ca, ma) => ma; a.H = c; a.Host = N; a.commitAssetPath = function () { u.$resourcesUrl$ = e.makeAbsolute(b.getAssetUrl("esri/widgets/support/components/assets")) }; a.createEvent = (ca, ma, Ba) => ({ emit: xa => { xa = u.ce(ma, { bubbles: !!(Ba & 4), composed: !!(Ba & 2), cancelable: !!(Ba & 1), detail: xa }); ca.dispatchEvent(xa); return xa } }); a.forceUpdate = ca => { { ca = Ha.get(ca); const ma = ca.$hostElement$.isConnected; ma && 2 === (ca.$flags$ & 18) && Z(ca, !1); return ma } }; a.getAssetPath =
  9325. ca => { ca = new URL(ca, u.$resourcesUrl$); return ca.origin !== t.location.origin ? ca.href : ca.pathname }; a.h = J; a.proxyCustomElement = (ca, ma) => {
  9326. const Ba = { $flags$: ma[0], $tagName$: ma[1] }; Ba.$members$ = ma[2]; Ba.$listeners$ = ma[3]; Ba.$watchers$ = ca.$watchers$; Ba.$attrsToReflect$ = []; const xa = ca.prototype.connectedCallback, Ea = ca.prototype.disconnectedCallback; Object.assign(ca.prototype, {
  9327. __registerHost() {
  9328. {
  9329. const Oa = { $flags$: 0, $hostElement$: this, $cmpMeta$: Ba, $instanceValues$: new Map }; y(this, Oa, Ba.$listeners$); Ha.set(this,
  9330. Oa)
  9331. }
  9332. }, connectedCallback() { X(this); xa && xa.call(this) }, disconnectedCallback() { Ca(this); Ea && Ea.call(this) }, __attachShadow() { this.attachShadow({ mode: "open", delegatesFocus: !!(Ba.$flags$ & 16) }) }
  9333. }); ca.is = Ba.$tagName$; return L(ca, Ba)
  9334. }
  9335. })
  9336. }, "esri/widgets/support/jsxWidgetSupport": function () {
  9337. define(["exports", "../../core/handleUtils"], function (a, b) {
  9338. function c(p, t) {
  9339. let n = t.children; if (n && n.length) for (var u = 0; u < n.length; ++u)n[u] = c(p, n[u]); else n = k; u = t.vnodeSelector; if (r(u)) {
  9340. t = t.properties || m; const f = t.key || u; return {
  9341. vnodeSelector: "div",
  9342. properties: { key: f, afterCreate: e, afterUpdate: d, afterRemoved: l, parentWidget: p, widgetConstructor: u, widgetProperties: { ...t, key: f, children: n } }, children: void 0, text: void 0, domNode: null
  9343. }
  9344. } return t
  9345. } function e(p, t, n, { parentWidget: u, widgetConstructor: f, widgetProperties: h }) { t = new f(h); t.container = p; g.set(p, t); null == t.afterCreate ? void 0 : t.afterCreate(t, p); u._internalHandles.add(b.makeHandle(() => l(p))) } function d(p, t, n, { widgetProperties: u }) { if (t = g.get(p)) t.set(u), null == t.afterUpdate ? void 0 : t.afterUpdate(t, p) } function l(p) {
  9346. const t =
  9347. g.get(p); t && (t.destroy(), g.delete(p))
  9348. } function r(p) { return "function" === typeof p && p[q] } const q = Symbol("widget"), k = [], m = {}, g = new WeakMap; a.WIDGET_SYMBOL = q; a.isWidgetConstructor = r; a.processWidgets = c; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9349. })
  9350. }, "esri/widgets/support/tests": function () {
  9351. define(["exports"], function (a) {
  9352. const b = new Set; a.hasPendingLoading = function () { return 0 < b.size }; a.registerLoading = function (c) { b.add(c); c.finally(() => b.delete(c)) }; Object.defineProperties(a,
  9353. { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9354. })
  9355. }, "esri/widgets/support/widget": function () {
  9356. define("exports ./decorators/accessibleHandler ./decorators/messageBundle ./decorators/vmEvent ./jsxFactory ./widgetUtils ../../support/themeUtils".split(" "), function (a, b, c, e, d, l, r) {
  9357. a.accessibleHandler = b.accessibleHandler; a.messageBundle = c.messageBundle; a.vmEvent = e.vmEvent; a.tsx = d.tsx; a.tsxFragment = d.tsxFragment; a.additionalAllowedTags = l.additionalAllowedTags; a.classes = l.classes; a.cssTransition =
  9358. l.cssTransition; a.discardNode = l.discardNode; a.getDir = l.getDir; a.isActivationKey = l.isActivationKey; a.isRTL = l.isRTL; a.keepMenuItemWithinView = l.keepMenuItemWithinView; a.onResize = l.onResize; a.renderingSanitizer = l.renderingSanitizer; a.safeAttrs = l.safeAttrs; a.storeNode = l.storeNode; a.getCalciteThemeClass = r.getCalciteThemeClass; a.isDarkTheme = r.isDarkTheme; a.setCalciteThemeClass = r.setCalciteThemeClass; a.hasDomNode = function (q) {
  9359. return q && "function" === typeof q.postMixInProperties && "function" === typeof q.buildRendering &&
  9360. "function" === typeof q.postCreate && "function" === typeof q.startup
  9361. }; a.isWidget = function (q) { return q && "function" === typeof q.render }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9362. })
  9363. }, "esri/widgets/support/decorators/accessibleHandler": function () {
  9364. define(["exports", "../widgetUtils"], function (a, b) {
  9365. function c(e) {
  9366. return function (d, ...l) {
  9367. var r; ({ type: r } = d); (r = d instanceof KeyboardEvent || "keyup" === r || "keydown" === r || "keypress" === r) ? b.isActivationKey(d.key) && (d.preventDefault(),
  9368. d.stopPropagation(), d.target.click()) : e.call(this, d, ...l)
  9369. }
  9370. } a.accessibleHandler = function () { return function (e, d) { if (!e[d]) throw new TypeError(`Cannot auto bind undefined function '${d}'`); return { value: c(e[d]) } } }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9371. })
  9372. }, "esri/widgets/support/decorators/messageBundle": function () {
  9373. define(["exports"], function (a) {
  9374. a.messageBundle = function (b) {
  9375. return (c, e) => {
  9376. c.hasOwnProperty("_messageBundleProps") || (c._messageBundleProps = c._messageBundleProps ?
  9377. c._messageBundleProps.slice() : []); c._messageBundleProps.push({ bundlePath: b, propertyName: e })
  9378. }
  9379. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9380. })
  9381. }, "esri/widgets/support/decorators/vmEvent": function () {
  9382. define(["exports", "./propUtils"], function (a, b) {
  9383. a.vmEvent = function (c) {
  9384. return e => {
  9385. e.hasOwnProperty("_delegatedEventNames") || (e._delegatedEventNames = e._delegatedEventNames ? e._delegatedEventNames.slice() : []); e = e._delegatedEventNames; const d = Array.isArray(c) ? c : b.splitProps(c);
  9386. e.push(...d)
  9387. }
  9388. }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9389. })
  9390. }, "esri/widgets/support/decorators/propUtils": function () { define(["exports"], function (a) { a.normalizePropNames = function (b, c) { return b.map(e => { e = 0 === e.indexOf(c) ? e : `${c}.${e}`; return e }) }; a.splitProps = function (b) { return b.split(",").map(c => c.trim()) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } }) }) }, "esri/widgets/support/jsxFactory": function () {
  9391. define(["exports",
  9392. "./jsxWidgetSupport"], function (a, b) {
  9393. var c = function (d, l) { for (var r = 0, q = d.length; r < q; r++) { var k = d[r]; Array.isArray(k) ? c(k, l) : null !== k && void 0 !== k && !1 !== k && (k.hasOwnProperty("vnodeSelector") || (k = { vnodeSelector: "", properties: void 0, children: void 0, text: k.toString(), domNode: null }), l.push(k)) } }, e = function (d, l) {
  9394. for (var r = [], q = 2; q < arguments.length; q++)r[q - 2] = arguments[q]; if (1 === r.length && "string" === typeof r[0]) return { vnodeSelector: d, properties: l || void 0, children: void 0, text: r[0], domNode: null }; q = []; c(r, q);
  9395. return { vnodeSelector: d, properties: l || void 0, children: q, text: void 0, domNode: null }
  9396. }; a.tsx = function (d, l, ...r) { return "function" !== typeof d || b.isWidgetConstructor(d) ? e(d, l, ...r) : d(l, ...r) }; a.tsxFragment = function (...d) { return d }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9397. })
  9398. }, "esri/support/themeUtils": function () {
  9399. define(["exports"], function (a) {
  9400. function b() { return getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g, "").startsWith("dark") }
  9401. function c() { return `${"calcite-theme-"}${b() ? "dark" : "light"}` } function e(d) { Array.from(d.classList).forEach(l => { l.startsWith("calcite-theme-") && d.classList.remove(l) }) } a.getCalciteThemeClass = c; a.isDarkTheme = b; a.setCalciteThemeClass = function (d) { e(d); d.classList.add(c()) }; Object.defineProperties(a, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } })
  9402. })
  9403. }, "*noref": 1
  9404. }
  9405. }); require.boot && require.apply(null, require.boot);